packwerk 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +29 -20
  3. data/.github/workflows/cla.yml +22 -0
  4. data/.rubocop.yml +48 -19
  5. data/Gemfile +7 -2
  6. data/Gemfile.lock +201 -175
  7. data/README.md +1 -1
  8. data/RESOLVING_VIOLATIONS.md +81 -0
  9. data/Rakefile +1 -1
  10. data/USAGE.md +14 -5
  11. data/bin/m +1 -1
  12. data/bin/rake +1 -1
  13. data/bin/rubocop +1 -1
  14. data/bin/srb +1 -1
  15. data/bin/tapioca +1 -1
  16. data/gemfiles/Gemfile-rails-6-0 +1 -1
  17. data/gemfiles/Gemfile-rails-6-1 +22 -0
  18. data/lib/packwerk/application_validator.rb +7 -6
  19. data/lib/packwerk/association_inspector.rb +17 -15
  20. data/lib/packwerk/cache.rb +36 -29
  21. data/lib/packwerk/cli.rb +5 -6
  22. data/lib/packwerk/const_node_inspector.rb +8 -7
  23. data/lib/packwerk/constant_name_inspector.rb +2 -2
  24. data/lib/packwerk/deprecated_references.rb +34 -19
  25. data/lib/packwerk/file_processor.rb +14 -14
  26. data/lib/packwerk/files_for_processing.rb +27 -31
  27. data/lib/packwerk/formatters/offenses_formatter.rb +3 -3
  28. data/lib/packwerk/formatters/progress_formatter.rb +2 -2
  29. data/lib/packwerk/node.rb +1 -294
  30. data/lib/packwerk/node_helpers.rb +335 -0
  31. data/lib/packwerk/node_processor.rb +6 -5
  32. data/lib/packwerk/node_processor_factory.rb +3 -3
  33. data/lib/packwerk/node_visitor.rb +1 -1
  34. data/lib/packwerk/offense_collection.rb +6 -3
  35. data/lib/packwerk/offenses_formatter.rb +2 -2
  36. data/lib/packwerk/package.rb +3 -0
  37. data/lib/packwerk/package_set.rb +2 -0
  38. data/lib/packwerk/parse_run.rb +15 -13
  39. data/lib/packwerk/parsed_constant_definitions.rb +23 -20
  40. data/lib/packwerk/parsers/erb.rb +3 -3
  41. data/lib/packwerk/reference_checking/checkers/checker.rb +16 -3
  42. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +16 -0
  43. data/lib/packwerk/reference_checking/checkers/privacy_checker.rb +18 -0
  44. data/lib/packwerk/reference_checking/reference_checker.rb +3 -1
  45. data/lib/packwerk/reference_extractor.rb +51 -48
  46. data/lib/packwerk/reference_offense.rb +3 -27
  47. data/lib/packwerk/run_context.rb +3 -3
  48. data/lib/packwerk/spring_command.rb +1 -1
  49. data/lib/packwerk/version.rb +1 -1
  50. data/lib/packwerk.rb +1 -0
  51. data/packwerk.gemspec +4 -12
  52. data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +2754 -0
  53. data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +1496 -0
  54. data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +2362 -0
  55. data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +19397 -0
  56. data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +1569 -0
  57. data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +14907 -0
  58. data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +2553 -0
  59. data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +5999 -0
  60. data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +37832 -0
  61. data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +2321 -0
  62. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +18818 -0
  63. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11722 -0
  64. data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +90 -0
  65. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  66. data/sorbet/rbi/gems/digest@3.1.0.rbi +189 -0
  67. data/sorbet/rbi/gems/erubi@1.11.0.rbi +140 -0
  68. data/sorbet/rbi/gems/globalid@1.0.0.rbi +572 -0
  69. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  70. data/sorbet/rbi/gems/json@2.6.2.rbi +1548 -0
  71. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +8 -0
  72. data/sorbet/rbi/gems/loofah@2.18.0.rbi +877 -0
  73. data/sorbet/rbi/gems/m@1.6.0.rbi +257 -0
  74. data/sorbet/rbi/gems/marcel@1.0.2.rbi +220 -0
  75. data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +170 -0
  76. data/sorbet/rbi/gems/mini_portile2@2.8.0.rbi +8 -0
  77. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +104 -0
  78. data/sorbet/rbi/gems/minitest@5.16.2.rbi +2136 -0
  79. data/sorbet/rbi/gems/mocha@1.14.0.rbi +4177 -0
  80. data/sorbet/rbi/gems/net-imap@0.2.3.rbi +2147 -0
  81. data/sorbet/rbi/gems/net-pop@0.1.1.rbi +926 -0
  82. data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +11 -0
  83. data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +1108 -0
  84. data/sorbet/rbi/gems/netrc@0.11.0.rbi +153 -0
  85. data/sorbet/rbi/gems/nio4r@2.5.8.rbi +292 -0
  86. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +6478 -0
  87. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  88. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +9029 -0
  89. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +8 -0
  90. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  91. data/sorbet/rbi/gems/racc@1.6.0.rbi +152 -0
  92. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +953 -0
  93. data/sorbet/rbi/gems/rack@2.2.4.rbi +5636 -0
  94. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +688 -0
  95. data/sorbet/rbi/gems/rails@7.0.3.1.rbi +8 -0
  96. data/sorbet/rbi/gems/railties@7.0.3.1.rbi +3507 -0
  97. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
  98. data/sorbet/rbi/gems/rake@13.0.6.rbi +2924 -0
  99. data/sorbet/rbi/gems/rbi@0.0.15.rbi +3007 -0
  100. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3383 -0
  101. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4714 -0
  102. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6961 -0
  103. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +2986 -0
  104. data/sorbet/rbi/gems/{rubocop-shopify@2.0.1.rbi → rubocop-shopify@2.9.0.rbi} +4 -4
  105. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +992 -0
  106. data/sorbet/rbi/gems/rubocop@1.34.1.rbi +51820 -0
  107. data/sorbet/rbi/gems/ruby-lsp@0.2.1.rbi +11 -0
  108. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +474 -0
  109. data/sorbet/rbi/gems/spoom@1.1.11.rbi +2181 -0
  110. data/sorbet/rbi/gems/spring@4.0.0.rbi +411 -0
  111. data/sorbet/rbi/gems/strscan@3.0.4.rbi +8 -0
  112. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +8 -0
  113. data/sorbet/rbi/gems/tapioca@0.9.2.rbi +3181 -0
  114. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  115. data/sorbet/rbi/gems/timeout@0.3.0.rbi +142 -0
  116. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
  117. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +48 -0
  118. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
  119. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2582 -0
  120. data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +993 -0
  121. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +388 -0
  122. data/sorbet/rbi/gems/yard@0.9.28.rbi +18242 -0
  123. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +867 -0
  124. data/sorbet/rbi/shims/psych.rbi +5 -0
  125. data/sorbet/tapioca/require.rb +2 -3
  126. metadata +88 -157
  127. data/.github/probots.yml +0 -2
  128. data/library.yml +0 -6
  129. data/service.yml +0 -1
  130. data/sorbet/rbi/gems/actioncable@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -860
  131. data/sorbet/rbi/gems/actionmailbox@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -568
  132. data/sorbet/rbi/gems/actionmailer@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -587
  133. data/sorbet/rbi/gems/actionpack@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -5314
  134. data/sorbet/rbi/gems/actiontext@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -699
  135. data/sorbet/rbi/gems/actionview@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -2515
  136. data/sorbet/rbi/gems/activejob@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -624
  137. data/sorbet/rbi/gems/activemodel@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -1248
  138. data/sorbet/rbi/gems/activerecord@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8363
  139. data/sorbet/rbi/gems/activestorage@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -876
  140. data/sorbet/rbi/gems/activesupport@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -3987
  141. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -40
  142. data/sorbet/rbi/gems/commander@4.5.2.rbi +0 -8
  143. data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +0 -1969
  144. data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +0 -26
  145. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -41
  146. data/sorbet/rbi/gems/globalid@0.4.2.rbi +0 -178
  147. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  148. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -600
  149. data/sorbet/rbi/gems/loofah@2.9.0.rbi +0 -274
  150. data/sorbet/rbi/gems/m@1.5.1.rbi +0 -108
  151. data/sorbet/rbi/gems/marcel@1.0.0.rbi +0 -70
  152. data/sorbet/rbi/gems/mini_mime@1.0.3.rbi +0 -71
  153. data/sorbet/rbi/gems/minitest-focus@1.2.1.rbi +0 -8
  154. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -544
  155. data/sorbet/rbi/gems/mocha@1.12.0.rbi +0 -953
  156. data/sorbet/rbi/gems/nio4r@2.5.7.rbi +0 -90
  157. data/sorbet/rbi/gems/nokogiri@1.11.2.rbi +0 -1647
  158. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -117
  159. data/sorbet/rbi/gems/parlour@6.0.0.rbi +0 -1272
  160. data/sorbet/rbi/gems/parser@3.0.0.0.rbi +0 -1745
  161. data/sorbet/rbi/gems/pry@0.14.0.rbi +0 -8
  162. data/sorbet/rbi/gems/psych@3.3.2.rbi +0 -24
  163. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -57
  164. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -335
  165. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1718
  166. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -213
  167. data/sorbet/rbi/gems/rails@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8
  168. data/sorbet/rbi/gems/railties@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -880
  169. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -155
  170. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -837
  171. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
  172. data/sorbet/rbi/gems/rexml@3.2.4.rbi +0 -8
  173. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -8
  174. data/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi +0 -8
  175. data/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi +0 -8
  176. data/sorbet/rbi/gems/rubocop@1.12.0.rbi +0 -8
  177. data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +0 -168
  178. data/sorbet/rbi/gems/spoom@1.1.0.rbi +0 -1061
  179. data/sorbet/rbi/gems/spring@2.1.1.rbi +0 -160
  180. data/sorbet/rbi/gems/sprockets-rails@3.2.2.rbi +0 -451
  181. data/sorbet/rbi/gems/sprockets@4.0.2.rbi +0 -1133
  182. data/sorbet/rbi/gems/tapioca@0.4.19.rbi +0 -603
  183. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -893
  184. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -566
  185. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
  186. data/sorbet/rbi/gems/websocket-driver@0.7.3.rbi +0 -438
  187. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -177
