Delete orphan autoloading fixtures

Rails now delegates autoloading to Zeitwerk, and therefore does not need to test
autoloading itself. Zeitwerk has test coverage, in Rails we only need to test
the integration.

We are gradually trimming AS::Dependencies, and the AS test suite. With the
removal of DependenciesTestHelpers and client code in af27a25, these fixtures
became orphan.

Three of them are left. They are to be autoloaded with Module#autoload because
they raise errors when the file is evaluated. Their current use cases are
already committed.
This commit is contained in:
Xavier Noria 2021-04-06 19:50:56 +02:00
parent c0a5e8db5e
commit 27624077e6
32 changed files with 0 additions and 163 deletions

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class A::B
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class A::C::D
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class A::C::EM::F
end

View File

@ -1,3 +0,0 @@
# frozen_string_literal: true
ApplicationController = 10

View File

@ -1,8 +0,0 @@
# frozen_string_literal: true
silence_warnings do
Circular2
end
class Circular1
end

View File

@ -1,6 +0,0 @@
# frozen_string_literal: true
Circular1
class Circular2
end

View File

@ -1,5 +0,0 @@
# frozen_string_literal: true
class ClassFolder
ConstantInClassFolder = "indeed"
end

View File

@ -1,5 +0,0 @@
# frozen_string_literal: true
class ClassFolder::ClassFolderSubclass < ClassFolder
ConstantInClassFolder = "indeed"
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class ClassFolder::InlineClass
end

View File

@ -1,9 +0,0 @@
# frozen_string_literal: true
class ClassFolder
class NestedClass
end
class SiblingClass
end
end

View File

@ -1,3 +0,0 @@
# frozen_string_literal: true
Conflict = 2

View File

@ -1,7 +0,0 @@
# frozen_string_literal: true
$counting_loaded_times ||= 0
$counting_loaded_times += 1
module CountingLoader
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class CrossSiteDependency
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class D
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class EM
end

View File

@ -1,6 +0,0 @@
# frozen_string_literal: true
module HTML
class SomeClass
end
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
module LoadedConstant
end

View File

@ -1,7 +0,0 @@
# frozen_string_literal: true
module LoadsConstant
end
# The _ = assignment is to prevent warnings
_ = RequiresConstant

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class ModuleFolder::InlineClass
end

View File

@ -1,6 +0,0 @@
# frozen_string_literal: true
module ModuleFolder
class NestedClass
end
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class ModuleFolder::NestedSibling
end

View File

@ -1,8 +0,0 @@
# frozen_string_literal: true
require "dependencies/module_folder/lib_class"
module ModuleFolder
class NestedWithRequire
end
end

View File

@ -1,3 +0,0 @@
# frozen_string_literal: true
ModuleWithCustomConstMissing::A::B = "10"

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
MultipleConstantFile = 10
SiblingConstant = MultipleConstantFile * 2

View File

@ -1,5 +0,0 @@
# frozen_string_literal: true
class NestedWithRequireParent
ModuleFolder::NestedWithRequire
end

View File

@ -1,10 +0,0 @@
# frozen_string_literal: true
class SubClassConflict
end
class Prepend
module PrependedModule
end
prepend PrependedModule
end

View File

@ -1,4 +0,0 @@
# frozen_string_literal: true
class Prepend::SubClassConflict
end

View File

@ -1,6 +0,0 @@
# frozen_string_literal: true
RaisesArbitraryException = 1
_ = A::B # Autoloading recursion, also expected to be watched and discarded.
raise Exception, "arbitrary exception message"

View File

@ -1,6 +0,0 @@
# frozen_string_literal: true
require "loaded_constant"
module RequiresConstant
end

View File

@ -1,3 +0,0 @@
# frozen_string_literal: true
ShouldNotBeAutoloaded = 0

View File

@ -1,6 +0,0 @@
# frozen_string_literal: true
Throws = 1
_ = A::B # Autoloading recursion, expected to be discarded.
throw :t

View File

@ -1,3 +0,0 @@
# frozen_string_literal: true
TypO = 1