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:
parent
c0a5e8db5e
commit
27624077e6
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class A::B
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class A::C::D
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class A::C::EM::F
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ApplicationController = 10
|
@ -1,8 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
silence_warnings do
|
||||
Circular2
|
||||
end
|
||||
|
||||
class Circular1
|
||||
end
|
@ -1,6 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Circular1
|
||||
|
||||
class Circular2
|
||||
end
|
@ -1,5 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ClassFolder
|
||||
ConstantInClassFolder = "indeed"
|
||||
end
|
@ -1,5 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ClassFolder::ClassFolderSubclass < ClassFolder
|
||||
ConstantInClassFolder = "indeed"
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ClassFolder::InlineClass
|
||||
end
|
@ -1,9 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ClassFolder
|
||||
class NestedClass
|
||||
end
|
||||
|
||||
class SiblingClass
|
||||
end
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Conflict = 2
|
@ -1,7 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
$counting_loaded_times ||= 0
|
||||
$counting_loaded_times += 1
|
||||
|
||||
module CountingLoader
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CrossSiteDependency
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class D
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class EM
|
||||
end
|
@ -1,6 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module HTML
|
||||
class SomeClass
|
||||
end
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module LoadedConstant
|
||||
end
|
@ -1,7 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module LoadsConstant
|
||||
end
|
||||
|
||||
# The _ = assignment is to prevent warnings
|
||||
_ = RequiresConstant
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ModuleFolder::InlineClass
|
||||
end
|
@ -1,6 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module ModuleFolder
|
||||
class NestedClass
|
||||
end
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ModuleFolder::NestedSibling
|
||||
end
|
@ -1,8 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "dependencies/module_folder/lib_class"
|
||||
|
||||
module ModuleFolder
|
||||
class NestedWithRequire
|
||||
end
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ModuleWithCustomConstMissing::A::B = "10"
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
MultipleConstantFile = 10
|
||||
SiblingConstant = MultipleConstantFile * 2
|
@ -1,5 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class NestedWithRequireParent
|
||||
ModuleFolder::NestedWithRequire
|
||||
end
|
@ -1,10 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SubClassConflict
|
||||
end
|
||||
|
||||
class Prepend
|
||||
module PrependedModule
|
||||
end
|
||||
prepend PrependedModule
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Prepend::SubClassConflict
|
||||
end
|
@ -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"
|
@ -1,6 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "loaded_constant"
|
||||
|
||||
module RequiresConstant
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ShouldNotBeAutoloaded = 0
|
@ -1,6 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Throws = 1
|
||||
_ = A::B # Autoloading recursion, expected to be discarded.
|
||||
|
||||
throw :t
|
@ -1,3 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
TypO = 1
|
Loading…
Reference in New Issue
Block a user