@@ -0,0 +1,2136 @@
1
+ # typed: false
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `minitest` gem.
5
+ # Please instead update this file by running `bin/tapioca gem minitest`.
6
+
7
+ # source://yard-0.9.28/lib/yard.rb:62
8
+ ::RUBY19 = T.let(T.unsafe(nil), TrueClass)
9
+
10
+ # Kernel extensions for minitest
11
+ #
12
+ # source://minitest-5.16.2/lib/minitest/spec.rb:40
13
+ module Kernel
14
+ private
15
+
16
+ # Describe a series of expectations for a given target +desc+.
17
+ #
18
+ # Defines a test class subclassing from either Minitest::Spec or
19
+ # from the surrounding describe's class. The surrounding class may
20
+ # subclass Minitest::Spec manually in order to easily share code:
21
+ #
22
+ # class MySpec < Minitest::Spec
23
+ # # ... shared code ...
24
+ # end
25
+ #
26
+ # class TestStuff < MySpec
27
+ # it "does stuff" do
28
+ # # shared code available here
29
+ # end
30
+ # describe "inner stuff" do
31
+ # it "still does stuff" do
32
+ # # ...and here
33
+ # end
34
+ # end
35
+ # end
36
+ #
37
+ # For more information on getting started with writing specs, see:
38
+ #
39
+ # http://www.rubyinside.com/a-minitestspec-tutorial-elegant-spec-style-testing-that-comes-with-ruby-5354.html
40
+ #
41
+ # For some suggestions on how to improve your specs, try:
42
+ #
43
+ # https://betterspecs.org
44
+ #
45
+ # but do note that several items there are debatable or specific to
46
+ # rspec.
47
+ #
48
+ # For more information about expectations, see Minitest::Expectations.
49
+ #
50
+ # source://minitest-5.16.2/lib/minitest/spec.rb:76
51
+ def describe(desc, *additional_desc, &block); end
52
+ end
53
+
54
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:1
55
+ module Minitest
56
+ class << self
57
+ # Internal run method. Responsible for telling all Runnable
58
+ # sub-classes to run.
59
+ #
60
+ # source://minitest-5.16.2/lib/minitest.rb:173
61
+ def __run(reporter, options); end
62
+
63
+ # A simple hook allowing you to run a block of code after everything
64
+ # is done running. Eg:
65
+ #
66
+ # Minitest.after_run { p $debugging_info }
67
+ #
68
+ # source://minitest-5.16.2/lib/minitest.rb:94
69
+ def after_run(&block); end
70
+
71
+ # Registers Minitest to run at process exit
72
+ #
73
+ # source://minitest-5.16.2/lib/minitest.rb:66
74
+ def autorun; end
75
+
76
+ # source://minitest-5.16.2/lib/minitest.rb:19
77
+ def backtrace_filter; end
78
+
79
+ # source://minitest-5.16.2/lib/minitest.rb:19
80
+ def backtrace_filter=(_arg0); end
81
+
82
+ # source://minitest-5.16.2/lib/minitest.rb:18
83
+ def cattr_accessor(name); end
84
+
85
+ # source://minitest-5.16.2/lib/minitest.rb:1067
86
+ def clock_time; end
87
+
88
+ # source://minitest-5.16.2/lib/minitest.rb:19
89
+ def extensions; end
90
+
91
+ # source://minitest-5.16.2/lib/minitest.rb:19
92
+ def extensions=(_arg0); end
93
+
94
+ # source://minitest-5.16.2/lib/minitest.rb:264
95
+ def filter_backtrace(bt); end
96
+
97
+ # source://minitest-5.16.2/lib/minitest.rb:19
98
+ def info_signal; end
99
+
100
+ # source://minitest-5.16.2/lib/minitest.rb:19
101
+ def info_signal=(_arg0); end
102
+
103
+ # source://minitest-5.16.2/lib/minitest.rb:98
104
+ def init_plugins(options); end
105
+
106
+ # source://minitest-5.16.2/lib/minitest.rb:105
107
+ def load_plugins; end
108
+
109
+ # source://minitest-5.16.2/lib/minitest.rb:19
110
+ def parallel_executor; end
111
+
112
+ # source://minitest-5.16.2/lib/minitest.rb:19
113
+ def parallel_executor=(_arg0); end
114
+
115
+ # source://minitest-5.16.2/lib/minitest.rb:186
116
+ def process_args(args = T.unsafe(nil)); end
117
+
118
+ # source://minitest-5.16.2/lib/minitest.rb:19
119
+ def reporter; end
120
+
121
+ # source://minitest-5.16.2/lib/minitest.rb:19
122
+ def reporter=(_arg0); end
123
+
124
+ # This is the top-level run method. Everything starts from here. It
125
+ # tells each Runnable sub-class to run, and each of those are
126
+ # responsible for doing whatever they do.
127
+ #
128
+ # The overall structure of a run looks like this:
129
+ #
130
+ # Minitest.autorun
131
+ # Minitest.run(args)
132
+ # Minitest.__run(reporter, options)
133
+ # Runnable.runnables.each
134
+ # runnable.run(reporter, options)
135
+ # self.runnable_methods.each
136
+ # self.run_one_method(self, runnable_method, reporter)
137
+ # Minitest.run_one_method(klass, runnable_method)
138
+ # klass.new(runnable_method).run
139
+ #
140
+ # source://minitest-5.16.2/lib/minitest.rb:140
141
+ def run(args = T.unsafe(nil)); end
142
+
143
+ # source://minitest-5.16.2/lib/minitest.rb:1058
144
+ def run_one_method(klass, method_name); end
145
+
146
+ # source://minitest-5.16.2/lib/minitest.rb:19
147
+ def seed; end
148
+
149
+ # source://minitest-5.16.2/lib/minitest.rb:19
150
+ def seed=(_arg0); end
151
+ end
152
+ end
153
+
154
+ # Defines the API for Reporters. Subclass this and override whatever
155
+ # you want. Go nuts.
156
+ #
157
+ # source://minitest-5.16.2/lib/minitest.rb:578
158
+ class Minitest::AbstractReporter
159
+ include ::Mutex_m
160
+
161
+ # source://RUBY_ROOT/mutex_m.rb:92
162
+ def lock; end
163
+
164
+ # source://RUBY_ROOT/mutex_m.rb:82
165
+ def locked?; end
166
+
167
+ # Did this run pass?
168
+ #
169
+ # @return [Boolean]
170
+ #
171
+ # source://minitest-5.16.2/lib/minitest.rb:612
172
+ def passed?; end
173
+
174
+ # About to start running a test. This allows a reporter to show
175
+ # that it is starting or that we are in the middle of a test run.
176
+ #
177
+ # source://minitest-5.16.2/lib/minitest.rb:591
178
+ def prerecord(klass, name); end
179
+
180
+ # Output and record the result of the test. Call
181
+ # {result#result_code}[rdoc-ref:Runnable#result_code] to get the
182
+ # result character string. Stores the result of the run if the run
183
+ # did not pass.
184
+ #
185
+ # source://minitest-5.16.2/lib/minitest.rb:600
186
+ def record(result); end
187
+
188
+ # Outputs the summary of the run.
189
+ #
190
+ # source://minitest-5.16.2/lib/minitest.rb:606
191
+ def report; end
192
+
193
+ # Starts reporting on the run.
194
+ #
195
+ # source://minitest-5.16.2/lib/minitest.rb:584
196
+ def start; end
197
+
198
+ # source://RUBY_ROOT/mutex_m.rb:77
199
+ def synchronize(&block); end
200
+
201
+ # source://RUBY_ROOT/mutex_m.rb:87
202
+ def try_lock; end
203
+
204
+ # source://RUBY_ROOT/mutex_m.rb:97
205
+ def unlock; end
206
+ end
207
+
208
+ # Represents run failures.
209
+ #
210
+ # source://minitest-5.16.2/lib/minitest.rb:903
211
+ class Minitest::Assertion < ::Exception
212
+ # source://minitest-5.16.2/lib/minitest.rb:904
213
+ def error; end
214
+
215
+ # Where was this run before an assertion was raised?
216
+ #
217
+ # source://minitest-5.16.2/lib/minitest.rb:911
218
+ def location; end
219
+
220
+ # source://minitest-5.16.2/lib/minitest.rb:920
221
+ def result_code; end
222
+
223
+ # source://minitest-5.16.2/lib/minitest.rb:924
224
+ def result_label; end
225
+ end
226
+
227
+ # Minitest Assertions. All assertion methods accept a +msg+ which is
228
+ # printed if the assertion fails.
229
+ #
230
+ # Protocol: Nearly everything here boils up to +assert+, which
231
+ # expects to be able to increment an instance accessor named
232
+ # +assertions+. This is not provided by Assertions and must be
233
+ # provided by the thing including Assertions. See Minitest::Runnable
234
+ # for an example.
235
+ #
236
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:18
237
+ module Minitest::Assertions
238
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:188
239
+ def _synchronize; end
240
+
241
+ # Fails unless +test+ is truthy.
242
+ #
243
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:178
244
+ def assert(test, msg = T.unsafe(nil)); end
245
+
246
+ # Fails unless +obj+ is empty.
247
+ #
248
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:195
249
+ def assert_empty(obj, msg = T.unsafe(nil)); end
250
+
251
+ # Fails unless <tt>exp == act</tt> printing the difference between
252
+ # the two, if possible.
253
+ #
254
+ # If there is no visible difference but the assertion fails, you
255
+ # should suspect that your #== is buggy, or your inspect output is
256
+ # missing crucial details. For nicer structural diffing, set
257
+ # Minitest::Test.make_my_diffs_pretty!
258
+ #
259
+ # For floats use assert_in_delta.
260
+ #
261
+ # See also: Minitest::Assertions.diff
262
+ #
263
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:216
264
+ def assert_equal(exp, act, msg = T.unsafe(nil)); end
265
+
266
+ # For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
267
+ # of each other.
268
+ #
269
+ # assert_in_delta Math::PI, (22.0 / 7.0), 0.01
270
+ #
271
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:240
272
+ def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
273
+
274
+ # For comparing Floats. Fails unless +exp+ and +act+ have a relative
275
+ # error less than +epsilon+.
276
+ #
277
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:252
278
+ def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
279
+
280
+ # Fails unless +collection+ includes +obj+.
281
+ #
282
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:259
283
+ def assert_includes(collection, obj, msg = T.unsafe(nil)); end
284
+
285
+ # Fails unless +obj+ is an instance of +cls+.
286
+ #
287
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:270
288
+ def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end
289
+
290
+ # Fails unless +obj+ is a kind of +cls+.
291
+ #
292
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:281
293
+ def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end
294
+
295
+ # Fails unless +matcher+ <tt>=~</tt> +obj+.
296
+ #
297
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:291
298
+ def assert_match(matcher, obj, msg = T.unsafe(nil)); end
299
+
300
+ # Assert that the mock verifies correctly.
301
+ #
302
+ # source://minitest-5.16.2/lib/minitest/mock.rb:244
303
+ def assert_mock(mock); end
304
+
305
+ # Fails unless +obj+ is nil
306
+ #
307
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:303
308
+ def assert_nil(obj, msg = T.unsafe(nil)); end
309
+
310
+ # For testing with binary operators. Eg:
311
+ #
312
+ # assert_operator 5, :<=, 4
313
+ #
314
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:313
315
+ def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
316
+
317
+ # Fails if stdout or stderr do not output the expected results.
318
+ # Pass in nil if you don't care about that streams output. Pass in
319
+ # "" if you require it to be silent. Pass in a regexp if you want
320
+ # to pattern match.
321
+ #
322
+ # assert_output(/hey/) { method_with_output }
323
+ #
324
+ # NOTE: this uses #capture_io, not #capture_subprocess_io.
325
+ #
326
+ # See also: #assert_silent
327
+ #
328
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:331
329
+ def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end
330
+
331
+ # Fails unless +path+ exists.
332
+ #
333
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:355
334
+ def assert_path_exists(path, msg = T.unsafe(nil)); end
335
+
336
+ # For testing with predicates. Eg:
337
+ #
338
+ # assert_predicate str, :empty?
339
+ #
340
+ # This is really meant for specs and is front-ended by assert_operator:
341
+ #
342
+ # str.must_be :empty?
343
+ #
344
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:369
345
+ def assert_predicate(o1, op, msg = T.unsafe(nil)); end
346
+
347
+ # Fails unless the block raises one of +exp+. Returns the
348
+ # exception matched so you can check the message, attributes, etc.
349
+ #
350
+ # +exp+ takes an optional message on the end to help explain
351
+ # failures and defaults to StandardError if no exception class is
352
+ # passed. Eg:
353
+ #
354
+ # assert_raises(CustomError) { method_with_custom_error }
355
+ #
356
+ # With custom error message:
357
+ #
358
+ # assert_raises(CustomError, 'This should have raised CustomError') { method_with_custom_error }
359
+ #
360
+ # Using the returned object:
361
+ #
362
+ # error = assert_raises(CustomError) do
363
+ # raise CustomError, 'This is really bad'
364
+ # end
365
+ #
366
+ # assert_equal 'This is really bad', error.message
367
+ #
368
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:396
369
+ def assert_raises(*exp); end
370
+
371
+ # Fails unless +obj+ responds to +meth+.
372
+ #
373
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:427
374
+ def assert_respond_to(obj, meth, msg = T.unsafe(nil)); end
375
+
376
+ # Fails unless +exp+ and +act+ are #equal?
377
+ #
378
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:437
379
+ def assert_same(exp, act, msg = T.unsafe(nil)); end
380
+
381
+ # +send_ary+ is a receiver, message and arguments.
382
+ #
383
+ # Fails unless the call returns a true value
384
+ #
385
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:450
386
+ def assert_send(send_ary, m = T.unsafe(nil)); end
387
+
388
+ # Fails if the block outputs anything to stderr or stdout.
389
+ #
390
+ # See also: #assert_output
391
+ #
392
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:466
393
+ def assert_silent; end
394
+
395
+ # Fails unless the block throws +sym+
396
+ #
397
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:475
398
+ def assert_throws(sym, msg = T.unsafe(nil)); end
399
+
400
+ # Captures $stdout and $stderr into strings:
401
+ #
402
+ # out, err = capture_io do
403
+ # puts "Some info"
404
+ # warn "You did a bad thing"
405
+ # end
406
+ #
407
+ # assert_match %r%info%, out
408
+ # assert_match %r%bad%, err
409
+ #
410
+ # NOTE: For efficiency, this method uses StringIO and does not
411
+ # capture IO for subprocesses. Use #capture_subprocess_io for
412
+ # that.
413
+ #
414
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:516
415
+ def capture_io; end
416
+
417
+ # Captures $stdout and $stderr into strings, using Tempfile to
418
+ # ensure that subprocess IO is captured as well.
419
+ #
420
+ # out, err = capture_subprocess_io do
421
+ # system "echo Some info"
422
+ # system "echo You did a bad thing 1>&2"
423
+ # end
424
+ #
425
+ # assert_match %r%info%, out
426
+ # assert_match %r%bad%, err
427
+ #
428
+ # NOTE: This method is approximately 10x slower than #capture_io so
429
+ # only use it when you need to test the output of a subprocess.
430
+ #
431
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:549
432
+ def capture_subprocess_io; end
433
+
434
+ # Returns a diff between +exp+ and +act+. If there is no known
435
+ # diff command or if it doesn't make sense to diff the output
436
+ # (single line, short output), then it simply returns a basic
437
+ # comparison between the two.
438
+ #
439
+ # See +things_to_diff+ for more info.
440
+ #
441
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:59
442
+ def diff(exp, act); end
443
+
444
+ # Returns details for exception +e+
445
+ #
446
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:581
447
+ def exception_details(e, msg); end
448
+
449
+ # Fails after a given date (in the local time zone). This allows
450
+ # you to put time-bombs in your tests if you need to keep
451
+ # something around until a later date lest you forget about it.
452
+ #
453
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:597
454
+ def fail_after(y, m, d, msg); end
455
+
456
+ # Fails with +msg+.
457
+ #
458
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:604
459
+ def flunk(msg = T.unsafe(nil)); end
460
+
461
+ # Returns a proc that will output +msg+ along with the default message.
462
+ #
463
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:612
464
+ def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end
465
+
466
+ # This returns a human-readable version of +obj+. By default
467
+ # #inspect is called. You can override this to use #pretty_inspect
468
+ # if you want.
469
+ #
470
+ # See Minitest::Test.make_my_diffs_pretty!
471
+ #
472
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:129
473
+ def mu_pp(obj); end
474
+
475
+ # This returns a diff-able more human-readable version of +obj+.
476
+ # This differs from the regular mu_pp because it expands escaped
477
+ # newlines and makes hex-values (like object_ids) generic. This
478
+ # uses mu_pp to do the first pass and then cleans it up.
479
+ #
480
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:152
481
+ def mu_pp_for_diff(obj); end
482
+
483
+ # used for counting assertions
484
+ #
485
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:623
486
+ def pass(_msg = T.unsafe(nil)); end
487
+
488
+ # Fails if +test+ is truthy.
489
+ #
490
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:630
491
+ def refute(test, msg = T.unsafe(nil)); end
492
+
493
+ # Fails if +obj+ is empty.
494
+ #
495
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:638
496
+ def refute_empty(obj, msg = T.unsafe(nil)); end
497
+
498
+ # Fails if <tt>exp == act</tt>.
499
+ #
500
+ # For floats use refute_in_delta.
501
+ #
502
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:649
503
+ def refute_equal(exp, act, msg = T.unsafe(nil)); end
504
+
505
+ # For comparing Floats. Fails if +exp+ is within +delta+ of +act+.
506
+ #
507
+ # refute_in_delta Math::PI, (22.0 / 7.0)
508
+ #
509
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:661
510
+ def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
511
+
512
+ # For comparing Floats. Fails if +exp+ and +act+ have a relative error
513
+ # less than +epsilon+.
514
+ #
515
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:673
516
+ def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
517
+
518
+ # Fails if +collection+ includes +obj+.
519
+ #
520
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:680
521
+ def refute_includes(collection, obj, msg = T.unsafe(nil)); end
522
+
523
+ # Fails if +obj+ is an instance of +cls+.
524
+ #
525
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:691
526
+ def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end
527
+
528
+ # Fails if +obj+ is a kind of +cls+.
529
+ #
530
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:701
531
+ def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end
532
+
533
+ # Fails if +matcher+ <tt>=~</tt> +obj+.
534
+ #
535
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:709
536
+ def refute_match(matcher, obj, msg = T.unsafe(nil)); end
537
+
538
+ # Fails if +obj+ is nil.
539
+ #
540
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:719
541
+ def refute_nil(obj, msg = T.unsafe(nil)); end
542
+
543
+ # Fails if +o1+ is not +op+ +o2+. Eg:
544
+ #
545
+ # refute_operator 1, :>, 2 #=> pass
546
+ # refute_operator 1, :<, 2 #=> fail
547
+ #
548
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:730
549
+ def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
550
+
551
+ # Fails if +path+ exists.
552
+ #
553
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:739
554
+ def refute_path_exists(path, msg = T.unsafe(nil)); end
555
+
556
+ # For testing with predicates.
557
+ #
558
+ # refute_predicate str, :empty?
559
+ #
560
+ # This is really meant for specs and is front-ended by refute_operator:
561
+ #
562
+ # str.wont_be :empty?
563
+ #
564
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:753
565
+ def refute_predicate(o1, op, msg = T.unsafe(nil)); end
566
+
567
+ # Fails if +obj+ responds to the message +meth+.
568
+ #
569
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:761
570
+ def refute_respond_to(obj, meth, msg = T.unsafe(nil)); end
571
+
572
+ # Fails if +exp+ is the same (by object identity) as +act+.
573
+ #
574
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:770
575
+ def refute_same(exp, act, msg = T.unsafe(nil)); end
576
+
577
+ # Skips the current run. If run in verbose-mode, the skipped run
578
+ # gets listed at the end of the run but doesn't cause a failure
579
+ # exit code.
580
+ #
581
+ # @raise [Minitest::Skip]
582
+ #
583
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:783
584
+ def skip(msg = T.unsafe(nil), bt = T.unsafe(nil)); end
585
+
586
+ # Skips the current run until a given date (in the local time
587
+ # zone). This allows you to put some fixes on hold until a later
588
+ # date, but still holds you accountable and prevents you from
589
+ # forgetting it.
590
+ #
591
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:795
592
+ def skip_until(y, m, d, msg); end
593
+
594
+ # Was this testcase skipped? Meant for #teardown.
595
+ #
596
+ # @return [Boolean]
597
+ #
598
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:804
599
+ def skipped?; end
600
+
601
+ # Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff.
602
+ #
603
+ # Criterion:
604
+ #
605
+ # 1. Strings include newlines or escaped newlines, but not both.
606
+ # 2. or: String lengths are > 30 characters.
607
+ # 3. or: Strings are equal to each other (but maybe different encodings?).
608
+ # 4. and: we found a diff executable.
609
+ #
610
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:104
611
+ def things_to_diff(exp, act); end
612
+
613
+ class << self
614
+ # Returns the diff command to use in #diff. Tries to intelligently
615
+ # figure out what diff to use.
616
+ #
617
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:29
618
+ def diff; end
619
+
620
+ # Set the diff command to use in #diff.
621
+ #
622
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:47
623
+ def diff=(o); end
624
+ end
625
+ end
626
+
627
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:201
628
+ Minitest::Assertions::E = T.let(T.unsafe(nil), String)
629
+
630
+ # source://minitest-5.16.2/lib/minitest/assertions.rb:19
631
+ Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
632
+
633
+ # The standard backtrace filter for minitest.
634
+ #
635
+ # See Minitest.backtrace_filter=.
636
+ #
637
+ # source://minitest-5.16.2/lib/minitest.rb:1035
638
+ class Minitest::BacktraceFilter
639
+ # Filter +bt+ to something useful. Returns the whole thing if
640
+ # $DEBUG (ruby) or $MT_DEBUG (env).
641
+ #
642
+ # source://minitest-5.16.2/lib/minitest.rb:1043
643
+ def filter(bt); end
644
+ end
645
+
646
+ # source://minitest-5.16.2/lib/minitest.rb:1037
647
+ Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
648
+
649
+ # Dispatch to multiple reporters as one.
650
+ #
651
+ # source://minitest-5.16.2/lib/minitest.rb:854
652
+ class Minitest::CompositeReporter < ::Minitest::AbstractReporter
653
+ # @return [CompositeReporter] a new instance of CompositeReporter
654
+ #
655
+ # source://minitest-5.16.2/lib/minitest.rb:858
656
+ def initialize(*reporters); end
657
+
658
+ # Add another reporter to the mix.
659
+ #
660
+ # source://minitest-5.16.2/lib/minitest.rb:870
661
+ def <<(reporter); end
662
+
663
+ # source://minitest-5.16.2/lib/minitest.rb:863
664
+ def io; end
665
+
666
+ # @return [Boolean]
667
+ #
668
+ # source://minitest-5.16.2/lib/minitest.rb:874
669
+ def passed?; end
670
+
671
+ # source://minitest-5.16.2/lib/minitest.rb:882
672
+ def prerecord(klass, name); end
673
+
674
+ # source://minitest-5.16.2/lib/minitest.rb:889
675
+ def record(result); end
676
+
677
+ # source://minitest-5.16.2/lib/minitest.rb:895
678
+ def report; end
679
+
680
+ # The list of reporters to dispatch to.
681
+ #
682
+ # source://minitest-5.16.2/lib/minitest.rb:856
683
+ def reporters; end
684
+
685
+ # The list of reporters to dispatch to.
686
+ #
687
+ # source://minitest-5.16.2/lib/minitest.rb:856
688
+ def reporters=(_arg0); end
689
+
690
+ # source://minitest-5.16.2/lib/minitest.rb:878
691
+ def start; end
692
+ end
693
+
694
+ # source://minitest-5.16.2/lib/minitest/spec.rb:35
695
+ class Minitest::Expectation < ::Struct
696
+ def ctx; end
697
+
698
+ # source://minitest-5.16.2/lib/minitest/spec.rb:35
699
+ def ctx=(_); end
700
+
701
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
702
+ def must_be(*args); end
703
+
704
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
705
+ def must_be_close_to(*args); end
706
+
707
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
708
+ def must_be_empty(*args); end
709
+
710
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
711
+ def must_be_instance_of(*args); end
712
+
713
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
714
+ def must_be_kind_of(*args); end
715
+
716
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
717
+ def must_be_nil(*args); end
718
+
719
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
720
+ def must_be_same_as(*args); end
721
+
722
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
723
+ def must_be_silent(*args); end
724
+
725
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
726
+ def must_be_within_delta(*args); end
727
+
728
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
729
+ def must_be_within_epsilon(*args); end
730
+
731
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
732
+ def must_equal(*args); end
733
+
734
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
735
+ def must_include(*args); end
736
+
737
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
738
+ def must_match(*args); end
739
+
740
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
741
+ def must_output(*args); end
742
+
743
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
744
+ def must_raise(*args); end
745
+
746
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
747
+ def must_respond_to(*args); end
748
+
749
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
750
+ def must_throw(*args); end
751
+
752
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
753
+ def path_must_exist(*args); end
754
+
755
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
756
+ def path_wont_exist(*args); end
757
+
758
+ def target; end
759
+
760
+ # source://minitest-5.16.2/lib/minitest/spec.rb:35
761
+ def target=(_); end
762
+
763
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
764
+ def wont_be(*args); end
765
+
766
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
767
+ def wont_be_close_to(*args); end
768
+
769
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
770
+ def wont_be_empty(*args); end
771
+
772
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
773
+ def wont_be_instance_of(*args); end
774
+
775
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
776
+ def wont_be_kind_of(*args); end
777
+
778
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
779
+ def wont_be_nil(*args); end
780
+
781
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
782
+ def wont_be_same_as(*args); end
783
+
784
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
785
+ def wont_be_within_delta(*args); end
786
+
787
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
788
+ def wont_be_within_epsilon(*args); end
789
+
790
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
791
+ def wont_equal(*args); end
792
+
793
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
794
+ def wont_include(*args); end
795
+
796
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
797
+ def wont_match(*args); end
798
+
799
+ # source://minitest-5.16.2/lib/minitest/spec.rb:20
800
+ def wont_respond_to(*args); end
801
+
802
+ class << self
803
+ def [](*_arg0); end
804
+ def inspect; end
805
+ def members; end
806
+ def new(*_arg0); end
807
+ end
808
+ end
809
+
810
+ # It's where you hide your "assertions".
811
+ #
812
+ # Please note, because of the way that expectations are implemented,
813
+ # all expectations (eg must_equal) are dependent upon a thread local
814
+ # variable +:current_spec+. If your specs rely on mixing threads into
815
+ # the specs themselves, you're better off using assertions or the new
816
+ # _(value) wrapper. For example:
817
+ #
818
+ # it "should still work in threads" do
819
+ # my_threaded_thingy do
820
+ # (1+1).must_equal 2 # bad
821
+ # assert_equal 2, 1+1 # good
822
+ # _(1 + 1).must_equal 2 # good
823
+ # value(1 + 1).must_equal 2 # good, also #expect
824
+ # _ { 1 + "1" }.must_raise TypeError # good
825
+ # end
826
+ # end
827
+ #
828
+ # source://minitest-5.16.2/lib/minitest/expectations.rb:20
829
+ module Minitest::Expectations
830
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
831
+ def must_be(*args); end
832
+
833
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
834
+ def must_be_close_to(*args); end
835
+
836
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
837
+ def must_be_empty(*args); end
838
+
839
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
840
+ def must_be_instance_of(*args); end
841
+
842
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
843
+ def must_be_kind_of(*args); end
844
+
845
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
846
+ def must_be_nil(*args); end
847
+
848
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
849
+ def must_be_same_as(*args); end
850
+
851
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
852
+ def must_be_silent(*args); end
853
+
854
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
855
+ def must_be_within_delta(*args); end
856
+
857
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
858
+ def must_be_within_epsilon(*args); end
859
+
860
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
861
+ def must_equal(*args); end
862
+
863
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
864
+ def must_include(*args); end
865
+
866
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
867
+ def must_match(*args); end
868
+
869
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
870
+ def must_output(*args); end
871
+
872
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
873
+ def must_raise(*args); end
874
+
875
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
876
+ def must_respond_to(*args); end
877
+
878
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
879
+ def must_throw(*args); end
880
+
881
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
882
+ def path_must_exist(*args); end
883
+
884
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
885
+ def path_wont_exist(*args); end
886
+
887
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
888
+ def wont_be(*args); end
889
+
890
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
891
+ def wont_be_close_to(*args); end
892
+
893
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
894
+ def wont_be_empty(*args); end
895
+
896
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
897
+ def wont_be_instance_of(*args); end
898
+
899
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
900
+ def wont_be_kind_of(*args); end
901
+
902
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
903
+ def wont_be_nil(*args); end
904
+
905
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
906
+ def wont_be_same_as(*args); end
907
+
908
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
909
+ def wont_be_within_delta(*args); end
910
+
911
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
912
+ def wont_be_within_epsilon(*args); end
913
+
914
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
915
+ def wont_equal(*args); end
916
+
917
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
918
+ def wont_include(*args); end
919
+
920
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
921
+ def wont_match(*args); end
922
+
923
+ # source://minitest-5.16.2/lib/minitest/spec.rb:11
924
+ def wont_respond_to(*args); end
925
+ end
926
+
927
+ # Provides a simple set of guards that you can use in your tests
928
+ # to skip execution if it is not applicable. These methods are
929
+ # mixed into Test as both instance and class methods so you
930
+ # can use them inside or outside of the test methods.
931
+ #
932
+ # def test_something_for_mri
933
+ # skip "bug 1234" if jruby?
934
+ # # ...
935
+ # end
936
+ #
937
+ # if windows? then
938
+ # # ... lots of test methods ...
939
+ # end
940
+ #
941
+ # source://minitest-5.16.2/lib/minitest.rb:979
942
+ module Minitest::Guard
943
+ # Is this running on jruby?
944
+ #
945
+ # @return [Boolean]
946
+ #
947
+ # source://minitest-5.16.2/lib/minitest.rb:984
948
+ def jruby?(platform = T.unsafe(nil)); end
949
+
950
+ # Is this running on maglev?
951
+ #
952
+ # @return [Boolean]
953
+ #
954
+ # source://minitest-5.16.2/lib/minitest.rb:991
955
+ def maglev?(platform = T.unsafe(nil)); end
956
+
957
+ # Is this running on mri?
958
+ #
959
+ # @return [Boolean]
960
+ #
961
+ # source://minitest-5.16.2/lib/minitest.rb:1001
962
+ def mri?(platform = T.unsafe(nil)); end
963
+
964
+ # Is this running on macOS?
965
+ #
966
+ # @return [Boolean]
967
+ #
968
+ # source://minitest-5.16.2/lib/minitest.rb:1008
969
+ def osx?(platform = T.unsafe(nil)); end
970
+
971
+ # Is this running on rubinius?
972
+ #
973
+ # @return [Boolean]
974
+ #
975
+ # source://minitest-5.16.2/lib/minitest.rb:1015
976
+ def rubinius?(platform = T.unsafe(nil)); end
977
+
978
+ # Is this running on windows?
979
+ #
980
+ # @return [Boolean]
981
+ #
982
+ # source://minitest-5.16.2/lib/minitest.rb:1025
983
+ def windows?(platform = T.unsafe(nil)); end
984
+ end
985
+
986
+ # A simple and clean mock object framework.
987
+ #
988
+ # All mock objects are an instance of Mock
989
+ #
990
+ # source://minitest-5.16.2/lib/minitest/mock.rb:10
991
+ class Minitest::Mock
992
+ # @return [Mock] a new instance of Mock
993
+ #
994
+ # source://minitest-5.16.2/lib/minitest/mock.rb:48
995
+ def initialize(delegator = T.unsafe(nil)); end
996
+
997
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
998
+ def ===(*args, **kwargs, &b); end
999
+
1000
+ # source://minitest-5.16.2/lib/minitest/mock.rb:120
1001
+ def __call(name, data); end
1002
+
1003
+ def __respond_to?(*_arg0); end
1004
+
1005
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1006
+ def class(*args, **kwargs, &b); end
1007
+
1008
+ # Expect that method +name+ is called, optionally with +args+ (and
1009
+ # +kwargs+ or a +blk+, and returns +retval+.
1010
+ #
1011
+ # @mock.expect(:meaning_of_life, 42)
1012
+ # @mock.meaning_of_life # => 42
1013
+ #
1014
+ # @mock.expect(:do_something_with, true, [some_obj, true])
1015
+ # @mock.do_something_with(some_obj, true) # => true
1016
+ #
1017
+ # @mock.expect(:do_something_else, true) do |a1, a2|
1018
+ # a1 == "buggs" && a2 == :bunny
1019
+ # end
1020
+ #
1021
+ # +args+ is compared to the expected args using case equality (ie, the
1022
+ # '===' operator), allowing for less specific expectations.
1023
+ #
1024
+ # @mock.expect(:uses_any_string, true, [String])
1025
+ # @mock.uses_any_string("foo") # => true
1026
+ # @mock.verify # => true
1027
+ #
1028
+ # @mock.expect(:uses_one_string, true, ["foo"])
1029
+ # @mock.uses_one_string("bar") # => raises MockExpectationError
1030
+ #
1031
+ # If a method will be called multiple times, specify a new expect for each one.
1032
+ # They will be used in the order you define them.
1033
+ #
1034
+ # @mock.expect(:ordinal_increment, 'first')
1035
+ # @mock.expect(:ordinal_increment, 'second')
1036
+ #
1037
+ # @mock.ordinal_increment # => 'first'
1038
+ # @mock.ordinal_increment # => 'second'
1039
+ # @mock.ordinal_increment # => raises MockExpectationError "No more expects available for :ordinal_increment"
1040
+ #
1041
+ # source://minitest-5.16.2/lib/minitest/mock.rb:91
1042
+ def expect(name, retval, args = T.unsafe(nil), **kwargs, &blk); end
1043
+
1044
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1045
+ def inspect(*args, **kwargs, &b); end
1046
+
1047
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1048
+ def instance_eval(*args, **kwargs, &b); end
1049
+
1050
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1051
+ def instance_variables(*args, **kwargs, &b); end
1052
+
1053
+ # source://minitest-5.16.2/lib/minitest/mock.rb:150
1054
+ def method_missing(sym, *args, **kwargs, &block); end
1055
+
1056
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1057
+ def object_id(*args, **kwargs, &b); end
1058
+
1059
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1060
+ def public_send(*args, **kwargs, &b); end
1061
+
1062
+ # @return [Boolean]
1063
+ #
1064
+ # source://minitest-5.16.2/lib/minitest/mock.rb:232
1065
+ def respond_to?(sym, include_private = T.unsafe(nil)); end
1066
+
1067
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1068
+ def send(*args, **kwargs, &b); end
1069
+
1070
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1071
+ def to_s(*args, **kwargs, &b); end
1072
+
1073
+ # Verify that all methods were called as expected. Raises
1074
+ # +MockExpectationError+ if the mock object was not called as
1075
+ # expected.
1076
+ #
1077
+ # source://minitest-5.16.2/lib/minitest/mock.rb:140
1078
+ def verify; end
1079
+
1080
+ private
1081
+
1082
+ # source://minitest-5.16.2/lib/minitest/mock.rb:31
1083
+ def respond_to_missing?(*args, **kwargs, &b); end
1084
+ end
1085
+
1086
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:2
1087
+ module Minitest::Parallel; end
1088
+
1089
+ # The engine used to run multiple tests in parallel.
1090
+ #
1091
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:7
1092
+ class Minitest::Parallel::Executor
1093
+ # Create a parallel test executor of with +size+ workers.
1094
+ #
1095
+ # @return [Executor] a new instance of Executor
1096
+ #
1097
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:17
1098
+ def initialize(size); end
1099
+
1100
+ # Add a job to the queue
1101
+ #
1102
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:43
1103
+ def <<(work); end
1104
+
1105
+ # Shuts down the pool of workers by signalling them to quit and
1106
+ # waiting for them all to finish what they're currently working
1107
+ # on.
1108
+ #
1109
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:50
1110
+ def shutdown; end
1111
+
1112
+ # The size of the pool of workers.
1113
+ #
1114
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:12
1115
+ def size; end
1116
+
1117
+ # Start the executor
1118
+ #
1119
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:26
1120
+ def start; end
1121
+ end
1122
+
1123
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:56
1124
+ module Minitest::Parallel::Test
1125
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:57
1126
+ def _synchronize; end
1127
+ end
1128
+
1129
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:59
1130
+ module Minitest::Parallel::Test::ClassMethods
1131
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:60
1132
+ def run_one_method(klass, method_name, reporter); end
1133
+
1134
+ # source://minitest-5.16.2/lib/minitest/parallel.rb:64
1135
+ def test_order; end
1136
+ end
1137
+
1138
+ # A very simple reporter that prints the "dots" during the run.
1139
+ #
1140
+ # This is added to the top-level CompositeReporter at the start of
1141
+ # the run. If you want to change the output of minitest via a
1142
+ # plugin, pull this out of the composite and replace it with your
1143
+ # own.
1144
+ #
1145
+ # source://minitest-5.16.2/lib/minitest.rb:643
1146
+ class Minitest::ProgressReporter < ::Minitest::Reporter
1147
+ # source://minitest-5.16.2/lib/minitest.rb:644
1148
+ def prerecord(klass, name); end
1149
+
1150
+ # source://minitest-5.16.2/lib/minitest.rb:651
1151
+ def record(result); end
1152
+ end
1153
+
1154
+ # Shared code for anything that can get passed to a Reporter. See
1155
+ # Minitest::Test & Minitest::Result.
1156
+ #
1157
+ # source://minitest-5.16.2/lib/minitest.rb:475
1158
+ module Minitest::Reportable
1159
+ # @raise [NotImplementedError]
1160
+ #
1161
+ # source://minitest-5.16.2/lib/minitest.rb:495
1162
+ def class_name; end
1163
+
1164
+ # Did this run error?
1165
+ #
1166
+ # @return [Boolean]
1167
+ #
1168
+ # source://minitest-5.16.2/lib/minitest.rb:516
1169
+ def error?; end
1170
+
1171
+ # The location identifier of this test. Depends on a method
1172
+ # existing called class_name.
1173
+ #
1174
+ # source://minitest-5.16.2/lib/minitest.rb:490
1175
+ def location; end
1176
+
1177
+ # Did this run pass?
1178
+ #
1179
+ # Note: skipped runs are not considered passing, but they don't
1180
+ # cause the process to exit non-zero.
1181
+ #
1182
+ # @return [Boolean]
1183
+ #
1184
+ # source://minitest-5.16.2/lib/minitest.rb:482
1185
+ def passed?; end
1186
+
1187
+ # Returns ".", "F", or "E" based on the result of the run.
1188
+ #
1189
+ # source://minitest-5.16.2/lib/minitest.rb:502
1190
+ def result_code; end
1191
+
1192
+ # Was this run skipped?
1193
+ #
1194
+ # @return [Boolean]
1195
+ #
1196
+ # source://minitest-5.16.2/lib/minitest.rb:509
1197
+ def skipped?; end
1198
+ end
1199
+
1200
+ # source://minitest-5.16.2/lib/minitest.rb:619
1201
+ class Minitest::Reporter < ::Minitest::AbstractReporter
1202
+ # @return [Reporter] a new instance of Reporter
1203
+ #
1204
+ # source://minitest-5.16.2/lib/minitest.rb:628
1205
+ def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
1206
+
1207
+ # The IO used to report.
1208
+ #
1209
+ # source://minitest-5.16.2/lib/minitest.rb:621
1210
+ def io; end
1211
+
1212
+ # The IO used to report.
1213
+ #
1214
+ # source://minitest-5.16.2/lib/minitest.rb:621
1215
+ def io=(_arg0); end
1216
+
1217
+ # Command-line options for this run.
1218
+ #
1219
+ # source://minitest-5.16.2/lib/minitest.rb:626
1220
+ def options; end
1221
+
1222
+ # Command-line options for this run.
1223
+ #
1224
+ # source://minitest-5.16.2/lib/minitest.rb:626
1225
+ def options=(_arg0); end
1226
+ end
1227
+
1228
+ # This represents a test result in a clean way that can be
1229
+ # marshalled over a wire. Tests can do anything they want to the
1230
+ # test instance and can create conditions that cause Marshal.dump to
1231
+ # blow up. By using Result.from(a_test) you can be reasonably sure
1232
+ # that the test result can be marshalled.
1233
+ #
1234
+ # source://minitest-5.16.2/lib/minitest.rb:528
1235
+ class Minitest::Result < ::Minitest::Runnable
1236
+ include ::Minitest::Reportable
1237
+
1238
+ # source://minitest-5.16.2/lib/minitest.rb:561
1239
+ def class_name; end
1240
+
1241
+ # The class name of the test result.
1242
+ #
1243
+ # source://minitest-5.16.2/lib/minitest.rb:537
1244
+ def klass; end
1245
+
1246
+ # The class name of the test result.
1247
+ #
1248
+ # source://minitest-5.16.2/lib/minitest.rb:537
1249
+ def klass=(_arg0); end
1250
+
1251
+ # The location of the test method.
1252
+ #
1253
+ # source://minitest-5.16.2/lib/minitest.rb:542
1254
+ def source_location; end
1255
+
1256
+ # The location of the test method.
1257
+ #
1258
+ # source://minitest-5.16.2/lib/minitest.rb:542
1259
+ def source_location=(_arg0); end
1260
+
1261
+ # source://minitest-5.16.2/lib/minitest.rb:565
1262
+ def to_s; end
1263
+
1264
+ class << self
1265
+ # Create a new test result from a Runnable instance.
1266
+ #
1267
+ # source://minitest-5.16.2/lib/minitest.rb:547
1268
+ def from(runnable); end
1269
+ end
1270
+ end
1271
+
1272
+ # re-open
1273
+ #
1274
+ # source://minitest-5.16.2/lib/minitest.rb:277
1275
+ class Minitest::Runnable
1276
+ # @return [Runnable] a new instance of Runnable
1277
+ #
1278
+ # source://minitest-5.16.2/lib/minitest.rb:431
1279
+ def initialize(name); end
1280
+
1281
+ # Number of assertions executed in this run.
1282
+ #
1283
+ # source://minitest-5.16.2/lib/minitest.rb:281
1284
+ def assertions; end
1285
+
1286
+ # Number of assertions executed in this run.
1287
+ #
1288
+ # source://minitest-5.16.2/lib/minitest.rb:281
1289
+ def assertions=(_arg0); end
1290
+
1291
+ # source://minitest-5.16.2/lib/minitest.rb:427
1292
+ def failure; end
1293
+
1294
+ # An assertion raised during the run, if any.
1295
+ #
1296
+ # source://minitest-5.16.2/lib/minitest.rb:286
1297
+ def failures; end
1298
+
1299
+ # An assertion raised during the run, if any.
1300
+ #
1301
+ # source://minitest-5.16.2/lib/minitest.rb:286
1302
+ def failures=(_arg0); end
1303
+
1304
+ # source://minitest-5.16.2/lib/minitest.rb:413
1305
+ def marshal_dump; end
1306
+
1307
+ # source://minitest-5.16.2/lib/minitest.rb:423
1308
+ def marshal_load(ary); end
1309
+
1310
+ # Name of the run.
1311
+ #
1312
+ # source://minitest-5.16.2/lib/minitest.rb:304
1313
+ def name; end
1314
+
1315
+ # Set the name of the run.
1316
+ #
1317
+ # source://minitest-5.16.2/lib/minitest.rb:311
1318
+ def name=(o); end
1319
+
1320
+ # Did this run pass?
1321
+ #
1322
+ # Note: skipped runs are not considered passing, but they don't
1323
+ # cause the process to exit non-zero.
1324
+ #
1325
+ # @raise [NotImplementedError]
1326
+ # @return [Boolean]
1327
+ #
1328
+ # source://minitest-5.16.2/lib/minitest.rb:450
1329
+ def passed?; end
1330
+
1331
+ # Returns a single character string to print based on the result
1332
+ # of the run. One of <tt>"."</tt>, <tt>"F"</tt>,
1333
+ # <tt>"E"</tt> or <tt>"S"</tt>.
1334
+ #
1335
+ # @raise [NotImplementedError]
1336
+ #
1337
+ # source://minitest-5.16.2/lib/minitest.rb:459
1338
+ def result_code; end
1339
+
1340
+ # Runs a single method. Needs to return self.
1341
+ #
1342
+ # @raise [NotImplementedError]
1343
+ #
1344
+ # source://minitest-5.16.2/lib/minitest.rb:440
1345
+ def run; end
1346
+
1347
+ # Was this run skipped? See #passed? for more information.
1348
+ #
1349
+ # @raise [NotImplementedError]
1350
+ # @return [Boolean]
1351
+ #
1352
+ # source://minitest-5.16.2/lib/minitest.rb:466
1353
+ def skipped?; end
1354
+
1355
+ # The time it took to run.
1356
+ #
1357
+ # source://minitest-5.16.2/lib/minitest.rb:291
1358
+ def time; end
1359
+
1360
+ # The time it took to run.
1361
+ #
1362
+ # source://minitest-5.16.2/lib/minitest.rb:291
1363
+ def time=(_arg0); end
1364
+
1365
+ # source://minitest-5.16.2/lib/minitest.rb:293
1366
+ def time_it; end
1367
+
1368
+ class << self
1369
+ # source://minitest-5.16.2/lib/minitest.rb:1077
1370
+ def inherited(klass); end
1371
+
1372
+ # Returns all instance methods matching the pattern +re+.
1373
+ #
1374
+ # source://minitest-5.16.2/lib/minitest.rb:318
1375
+ def methods_matching(re); end
1376
+
1377
+ # source://minitest-5.16.2/lib/minitest.rb:383
1378
+ def on_signal(name, action); end
1379
+
1380
+ # source://minitest-5.16.2/lib/minitest.rb:322
1381
+ def reset; end
1382
+
1383
+ # Responsible for running all runnable methods in a given class,
1384
+ # each in its own instance. Each instance is passed to the
1385
+ # reporter to record.
1386
+ #
1387
+ # source://minitest-5.16.2/lib/minitest.rb:333
1388
+ def run(reporter, options = T.unsafe(nil)); end
1389
+
1390
+ # Runs a single method and has the reporter record the result.
1391
+ # This was considered internal API but is factored out of run so
1392
+ # that subclasses can specialize the running of an individual
1393
+ # test. See Minitest::ParallelTest::ClassMethods for an example.
1394
+ #
1395
+ # source://minitest-5.16.2/lib/minitest.rb:363
1396
+ def run_one_method(klass, method_name, reporter); end
1397
+
1398
+ # Each subclass of Runnable is responsible for overriding this
1399
+ # method to return all runnable methods. See #methods_matching.
1400
+ #
1401
+ # @raise [NotImplementedError]
1402
+ #
1403
+ # source://minitest-5.16.2/lib/minitest.rb:400
1404
+ def runnable_methods; end
1405
+
1406
+ # Returns all subclasses of Runnable.
1407
+ #
1408
+ # source://minitest-5.16.2/lib/minitest.rb:407
1409
+ def runnables; end
1410
+
1411
+ # source://minitest-5.16.2/lib/minitest.rb:368
1412
+ def with_info_handler(reporter, &block); end
1413
+ end
1414
+ end
1415
+
1416
+ # source://minitest-5.16.2/lib/minitest.rb:381
1417
+ Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
1418
+
1419
+ # Assertion raised when skipping a run.
1420
+ #
1421
+ # source://minitest-5.16.2/lib/minitest.rb:932
1422
+ class Minitest::Skip < ::Minitest::Assertion
1423
+ # source://minitest-5.16.2/lib/minitest.rb:933
1424
+ def result_label; end
1425
+ end
1426
+
1427
+ # Minitest::Spec -- The faster, better, less-magical spec framework!
1428
+ #
1429
+ # For a list of expectations, see Minitest::Expectations.
1430
+ #
1431
+ # source://minitest-5.16.2/lib/minitest/spec.rb:100
1432
+ class Minitest::Spec < ::Minitest::Test
1433
+ include ::Minitest::Spec::DSL::InstanceMethods
1434
+ extend ::Minitest::Spec::DSL
1435
+
1436
+ # @return [Spec] a new instance of Spec
1437
+ #
1438
+ # source://minitest-5.16.2/lib/minitest/spec.rb:106
1439
+ def initialize(name); end
1440
+
1441
+ class << self
1442
+ # source://minitest-5.16.2/lib/minitest/spec.rb:102
1443
+ def current; end
1444
+ end
1445
+ end
1446
+
1447
+ # Oh look! A Minitest::Spec::DSL module! Eat your heart out DHH.
1448
+ #
1449
+ # source://minitest-5.16.2/lib/minitest/spec.rb:114
1450
+ module Minitest::Spec::DSL
1451
+ # Define an 'after' action. Inherits the way normal methods should.
1452
+ #
1453
+ # NOTE: +type+ is ignored and is only there to make porting easier.
1454
+ #
1455
+ # Equivalent to Minitest::Test#teardown.
1456
+ #
1457
+ # source://minitest-5.16.2/lib/minitest/spec.rb:199
1458
+ def after(_type = T.unsafe(nil), &block); end
1459
+
1460
+ # Define a 'before' action. Inherits the way normal methods should.
1461
+ #
1462
+ # NOTE: +type+ is ignored and is only there to make porting easier.
1463
+ #
1464
+ # Equivalent to Minitest::Test#setup.
1465
+ #
1466
+ # source://minitest-5.16.2/lib/minitest/spec.rb:185
1467
+ def before(_type = T.unsafe(nil), &block); end
1468
+
1469
+ # source://minitest-5.16.2/lib/minitest/spec.rb:168
1470
+ def children; end
1471
+
1472
+ # source://minitest-5.16.2/lib/minitest/spec.rb:264
1473
+ def create(name, desc); end
1474
+
1475
+ # source://minitest-5.16.2/lib/minitest/spec.rb:285
1476
+ def desc; end
1477
+
1478
+ # source://minitest-5.16.2/lib/minitest/spec.rb:164
1479
+ def describe_stack; end
1480
+
1481
+ # Define an expectation with name +desc+. Name gets morphed to a
1482
+ # proper test method name. For some freakish reason, people who
1483
+ # write specs don't like class inheritance, so this goes way out of
1484
+ # its way to make sure that expectations aren't inherited.
1485
+ #
1486
+ # This is also aliased to #specify and doesn't require a +desc+ arg.
1487
+ #
1488
+ # Hint: If you _do_ want inheritance, use minitest/test. You can mix
1489
+ # and match between assertions and expectations as much as you want.
1490
+ #
1491
+ # source://minitest-5.16.2/lib/minitest/spec.rb:217
1492
+ def it(desc = T.unsafe(nil), &block); end
1493
+
1494
+ # Essentially, define an accessor for +name+ with +block+.
1495
+ #
1496
+ # Why use let instead of def? I honestly don't know.
1497
+ #
1498
+ # @raise [ArgumentError]
1499
+ #
1500
+ # source://minitest-5.16.2/lib/minitest/spec.rb:241
1501
+ def let(name, &block); end
1502
+
1503
+ # source://minitest-5.16.2/lib/minitest/spec.rb:277
1504
+ def name; end
1505
+
1506
+ # source://minitest-5.16.2/lib/minitest/spec.rb:172
1507
+ def nuke_test_methods!; end
1508
+
1509
+ # Register a new type of spec that matches the spec's description.
1510
+ # This method can take either a Regexp and a spec class or a spec
1511
+ # class and a block that takes the description and returns true if
1512
+ # it matches.
1513
+ #
1514
+ # Eg:
1515
+ #
1516
+ # register_spec_type(/Controller$/, Minitest::Spec::Rails)
1517
+ #
1518
+ # or:
1519
+ #
1520
+ # register_spec_type(Minitest::Spec::RailsModel) do |desc|
1521
+ # desc.superclass == ActiveRecord::Base
1522
+ # end
1523
+ #
1524
+ # source://minitest-5.16.2/lib/minitest/spec.rb:140
1525
+ def register_spec_type(*args, &block); end
1526
+
1527
+ # Figure out the spec class to use based on a spec's description. Eg:
1528
+ #
1529
+ # spec_type("BlahController") # => Minitest::Spec::Rails
1530
+ #
1531
+ # source://minitest-5.16.2/lib/minitest/spec.rb:154
1532
+ def spec_type(desc, *additional); end
1533
+
1534
+ # Define an expectation with name +desc+. Name gets morphed to a
1535
+ # proper test method name. For some freakish reason, people who
1536
+ # write specs don't like class inheritance, so this goes way out of
1537
+ # its way to make sure that expectations aren't inherited.
1538
+ #
1539
+ # This is also aliased to #specify and doesn't require a +desc+ arg.
1540
+ #
1541
+ # Hint: If you _do_ want inheritance, use minitest/test. You can mix
1542
+ # and match between assertions and expectations as much as you want.
1543
+ #
1544
+ # source://minitest-5.16.2/lib/minitest/spec.rb:217
1545
+ def specify(desc = T.unsafe(nil), &block); end
1546
+
1547
+ # Another lazy man's accessor generator. Made even more lazy by
1548
+ # setting the name for you to +subject+.
1549
+ #
1550
+ # source://minitest-5.16.2/lib/minitest/spec.rb:260
1551
+ def subject(&block); end
1552
+
1553
+ # source://minitest-5.16.2/lib/minitest/spec.rb:281
1554
+ def to_s; end
1555
+
1556
+ class << self
1557
+ # source://minitest-5.16.2/lib/minitest/spec.rb:329
1558
+ def extended(obj); end
1559
+ end
1560
+ end
1561
+
1562
+ # Rdoc... why are you so dumb?
1563
+ #
1564
+ # source://minitest-5.16.2/lib/minitest/spec.rb:291
1565
+ module Minitest::Spec::DSL::InstanceMethods
1566
+ # Takes a value or a block and returns a value monad that has
1567
+ # all of Expectations methods available to it.
1568
+ #
1569
+ # _(1 + 1).must_equal 2
1570
+ #
1571
+ # And for blocks:
1572
+ #
1573
+ # _ { 1 + "1" }.must_raise TypeError
1574
+ #
1575
+ # This method of expectation-based testing is preferable to
1576
+ # straight-expectation methods (on Object) because it stores its
1577
+ # test context, bypassing our hacky use of thread-local variables.
1578
+ #
1579
+ # NOTE: At some point, the methods on Object will be deprecated
1580
+ # and then removed.
1581
+ #
1582
+ # It is also aliased to #value and #expect for your aesthetic
1583
+ # pleasure:
1584
+ #
1585
+ # _(1 + 1).must_equal 2
1586
+ # value(1 + 1).must_equal 2
1587
+ # expect(1 + 1).must_equal 2
1588
+ #
1589
+ # source://minitest-5.16.2/lib/minitest/spec.rb:316
1590
+ def _(value = T.unsafe(nil), &block); end
1591
+
1592
+ # source://minitest-5.16.2/lib/minitest/spec.rb:323
1593
+ def before_setup; end
1594
+
1595
+ # Takes a value or a block and returns a value monad that has
1596
+ # all of Expectations methods available to it.
1597
+ #
1598
+ # _(1 + 1).must_equal 2
1599
+ #
1600
+ # And for blocks:
1601
+ #
1602
+ # _ { 1 + "1" }.must_raise TypeError
1603
+ #
1604
+ # This method of expectation-based testing is preferable to
1605
+ # straight-expectation methods (on Object) because it stores its
1606
+ # test context, bypassing our hacky use of thread-local variables.
1607
+ #
1608
+ # NOTE: At some point, the methods on Object will be deprecated
1609
+ # and then removed.
1610
+ #
1611
+ # It is also aliased to #value and #expect for your aesthetic
1612
+ # pleasure:
1613
+ #
1614
+ # _(1 + 1).must_equal 2
1615
+ # value(1 + 1).must_equal 2
1616
+ # expect(1 + 1).must_equal 2
1617
+ #
1618
+ # source://minitest-5.16.2/lib/minitest/spec.rb:316
1619
+ def expect(value = T.unsafe(nil), &block); end
1620
+
1621
+ # Takes a value or a block and returns a value monad that has
1622
+ # all of Expectations methods available to it.
1623
+ #
1624
+ # _(1 + 1).must_equal 2
1625
+ #
1626
+ # And for blocks:
1627
+ #
1628
+ # _ { 1 + "1" }.must_raise TypeError
1629
+ #
1630
+ # This method of expectation-based testing is preferable to
1631
+ # straight-expectation methods (on Object) because it stores its
1632
+ # test context, bypassing our hacky use of thread-local variables.
1633
+ #
1634
+ # NOTE: At some point, the methods on Object will be deprecated
1635
+ # and then removed.
1636
+ #
1637
+ # It is also aliased to #value and #expect for your aesthetic
1638
+ # pleasure:
1639
+ #
1640
+ # _(1 + 1).must_equal 2
1641
+ # value(1 + 1).must_equal 2
1642
+ # expect(1 + 1).must_equal 2
1643
+ #
1644
+ # source://minitest-5.16.2/lib/minitest/spec.rb:316
1645
+ def value(value = T.unsafe(nil), &block); end
1646
+ end
1647
+
1648
+ # Contains pairs of matchers and Spec classes to be used to
1649
+ # calculate the superclass of a top-level describe. This allows for
1650
+ # automatically customizable spec types.
1651
+ #
1652
+ # See: register_spec_type and spec_type
1653
+ #
1654
+ # source://minitest-5.16.2/lib/minitest/spec.rb:122
1655
+ Minitest::Spec::DSL::TYPES = T.let(T.unsafe(nil), Array)
1656
+
1657
+ # source://minitest-5.16.2/lib/minitest/spec.rb:336
1658
+ Minitest::Spec::TYPES = T.let(T.unsafe(nil), Array)
1659
+
1660
+ # A reporter that gathers statistics about a test run. Does not do
1661
+ # any IO because meant to be used as a parent class for a reporter
1662
+ # that does.
1663
+ #
1664
+ # If you want to create an entirely different type of output (eg,
1665
+ # CI, HTML, etc), this is the place to start.
1666
+ #
1667
+ # Example:
1668
+ #
1669
+ # class JenkinsCIReporter < StatisticsReporter
1670
+ # def report
1671
+ # super # Needed to calculate some statistics
1672
+ #
1673
+ # print "<testsuite "
1674
+ # print "tests='#{count}' "
1675
+ # print "failures='#{failures}' "
1676
+ # # Remaining XML...
1677
+ # end
1678
+ # end
1679
+ #
1680
+ # source://minitest-5.16.2/lib/minitest.rb:681
1681
+ class Minitest::StatisticsReporter < ::Minitest::Reporter
1682
+ # @return [StatisticsReporter] a new instance of StatisticsReporter
1683
+ #
1684
+ # source://minitest-5.16.2/lib/minitest.rb:723
1685
+ def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
1686
+
1687
+ # Total number of assertions.
1688
+ #
1689
+ # source://minitest-5.16.2/lib/minitest.rb:683
1690
+ def assertions; end
1691
+
1692
+ # Total number of assertions.
1693
+ #
1694
+ # source://minitest-5.16.2/lib/minitest.rb:683
1695
+ def assertions=(_arg0); end
1696
+
1697
+ # Total number of test cases.
1698
+ #
1699
+ # source://minitest-5.16.2/lib/minitest.rb:688
1700
+ def count; end
1701
+
1702
+ # Total number of test cases.
1703
+ #
1704
+ # source://minitest-5.16.2/lib/minitest.rb:688
1705
+ def count=(_arg0); end
1706
+
1707
+ # Total number of tests that erred.
1708
+ #
1709
+ # source://minitest-5.16.2/lib/minitest.rb:716
1710
+ def errors; end
1711
+
1712
+ # Total number of tests that erred.
1713
+ #
1714
+ # source://minitest-5.16.2/lib/minitest.rb:716
1715
+ def errors=(_arg0); end
1716
+
1717
+ # Total number of tests that failed.
1718
+ #
1719
+ # source://minitest-5.16.2/lib/minitest.rb:711
1720
+ def failures; end
1721
+
1722
+ # Total number of tests that failed.
1723
+ #
1724
+ # source://minitest-5.16.2/lib/minitest.rb:711
1725
+ def failures=(_arg0); end
1726
+
1727
+ # @return [Boolean]
1728
+ #
1729
+ # source://minitest-5.16.2/lib/minitest.rb:736
1730
+ def passed?; end
1731
+
1732
+ # source://minitest-5.16.2/lib/minitest.rb:744
1733
+ def record(result); end
1734
+
1735
+ # Report on the tracked statistics.
1736
+ #
1737
+ # source://minitest-5.16.2/lib/minitest.rb:754
1738
+ def report; end
1739
+
1740
+ # An +Array+ of test cases that failed or were skipped.
1741
+ #
1742
+ # source://minitest-5.16.2/lib/minitest.rb:693
1743
+ def results; end
1744
+
1745
+ # An +Array+ of test cases that failed or were skipped.
1746
+ #
1747
+ # source://minitest-5.16.2/lib/minitest.rb:693
1748
+ def results=(_arg0); end
1749
+
1750
+ # Total number of tests that where skipped.
1751
+ #
1752
+ # source://minitest-5.16.2/lib/minitest.rb:721
1753
+ def skips; end
1754
+
1755
+ # Total number of tests that where skipped.
1756
+ #
1757
+ # source://minitest-5.16.2/lib/minitest.rb:721
1758
+ def skips=(_arg0); end
1759
+
1760
+ # source://minitest-5.16.2/lib/minitest.rb:740
1761
+ def start; end
1762
+
1763
+ # Time the test run started. If available, the monotonic clock is
1764
+ # used and this is a +Float+, otherwise it's an instance of
1765
+ # +Time+.
1766
+ #
1767
+ # source://minitest-5.16.2/lib/minitest.rb:700
1768
+ def start_time; end
1769
+
1770
+ # Time the test run started. If available, the monotonic clock is
1771
+ # used and this is a +Float+, otherwise it's an instance of
1772
+ # +Time+.
1773
+ #
1774
+ # source://minitest-5.16.2/lib/minitest.rb:700
1775
+ def start_time=(_arg0); end
1776
+
1777
+ # Test run time. If available, the monotonic clock is used and
1778
+ # this is a +Float+, otherwise it's an instance of +Time+.
1779
+ #
1780
+ # source://minitest-5.16.2/lib/minitest.rb:706
1781
+ def total_time; end
1782
+
1783
+ # Test run time. If available, the monotonic clock is used and
1784
+ # this is a +Float+, otherwise it's an instance of +Time+.
1785
+ #
1786
+ # source://minitest-5.16.2/lib/minitest.rb:706
1787
+ def total_time=(_arg0); end
1788
+ end
1789
+
1790
+ # A reporter that prints the header, summary, and failure details at
1791
+ # the end of the run.
1792
+ #
1793
+ # This is added to the top-level CompositeReporter at the start of
1794
+ # the run. If you want to change the output of minitest via a
1795
+ # plugin, pull this out of the composite and replace it with your
1796
+ # own.
1797
+ #
1798
+ # source://minitest-5.16.2/lib/minitest.rb:775
1799
+ class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
1800
+ # source://minitest-5.16.2/lib/minitest.rb:809
1801
+ def aggregated_results(io); end
1802
+
1803
+ # Returns the value of attribute old_sync.
1804
+ #
1805
+ # source://minitest-5.16.2/lib/minitest.rb:777
1806
+ def old_sync; end
1807
+
1808
+ # Sets the attribute old_sync
1809
+ #
1810
+ # @param value the value to set the attribute old_sync to.
1811
+ #
1812
+ # source://minitest-5.16.2/lib/minitest.rb:777
1813
+ def old_sync=(_arg0); end
1814
+
1815
+ # source://minitest-5.16.2/lib/minitest.rb:792
1816
+ def report; end
1817
+
1818
+ # :startdoc:
1819
+ #
1820
+ # source://minitest-5.16.2/lib/minitest.rb:780
1821
+ def start; end
1822
+
1823
+ # source://minitest-5.16.2/lib/minitest.rb:804
1824
+ def statistics; end
1825
+
1826
+ # source://minitest-5.16.2/lib/minitest.rb:829
1827
+ def summary; end
1828
+
1829
+ # :stopdoc:
1830
+ #
1831
+ # source://minitest-5.16.2/lib/minitest.rb:776
1832
+ def sync; end
1833
+
1834
+ # :stopdoc:
1835
+ #
1836
+ # source://minitest-5.16.2/lib/minitest.rb:776
1837
+ def sync=(_arg0); end
1838
+
1839
+ # source://minitest-5.16.2/lib/minitest.rb:825
1840
+ def to_s; end
1841
+
1842
+ private
1843
+
1844
+ # source://minitest-5.16.2/lib/minitest.rb:843
1845
+ def binary_string; end
1846
+ end
1847
+
1848
+ # Subclass Test to create your own tests. Typically you'll want a
1849
+ # Test subclass per implementation class.
1850
+ #
1851
+ # See Minitest::Assertions
1852
+ #
1853
+ # source://minitest-5.16.2/lib/minitest/test.rb:10
1854
+ class Minitest::Test < ::Minitest::Runnable
1855
+ include ::Minitest::Assertions
1856
+ include ::Minitest::Reportable
1857
+ include ::Minitest::Test::LifecycleHooks
1858
+ include ::Minitest::Guard
1859
+ include ::Mocha::ParameterMatchers
1860
+ include ::Mocha::Hooks
1861
+ include ::Mocha::API
1862
+ extend ::Minitest::Guard
1863
+
1864
+ # LifecycleHooks
1865
+ #
1866
+ # source://minitest-5.16.2/lib/minitest/test.rb:194
1867
+ def capture_exceptions; end
1868
+
1869
+ # source://minitest-5.16.2/lib/minitest/test.rb:15
1870
+ def class_name; end
1871
+
1872
+ # source://minitest-5.16.2/lib/minitest/test.rb:211
1873
+ def neuter_exception(e); end
1874
+
1875
+ # source://minitest-5.16.2/lib/minitest/test.rb:222
1876
+ def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
1877
+
1878
+ # Runs a single test with setup/teardown hooks.
1879
+ #
1880
+ # source://minitest-5.16.2/lib/minitest/test.rb:92
1881
+ def run; end
1882
+
1883
+ # source://minitest-5.16.2/lib/minitest/test.rb:204
1884
+ def sanitize_exception(e); end
1885
+
1886
+ # source://minitest-5.16.2/lib/minitest/test.rb:236
1887
+ def with_info_handler(&block); end
1888
+
1889
+ class << self
1890
+ # source://minitest-focus-1.2.1/lib/minitest/focus5.rb:8
1891
+ def add_to_filter(name); end
1892
+
1893
+ # source://minitest-focus-1.2.1/lib/minitest/focus5.rb:12
1894
+ def filtered_names; end
1895
+
1896
+ # source://minitest-focus-1.2.1/lib/minitest/focus5.rb:27
1897
+ def focus; end
1898
+
1899
+ # Call this at the top of your tests when you absolutely
1900
+ # positively need to have ordered tests. In doing so, you're
1901
+ # admitting that you suck and your tests are weak.
1902
+ #
1903
+ # source://minitest-5.16.2/lib/minitest/test.rb:31
1904
+ def i_suck_and_my_tests_are_order_dependent!; end
1905
+
1906
+ # Returns the value of attribute io_lock.
1907
+ #
1908
+ # source://minitest-5.16.2/lib/minitest/test.rb:22
1909
+ def io_lock; end
1910
+
1911
+ # Sets the attribute io_lock
1912
+ #
1913
+ # @param value the value to set the attribute io_lock to.
1914
+ #
1915
+ # source://minitest-5.16.2/lib/minitest/test.rb:22
1916
+ def io_lock=(_arg0); end
1917
+
1918
+ # Make diffs for this Test use #pretty_inspect so that diff
1919
+ # in assert_equal can have more details. NOTE: this is much slower
1920
+ # than the regular inspect but much more usable for complex
1921
+ # objects.
1922
+ #
1923
+ # source://minitest-5.16.2/lib/minitest/test.rb:44
1924
+ def make_my_diffs_pretty!; end
1925
+
1926
+ # Call this at the top of your tests when you want to run your
1927
+ # tests in parallel. In doing so, you're admitting that you rule
1928
+ # and your tests are awesome.
1929
+ #
1930
+ # source://minitest-5.16.2/lib/minitest/test.rb:55
1931
+ def parallelize_me!; end
1932
+
1933
+ # Returns all instance methods starting with "test_". Based on
1934
+ # #test_order, the methods are either sorted, randomized
1935
+ # (default), or run in parallel.
1936
+ #
1937
+ # source://minitest-5.16.2/lib/minitest/test.rb:65
1938
+ def runnable_methods; end
1939
+
1940
+ # Defines the order to run tests (:random by default). Override
1941
+ # this or use a convenience method to change it for your tests.
1942
+ #
1943
+ # source://minitest-5.16.2/lib/minitest/test.rb:83
1944
+ def test_order; end
1945
+ end
1946
+ end
1947
+
1948
+ # Provides before/after hooks for setup and teardown. These are
1949
+ # meant for library writers, NOT for regular test authors. See
1950
+ # #before_setup for an example.
1951
+ #
1952
+ # source://minitest-5.16.2/lib/minitest/test.rb:117
1953
+ module Minitest::Test::LifecycleHooks
1954
+ # Runs before every test, after setup. This hook is meant for
1955
+ # libraries to extend minitest. It is not meant to be used by
1956
+ # test developers.
1957
+ #
1958
+ # See #before_setup for an example.
1959
+ #
1960
+ # source://minitest-5.16.2/lib/minitest/test.rb:167
1961
+ def after_setup; end
1962
+
1963
+ # Runs after every test, after teardown. This hook is meant for
1964
+ # libraries to extend minitest. It is not meant to be used by
1965
+ # test developers.
1966
+ #
1967
+ # See #before_setup for an example.
1968
+ #
1969
+ # source://minitest-5.16.2/lib/minitest/test.rb:191
1970
+ def after_teardown; end
1971
+
1972
+ # Runs before every test, before setup. This hook is meant for
1973
+ # libraries to extend minitest. It is not meant to be used by
1974
+ # test developers.
1975
+ #
1976
+ # As a simplistic example:
1977
+ #
1978
+ # module MyMinitestPlugin
1979
+ # def before_setup
1980
+ # super
1981
+ # # ... stuff to do before setup is run
1982
+ # end
1983
+ #
1984
+ # def after_setup
1985
+ # # ... stuff to do after setup is run
1986
+ # super
1987
+ # end
1988
+ #
1989
+ # def before_teardown
1990
+ # super
1991
+ # # ... stuff to do before teardown is run
1992
+ # end
1993
+ #
1994
+ # def after_teardown
1995
+ # # ... stuff to do after teardown is run
1996
+ # super
1997
+ # end
1998
+ # end
1999
+ #
2000
+ # class MiniTest::Test
2001
+ # include MyMinitestPlugin
2002
+ # end
2003
+ #
2004
+ # source://minitest-5.16.2/lib/minitest/test.rb:152
2005
+ def before_setup; end
2006
+
2007
+ # Runs after every test, before teardown. This hook is meant for
2008
+ # libraries to extend minitest. It is not meant to be used by
2009
+ # test developers.
2010
+ #
2011
+ # See #before_setup for an example.
2012
+ #
2013
+ # source://minitest-5.16.2/lib/minitest/test.rb:176
2014
+ def before_teardown; end
2015
+
2016
+ # Runs before every test. Use this to set up before each test
2017
+ # run.
2018
+ #
2019
+ # source://minitest-5.16.2/lib/minitest/test.rb:158
2020
+ def setup; end
2021
+
2022
+ # Runs after every test. Use this to clean up after each test
2023
+ # run.
2024
+ #
2025
+ # source://minitest-5.16.2/lib/minitest/test.rb:182
2026
+ def teardown; end
2027
+ end
2028
+
2029
+ # source://minitest-5.16.2/lib/minitest/test.rb:19
2030
+ Minitest::Test::PASSTHROUGH_EXCEPTIONS = T.let(T.unsafe(nil), Array)
2031
+
2032
+ # source://minitest-5.16.2/lib/minitest/test.rb:87
2033
+ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
2034
+
2035
+ # Assertion wrapping an unexpected error that was raised during a run.
2036
+ #
2037
+ # source://minitest-5.16.2/lib/minitest.rb:942
2038
+ class Minitest::UnexpectedError < ::Minitest::Assertion
2039
+ # @return [UnexpectedError] a new instance of UnexpectedError
2040
+ #
2041
+ # source://minitest-5.16.2/lib/minitest.rb:945
2042
+ def initialize(error); end
2043
+
2044
+ # source://minitest-5.16.2/lib/minitest.rb:950
2045
+ def backtrace; end
2046
+
2047
+ # TODO: figure out how to use `cause` instead
2048
+ #
2049
+ # source://minitest-5.16.2/lib/minitest.rb:943
2050
+ def error; end
2051
+
2052
+ # TODO: figure out how to use `cause` instead
2053
+ #
2054
+ # source://minitest-5.16.2/lib/minitest.rb:943
2055
+ def error=(_arg0); end
2056
+
2057
+ # source://minitest-5.16.2/lib/minitest.rb:954
2058
+ def message; end
2059
+
2060
+ # source://minitest-5.16.2/lib/minitest.rb:959
2061
+ def result_label; end
2062
+ end
2063
+
2064
+ # source://minitest-5.16.2/lib/minitest/unit.rb:20
2065
+ class Minitest::Unit
2066
+ class << self
2067
+ # source://minitest-5.16.2/lib/minitest/unit.rb:36
2068
+ def after_tests(&b); end
2069
+
2070
+ # source://minitest-5.16.2/lib/minitest/unit.rb:30
2071
+ def autorun; end
2072
+ end
2073
+ end
2074
+
2075
+ # source://minitest-5.16.2/lib/minitest/unit.rb:22
2076
+ class Minitest::Unit::TestCase < ::Minitest::Test
2077
+ class << self
2078
+ # source://minitest-5.16.2/lib/minitest/unit.rb:23
2079
+ def inherited(klass); end
2080
+ end
2081
+ end
2082
+
2083
+ # source://minitest-5.16.2/lib/minitest/unit.rb:21
2084
+ Minitest::Unit::VERSION = T.let(T.unsafe(nil), String)
2085
+
2086
+ # source://minitest-5.16.2/lib/minitest.rb:12
2087
+ Minitest::VERSION = T.let(T.unsafe(nil), String)
2088
+
2089
+ # source://minitest-5.16.2/lib/minitest/mock.rb:1
2090
+ class MockExpectationError < ::StandardError; end
2091
+
2092
+ # source://minitest-5.16.2/lib/minitest/spec.rb:3
2093
+ class Module
2094
+ # source://minitest-5.16.2/lib/minitest/spec.rb:4
2095
+ def infect_an_assertion(meth, new_name, dont_flip = T.unsafe(nil)); end
2096
+ end
2097
+
2098
+ # source://activesupport-7.0.3.1/lib/active_support/core_ext/module/delegation.rb:13
2099
+ Module::DELEGATION_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
2100
+
2101
+ # source://activesupport-7.0.3.1/lib/active_support/core_ext/module/delegation.rb:14
2102
+ Module::DELEGATION_RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set)
2103
+
2104
+ # source://activesupport-7.0.3.1/lib/active_support/core_ext/module/delegation.rb:10
2105
+ Module::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
2106
+
2107
+ # Object extensions for Minitest::Mock.
2108
+ #
2109
+ # source://minitest-5.16.2/lib/minitest/spec.rb:341
2110
+ class Object < ::BasicObject
2111
+ include ::ActiveSupport::ForkTracker::CoreExt
2112
+ include ::Kernel
2113
+ include ::Minitest::Expectations
2114
+
2115
+ # Add a temporary stubbed method replacing +name+ for the duration
2116
+ # of the +block+. If +val_or_callable+ responds to #call, then it
2117
+ # returns the result of calling it, otherwise returns the value
2118
+ # as-is. If stubbed method yields a block, +block_args+ will be
2119
+ # passed along. Cleans up the stub at the end of the +block+. The
2120
+ # method +name+ must exist before stubbing.
2121
+ #
2122
+ # def test_stale_eh
2123
+ # obj_under_test = Something.new
2124
+ # refute obj_under_test.stale?
2125
+ #
2126
+ # Time.stub :now, Time.at(0) do
2127
+ # assert obj_under_test.stale?
2128
+ # end
2129
+ # end
2130
+ # --
2131
+ # NOTE: keyword args in callables are NOT checked for correctness
2132
+ # against the existing method. Too many edge cases to be worth it.
2133
+ #
2134
+ # source://minitest-5.16.2/lib/minitest/mock.rb:274
2135
+ def stub(name, val_or_callable, *block_args, **block_kwargs, &block); end
2136
+ end