sorbet-result 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +6 -0
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +21 -0
  6. data/Gemfile +3 -5
  7. data/Gemfile.lock +79 -64
  8. data/README.md +25 -2
  9. data/Rakefile +3 -5
  10. data/lib/minitest/result_assertions.rb +48 -0
  11. data/lib/sorbet-result.rb +1 -5
  12. data/lib/typed/result.rb +199 -7
  13. data/sorbet/rbi/gems/.gitattributes +1 -0
  14. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  15. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  16. data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +1 -0
  17. data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.5.rbi} +168 -72
  18. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  19. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  20. data/sorbet/rbi/gems/{minitest@5.18.1.rbi → minitest@5.25.1.rbi} +337 -282
  21. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  22. data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.26.3.rbi} +38 -20
  23. data/sorbet/rbi/gems/{parser@3.2.2.3.rbi → parser@3.3.5.1.rbi} +663 -2397
  24. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  25. data/sorbet/rbi/gems/psych@5.1.2.rbi +1732 -0
  26. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +37 -36
  27. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  28. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.2.1.rbi} +79 -75
  29. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  30. data/sorbet/rbi/gems/{regexp_parser@2.8.1.rbi → regexp_parser@2.9.2.rbi} +190 -167
  31. data/sorbet/rbi/gems/{reline@0.3.5.rbi → reline@0.5.10.rbi} +1 -0
  32. data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.33.1.rbi} +1220 -748
  33. data/sorbet/rbi/gems/rubocop-performance@1.22.1.rbi +9 -0
  34. data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +9 -0
  35. data/sorbet/rbi/gems/{rubocop@1.52.1.rbi → rubocop@1.66.1.rbi} +6236 -3446
  36. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  37. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  38. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
  39. data/sorbet/rbi/gems/standard-performance@1.5.0.rbi +9 -0
  40. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +53 -0
  41. data/sorbet/rbi/gems/standard@1.41.1.rbi +926 -0
  42. data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
  43. data/sorbet/rbi/gems/{tapioca@0.11.6.rbi → tapioca@0.16.3.rbi} +937 -635
  44. data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.3.2.rbi} +832 -419
  45. data/sorbet/rbi/gems/{unicode-display_width@2.4.2.rbi → unicode-display_width@2.6.0.rbi} +1 -0
  46. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  47. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +431 -271
  48. data/sorbet/tapioca/config.yml +3 -12
  49. data/sorbet/tapioca/require.rb +0 -1
  50. metadata +37 -47
  51. data/.rubocop.yml +0 -33
  52. data/lib/typed/failure.rb +0 -81
  53. data/lib/typed/success.rb +0 -80
  54. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
  55. data/sorbet/rbi/gems/irb@1.7.0.rbi +0 -342
  56. data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
  57. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4717
  58. data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +0 -2528
  59. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -328
  60. data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +0 -1043
  61. data/sorbet/rbi/gems/spoom@1.2.1.rbi +0 -2503
  62. data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
  63. data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +0 -986
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `minitest` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem minitest`.
6
6
 
7
+
7
8
  # Kernel extensions for minitest
8
9
  #
9
10
  # source://minitest//lib/minitest/spec.rb#46
@@ -56,7 +57,7 @@ module Minitest
56
57
  # Internal run method. Responsible for telling all Runnable
57
58
  # sub-classes to run.
58
59
  #
59
- # source://minitest//lib/minitest.rb#173
60
+ # source://minitest//lib/minitest.rb#322
60
61
  def __run(reporter, options); end
61
62
 
62
63
  # A simple hook allowing you to run a block of code after everything
@@ -64,12 +65,18 @@ module Minitest
64
65
  #
65
66
  # Minitest.after_run { p $debugging_info }
66
67
  #
67
- # source://minitest//lib/minitest.rb#94
68
+ # source://minitest//lib/minitest.rb#96
68
69
  def after_run(&block); end
69
70
 
71
+ # source://minitest//lib/minitest.rb#19
72
+ def allow_fork; end
73
+
74
+ # source://minitest//lib/minitest.rb#19
75
+ def allow_fork=(_arg0); end
76
+
70
77
  # Registers Minitest to run at process exit
71
78
  #
72
- # source://minitest//lib/minitest.rb#66
79
+ # source://minitest//lib/minitest.rb#69
73
80
  def autorun; end
74
81
 
75
82
  # source://minitest//lib/minitest.rb#19
@@ -81,16 +88,19 @@ module Minitest
81
88
  # source://minitest//lib/minitest.rb#18
82
89
  def cattr_accessor(name); end
83
90
 
84
- # source://minitest//lib/minitest.rb#1073
91
+ # source://minitest//lib/minitest.rb#1215
85
92
  def clock_time; end
86
93
 
94
+ # source://minitest//lib/minitest.rb#302
95
+ def empty_run!(options); end
96
+
87
97
  # source://minitest//lib/minitest.rb#19
88
98
  def extensions; end
89
99
 
90
100
  # source://minitest//lib/minitest.rb#19
91
101
  def extensions=(_arg0); end
92
102
 
93
- # source://minitest//lib/minitest.rb#264
103
+ # source://minitest//lib/minitest.rb#335
94
104
  def filter_backtrace(bt); end
95
105
 
96
106
  # source://minitest//lib/minitest.rb#19
@@ -99,10 +109,10 @@ module Minitest
99
109
  # source://minitest//lib/minitest.rb#19
100
110
  def info_signal=(_arg0); end
101
111
 
102
- # source://minitest//lib/minitest.rb#98
112
+ # source://minitest//lib/minitest.rb#124
103
113
  def init_plugins(options); end
104
114
 
105
- # source://minitest//lib/minitest.rb#105
115
+ # source://minitest//lib/minitest.rb#108
106
116
  def load_plugins; end
107
117
 
108
118
  # source://minitest//lib/minitest.rb#19
@@ -111,9 +121,14 @@ module Minitest
111
121
  # source://minitest//lib/minitest.rb#19
112
122
  def parallel_executor=(_arg0); end
113
123
 
114
- # source://minitest//lib/minitest.rb#186
124
+ # source://minitest//lib/minitest.rb#142
115
125
  def process_args(args = T.unsafe(nil)); end
116
126
 
127
+ # Register a plugin to be used. Does NOT require / load it.
128
+ #
129
+ # source://minitest//lib/minitest.rb#103
130
+ def register_plugin(name_or_mod); end
131
+
117
132
  # source://minitest//lib/minitest.rb#19
118
133
  def reporter; end
119
134
 
@@ -128,18 +143,21 @@ module Minitest
128
143
  #
129
144
  # Minitest.autorun
130
145
  # Minitest.run(args)
146
+ # Minitest.load_plugins
147
+ # Minitest.process_args
148
+ # Minitest.init_plugins
131
149
  # Minitest.__run(reporter, options)
132
150
  # Runnable.runnables.each
133
- # runnable.run(reporter, options)
151
+ # runnable_klass.run(reporter, options)
134
152
  # self.runnable_methods.each
135
153
  # self.run_one_method(self, runnable_method, reporter)
136
154
  # Minitest.run_one_method(klass, runnable_method)
137
155
  # klass.new(runnable_method).run
138
156
  #
139
- # source://minitest//lib/minitest.rb#140
157
+ # source://minitest//lib/minitest.rb#268
140
158
  def run(args = T.unsafe(nil)); end
141
159
 
142
- # source://minitest//lib/minitest.rb#1064
160
+ # source://minitest//lib/minitest.rb#1206
143
161
  def run_one_method(klass, method_name); end
144
162
 
145
163
  # source://minitest//lib/minitest.rb#19
@@ -153,27 +171,24 @@ end
153
171
  # Defines the API for Reporters. Subclass this and override whatever
154
172
  # you want. Go nuts.
155
173
  #
156
- # source://minitest//lib/minitest.rb#592
174
+ # source://minitest//lib/minitest.rb#686
157
175
  class Minitest::AbstractReporter
158
- include ::Mutex_m
159
-
160
- # source://mutex_m/0.1.2/mutex_m.rb#93
161
- def lock; end
162
-
163
- # source://mutex_m/0.1.2/mutex_m.rb#83
164
- def locked?; end
176
+ # @return [AbstractReporter] a new instance of AbstractReporter
177
+ #
178
+ # source://minitest//lib/minitest.rb#688
179
+ def initialize; end
165
180
 
166
181
  # Did this run pass?
167
182
  #
168
183
  # @return [Boolean]
169
184
  #
170
- # source://minitest//lib/minitest.rb#626
185
+ # source://minitest//lib/minitest.rb#723
171
186
  def passed?; end
172
187
 
173
188
  # About to start running a test. This allows a reporter to show
174
189
  # that it is starting or that we are in the middle of a test run.
175
190
  #
176
- # source://minitest//lib/minitest.rb#605
191
+ # source://minitest//lib/minitest.rb#702
177
192
  def prerecord(klass, name); end
178
193
 
179
194
  # Output and record the result of the test. Call
@@ -181,48 +196,45 @@ class Minitest::AbstractReporter
181
196
  # result character string. Stores the result of the run if the run
182
197
  # did not pass.
183
198
  #
184
- # source://minitest//lib/minitest.rb#614
199
+ # source://minitest//lib/minitest.rb#711
185
200
  def record(result); end
186
201
 
187
202
  # Outputs the summary of the run.
188
203
  #
189
- # source://minitest//lib/minitest.rb#620
204
+ # source://minitest//lib/minitest.rb#717
190
205
  def report; end
191
206
 
192
207
  # Starts reporting on the run.
193
208
  #
194
- # source://minitest//lib/minitest.rb#598
209
+ # source://minitest//lib/minitest.rb#695
195
210
  def start; end
196
211
 
197
- # source://mutex_m/0.1.2/mutex_m.rb#78
212
+ # source://minitest//lib/minitest.rb#727
198
213
  def synchronize(&block); end
199
-
200
- # source://mutex_m/0.1.2/mutex_m.rb#88
201
- def try_lock; end
202
-
203
- # source://mutex_m/0.1.2/mutex_m.rb#98
204
- def unlock; end
205
214
  end
206
215
 
207
216
  # Represents run failures.
208
217
  #
209
- # source://minitest//lib/minitest.rb#909
218
+ # source://minitest//lib/minitest.rb#1019
210
219
  class Minitest::Assertion < ::Exception
211
- # source://minitest//lib/minitest.rb#910
220
+ # source://minitest//lib/minitest.rb#1022
212
221
  def error; end
213
222
 
214
223
  # Where was this run before an assertion was raised?
215
224
  #
216
- # source://minitest//lib/minitest.rb#917
225
+ # source://minitest//lib/minitest.rb#1029
217
226
  def location; end
218
227
 
219
- # source://minitest//lib/minitest.rb#926
228
+ # source://minitest//lib/minitest.rb#1037
220
229
  def result_code; end
221
230
 
222
- # source://minitest//lib/minitest.rb#930
231
+ # source://minitest//lib/minitest.rb#1041
223
232
  def result_label; end
224
233
  end
225
234
 
235
+ # source://minitest//lib/minitest.rb#1020
236
+ Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
237
+
226
238
  # Minitest Assertions. All assertion methods accept a +msg+ which is
227
239
  # printed if the assertion fails.
228
240
  #
@@ -232,19 +244,22 @@ end
232
244
  # provided by the thing including Assertions. See Minitest::Runnable
233
245
  # for an example.
234
246
  #
235
- # source://minitest//lib/minitest/assertions.rb#18
247
+ # source://minitest//lib/minitest/assertions.rb#16
236
248
  module Minitest::Assertions
237
- # source://minitest//lib/minitest/assertions.rb#188
249
+ # source://minitest//lib/minitest/assertions.rb#181
238
250
  def _synchronize; end
239
251
 
252
+ # source://minitest//lib/minitest/assertions.rb#194
253
+ def _where; end
254
+
240
255
  # Fails unless +test+ is truthy.
241
256
  #
242
- # source://minitest//lib/minitest/assertions.rb#178
257
+ # source://minitest//lib/minitest/assertions.rb#171
243
258
  def assert(test, msg = T.unsafe(nil)); end
244
259
 
245
260
  # Fails unless +obj+ is empty.
246
261
  #
247
- # source://minitest//lib/minitest/assertions.rb#195
262
+ # source://minitest//lib/minitest/assertions.rb#188
248
263
  def assert_empty(obj, msg = T.unsafe(nil)); end
249
264
 
250
265
  # Fails unless <tt>exp == act</tt> printing the difference between
@@ -259,7 +274,7 @@ module Minitest::Assertions
259
274
  #
260
275
  # See also: Minitest::Assertions.diff
261
276
  #
262
- # source://minitest//lib/minitest/assertions.rb#216
277
+ # source://minitest//lib/minitest/assertions.rb#214
263
278
  def assert_equal(exp, act, msg = T.unsafe(nil)); end
264
279
 
265
280
  # For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
@@ -267,50 +282,50 @@ module Minitest::Assertions
267
282
  #
268
283
  # assert_in_delta Math::PI, (22.0 / 7.0), 0.01
269
284
  #
270
- # source://minitest//lib/minitest/assertions.rb#240
285
+ # source://minitest//lib/minitest/assertions.rb#235
271
286
  def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
272
287
 
273
288
  # For comparing Floats. Fails unless +exp+ and +act+ have a relative
274
289
  # error less than +epsilon+.
275
290
  #
276
- # source://minitest//lib/minitest/assertions.rb#252
291
+ # source://minitest//lib/minitest/assertions.rb#247
277
292
  def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
278
293
 
279
294
  # Fails unless +collection+ includes +obj+.
280
295
  #
281
- # source://minitest//lib/minitest/assertions.rb#259
296
+ # source://minitest//lib/minitest/assertions.rb#254
282
297
  def assert_includes(collection, obj, msg = T.unsafe(nil)); end
283
298
 
284
299
  # Fails unless +obj+ is an instance of +cls+.
285
300
  #
286
- # source://minitest//lib/minitest/assertions.rb#270
301
+ # source://minitest//lib/minitest/assertions.rb#265
287
302
  def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end
288
303
 
289
304
  # Fails unless +obj+ is a kind of +cls+.
290
305
  #
291
- # source://minitest//lib/minitest/assertions.rb#281
306
+ # source://minitest//lib/minitest/assertions.rb#276
292
307
  def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end
293
308
 
294
309
  # Fails unless +matcher+ <tt>=~</tt> +obj+.
295
310
  #
296
- # source://minitest//lib/minitest/assertions.rb#291
311
+ # source://minitest//lib/minitest/assertions.rb#287
297
312
  def assert_match(matcher, obj, msg = T.unsafe(nil)); end
298
313
 
299
314
  # Assert that the mock verifies correctly.
300
315
  #
301
- # source://minitest//lib/minitest/mock.rb#248
316
+ # source://minitest//lib/minitest/mock.rb#250
302
317
  def assert_mock(mock); end
303
318
 
304
319
  # Fails unless +obj+ is nil
305
320
  #
306
- # source://minitest//lib/minitest/assertions.rb#303
321
+ # source://minitest//lib/minitest/assertions.rb#299
307
322
  def assert_nil(obj, msg = T.unsafe(nil)); end
308
323
 
309
324
  # For testing with binary operators. Eg:
310
325
  #
311
326
  # assert_operator 5, :<=, 4
312
327
  #
313
- # source://minitest//lib/minitest/assertions.rb#313
328
+ # source://minitest//lib/minitest/assertions.rb#309
314
329
  def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
315
330
 
316
331
  # Fails if stdout or stderr do not output the expected results.
@@ -324,12 +339,12 @@ module Minitest::Assertions
324
339
  #
325
340
  # See also: #assert_silent
326
341
  #
327
- # source://minitest//lib/minitest/assertions.rb#331
342
+ # source://minitest//lib/minitest/assertions.rb#327
328
343
  def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end
329
344
 
330
345
  # Fails unless +path+ exists.
331
346
  #
332
- # source://minitest//lib/minitest/assertions.rb#355
347
+ # source://minitest//lib/minitest/assertions.rb#351
333
348
  def assert_path_exists(path, msg = T.unsafe(nil)); end
334
349
 
335
350
  # For testing with pattern matching (only supported with Ruby 3.0 and later)
@@ -347,7 +362,7 @@ module Minitest::Assertions
347
362
  #
348
363
  # @raise [NotImplementedError]
349
364
  #
350
- # source://minitest//lib/minitest/assertions.rb#374
365
+ # source://minitest//lib/minitest/assertions.rb#370
351
366
  def assert_pattern; end
352
367
 
353
368
  # For testing with predicates. Eg:
@@ -358,7 +373,7 @@ module Minitest::Assertions
358
373
  #
359
374
  # str.must_be :empty?
360
375
  #
361
- # source://minitest//lib/minitest/assertions.rb#395
376
+ # source://minitest//lib/minitest/assertions.rb#391
362
377
  def assert_predicate(o1, op, msg = T.unsafe(nil)); end
363
378
 
364
379
  # Fails unless the block raises one of +exp+. Returns the
@@ -382,36 +397,37 @@ module Minitest::Assertions
382
397
  #
383
398
  # assert_equal 'This is really bad', error.message
384
399
  #
385
- # source://minitest//lib/minitest/assertions.rb#422
400
+ # source://minitest//lib/minitest/assertions.rb#418
386
401
  def assert_raises(*exp); end
387
402
 
388
403
  # Fails unless +obj+ responds to +meth+.
404
+ # include_all defaults to false to match Object#respond_to?
389
405
  #
390
- # source://minitest//lib/minitest/assertions.rb#453
391
- def assert_respond_to(obj, meth, msg = T.unsafe(nil)); end
406
+ # source://minitest//lib/minitest/assertions.rb#450
407
+ def assert_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
392
408
 
393
409
  # Fails unless +exp+ and +act+ are #equal?
394
410
  #
395
- # source://minitest//lib/minitest/assertions.rb#463
411
+ # source://minitest//lib/minitest/assertions.rb#460
396
412
  def assert_same(exp, act, msg = T.unsafe(nil)); end
397
413
 
398
414
  # +send_ary+ is a receiver, message and arguments.
399
415
  #
400
416
  # Fails unless the call returns a true value
401
417
  #
402
- # source://minitest//lib/minitest/assertions.rb#476
418
+ # source://minitest//lib/minitest/assertions.rb#473
403
419
  def assert_send(send_ary, m = T.unsafe(nil)); end
404
420
 
405
421
  # Fails if the block outputs anything to stderr or stdout.
406
422
  #
407
423
  # See also: #assert_output
408
424
  #
409
- # source://minitest//lib/minitest/assertions.rb#492
425
+ # source://minitest//lib/minitest/assertions.rb#488
410
426
  def assert_silent; end
411
427
 
412
428
  # Fails unless the block throws +sym+
413
429
  #
414
- # source://minitest//lib/minitest/assertions.rb#501
430
+ # source://minitest//lib/minitest/assertions.rb#497
415
431
  def assert_throws(sym, msg = T.unsafe(nil)); end
416
432
 
417
433
  # Captures $stdout and $stderr into strings:
@@ -428,7 +444,7 @@ module Minitest::Assertions
428
444
  # capture IO for subprocesses. Use #capture_subprocess_io for
429
445
  # that.
430
446
  #
431
- # source://minitest//lib/minitest/assertions.rb#542
447
+ # source://minitest//lib/minitest/assertions.rb#538
432
448
  def capture_io; end
433
449
 
434
450
  # Captures $stdout and $stderr into strings, using Tempfile to
@@ -445,7 +461,7 @@ module Minitest::Assertions
445
461
  # NOTE: This method is approximately 10x slower than #capture_io so
446
462
  # only use it when you need to test the output of a subprocess.
447
463
  #
448
- # source://minitest//lib/minitest/assertions.rb#575
464
+ # source://minitest//lib/minitest/assertions.rb#571
449
465
  def capture_subprocess_io; end
450
466
 
451
467
  # Returns a diff between +exp+ and +act+. If there is no known
@@ -455,29 +471,29 @@ module Minitest::Assertions
455
471
  #
456
472
  # See +things_to_diff+ for more info.
457
473
  #
458
- # source://minitest//lib/minitest/assertions.rb#59
474
+ # source://minitest//lib/minitest/assertions.rb#57
459
475
  def diff(exp, act); end
460
476
 
461
477
  # Returns details for exception +e+
462
478
  #
463
- # source://minitest//lib/minitest/assertions.rb#607
479
+ # source://minitest//lib/minitest/assertions.rb#603
464
480
  def exception_details(e, msg); end
465
481
 
466
482
  # Fails after a given date (in the local time zone). This allows
467
483
  # you to put time-bombs in your tests if you need to keep
468
484
  # something around until a later date lest you forget about it.
469
485
  #
470
- # source://minitest//lib/minitest/assertions.rb#623
486
+ # source://minitest//lib/minitest/assertions.rb#619
471
487
  def fail_after(y, m, d, msg); end
472
488
 
473
489
  # Fails with +msg+.
474
490
  #
475
- # source://minitest//lib/minitest/assertions.rb#630
491
+ # source://minitest//lib/minitest/assertions.rb#626
476
492
  def flunk(msg = T.unsafe(nil)); end
477
493
 
478
494
  # Returns a proc that will output +msg+ along with the default message.
479
495
  #
480
- # source://minitest//lib/minitest/assertions.rb#638
496
+ # source://minitest//lib/minitest/assertions.rb#634
481
497
  def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end
482
498
 
483
499
  # This returns a human-readable version of +obj+. By default
@@ -486,7 +502,7 @@ module Minitest::Assertions
486
502
  #
487
503
  # See Minitest::Test.make_my_diffs_pretty!
488
504
  #
489
- # source://minitest//lib/minitest/assertions.rb#129
505
+ # source://minitest//lib/minitest/assertions.rb#127
490
506
  def mu_pp(obj); end
491
507
 
492
508
  # This returns a diff-able more human-readable version of +obj+.
@@ -494,67 +510,67 @@ module Minitest::Assertions
494
510
  # newlines and makes hex-values (like object_ids) generic. This
495
511
  # uses mu_pp to do the first pass and then cleans it up.
496
512
  #
497
- # source://minitest//lib/minitest/assertions.rb#152
513
+ # source://minitest//lib/minitest/assertions.rb#145
498
514
  def mu_pp_for_diff(obj); end
499
515
 
500
516
  # used for counting assertions
501
517
  #
502
- # source://minitest//lib/minitest/assertions.rb#649
518
+ # source://minitest//lib/minitest/assertions.rb#645
503
519
  def pass(_msg = T.unsafe(nil)); end
504
520
 
505
521
  # Fails if +test+ is truthy.
506
522
  #
507
- # source://minitest//lib/minitest/assertions.rb#656
523
+ # source://minitest//lib/minitest/assertions.rb#652
508
524
  def refute(test, msg = T.unsafe(nil)); end
509
525
 
510
526
  # Fails if +obj+ is empty.
511
527
  #
512
- # source://minitest//lib/minitest/assertions.rb#664
528
+ # source://minitest//lib/minitest/assertions.rb#660
513
529
  def refute_empty(obj, msg = T.unsafe(nil)); end
514
530
 
515
531
  # Fails if <tt>exp == act</tt>.
516
532
  #
517
533
  # For floats use refute_in_delta.
518
534
  #
519
- # source://minitest//lib/minitest/assertions.rb#675
535
+ # source://minitest//lib/minitest/assertions.rb#671
520
536
  def refute_equal(exp, act, msg = T.unsafe(nil)); end
521
537
 
522
538
  # For comparing Floats. Fails if +exp+ is within +delta+ of +act+.
523
539
  #
524
540
  # refute_in_delta Math::PI, (22.0 / 7.0)
525
541
  #
526
- # source://minitest//lib/minitest/assertions.rb#687
542
+ # source://minitest//lib/minitest/assertions.rb#683
527
543
  def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
528
544
 
529
545
  # For comparing Floats. Fails if +exp+ and +act+ have a relative error
530
546
  # less than +epsilon+.
531
547
  #
532
- # source://minitest//lib/minitest/assertions.rb#699
548
+ # source://minitest//lib/minitest/assertions.rb#695
533
549
  def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
534
550
 
535
551
  # Fails if +collection+ includes +obj+.
536
552
  #
537
- # source://minitest//lib/minitest/assertions.rb#706
553
+ # source://minitest//lib/minitest/assertions.rb#702
538
554
  def refute_includes(collection, obj, msg = T.unsafe(nil)); end
539
555
 
540
556
  # Fails if +obj+ is an instance of +cls+.
541
557
  #
542
- # source://minitest//lib/minitest/assertions.rb#717
558
+ # source://minitest//lib/minitest/assertions.rb#713
543
559
  def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end
544
560
 
545
561
  # Fails if +obj+ is a kind of +cls+.
546
562
  #
547
- # source://minitest//lib/minitest/assertions.rb#727
563
+ # source://minitest//lib/minitest/assertions.rb#723
548
564
  def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end
549
565
 
550
566
  # Fails if +matcher+ <tt>=~</tt> +obj+.
551
567
  #
552
- # source://minitest//lib/minitest/assertions.rb#735
568
+ # source://minitest//lib/minitest/assertions.rb#731
553
569
  def refute_match(matcher, obj, msg = T.unsafe(nil)); end
554
570
 
555
571
  # Fails if +obj+ is nil.
556
572
  #
557
- # source://minitest//lib/minitest/assertions.rb#745
573
+ # source://minitest//lib/minitest/assertions.rb#741
558
574
  def refute_nil(obj, msg = T.unsafe(nil)); end
559
575
 
560
576
  # Fails if +o1+ is not +op+ +o2+. Eg:
@@ -562,12 +578,12 @@ module Minitest::Assertions
562
578
  # refute_operator 1, :>, 2 #=> pass
563
579
  # refute_operator 1, :<, 2 #=> fail
564
580
  #
565
- # source://minitest//lib/minitest/assertions.rb#780
581
+ # source://minitest//lib/minitest/assertions.rb#776
566
582
  def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
567
583
 
568
584
  # Fails if +path+ exists.
569
585
  #
570
- # source://minitest//lib/minitest/assertions.rb#789
586
+ # source://minitest//lib/minitest/assertions.rb#785
571
587
  def refute_path_exists(path, msg = T.unsafe(nil)); end
572
588
 
573
589
  # For testing with pattern matching (only supported with Ruby 3.0 and later)
@@ -583,7 +599,7 @@ module Minitest::Assertions
583
599
  #
584
600
  # @raise [NotImplementedError]
585
601
  #
586
- # source://minitest//lib/minitest/assertions.rb#762
602
+ # source://minitest//lib/minitest/assertions.rb#758
587
603
  def refute_pattern; end
588
604
 
589
605
  # For testing with predicates.
@@ -594,17 +610,18 @@ module Minitest::Assertions
594
610
  #
595
611
  # str.wont_be :empty?
596
612
  #
597
- # source://minitest//lib/minitest/assertions.rb#803
613
+ # source://minitest//lib/minitest/assertions.rb#799
598
614
  def refute_predicate(o1, op, msg = T.unsafe(nil)); end
599
615
 
600
616
  # Fails if +obj+ responds to the message +meth+.
617
+ # include_all defaults to false to match Object#respond_to?
601
618
  #
602
- # source://minitest//lib/minitest/assertions.rb#811
603
- def refute_respond_to(obj, meth, msg = T.unsafe(nil)); end
619
+ # source://minitest//lib/minitest/assertions.rb#808
620
+ def refute_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
604
621
 
605
622
  # Fails if +exp+ is the same (by object identity) as +act+.
606
623
  #
607
- # source://minitest//lib/minitest/assertions.rb#820
624
+ # source://minitest//lib/minitest/assertions.rb#817
608
625
  def refute_same(exp, act, msg = T.unsafe(nil)); end
609
626
 
610
627
  # Skips the current run. If run in verbose-mode, the skipped run
@@ -613,22 +630,22 @@ module Minitest::Assertions
613
630
  #
614
631
  # @raise [Minitest::Skip]
615
632
  #
616
- # source://minitest//lib/minitest/assertions.rb#833
617
- def skip(msg = T.unsafe(nil), bt = T.unsafe(nil)); end
633
+ # source://minitest//lib/minitest/assertions.rb#830
634
+ def skip(msg = T.unsafe(nil), _ignored = T.unsafe(nil)); end
618
635
 
619
636
  # Skips the current run until a given date (in the local time
620
637
  # zone). This allows you to put some fixes on hold until a later
621
638
  # date, but still holds you accountable and prevents you from
622
639
  # forgetting it.
623
640
  #
624
- # source://minitest//lib/minitest/assertions.rb#845
641
+ # source://minitest//lib/minitest/assertions.rb#842
625
642
  def skip_until(y, m, d, msg); end
626
643
 
627
644
  # Was this testcase skipped? Meant for #teardown.
628
645
  #
629
646
  # @return [Boolean]
630
647
  #
631
- # source://minitest//lib/minitest/assertions.rb#854
648
+ # source://minitest//lib/minitest/assertions.rb#851
632
649
  def skipped?; end
633
650
 
634
651
  # Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff.
@@ -640,90 +657,116 @@ module Minitest::Assertions
640
657
  # 3. or: Strings are equal to each other (but maybe different encodings?).
641
658
  # 4. and: we found a diff executable.
642
659
  #
643
- # source://minitest//lib/minitest/assertions.rb#104
660
+ # source://minitest//lib/minitest/assertions.rb#102
644
661
  def things_to_diff(exp, act); end
645
662
 
646
663
  class << self
647
664
  # Returns the diff command to use in #diff. Tries to intelligently
648
665
  # figure out what diff to use.
649
666
  #
650
- # source://minitest//lib/minitest/assertions.rb#29
667
+ # source://minitest//lib/minitest/assertions.rb#27
651
668
  def diff; end
652
669
 
653
670
  # Set the diff command to use in #diff.
654
671
  #
655
- # source://minitest//lib/minitest/assertions.rb#47
672
+ # source://minitest//lib/minitest/assertions.rb#45
656
673
  def diff=(o); end
657
674
  end
658
675
  end
659
676
 
660
- # source://minitest//lib/minitest/assertions.rb#201
677
+ # source://minitest//lib/minitest/assertions.rb#199
661
678
  Minitest::Assertions::E = T.let(T.unsafe(nil), String)
662
679
 
663
- # source://minitest//lib/minitest/assertions.rb#19
680
+ # source://minitest//lib/minitest/assertions.rb#17
664
681
  Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
665
682
 
666
683
  # The standard backtrace filter for minitest.
667
684
  #
668
685
  # See Minitest.backtrace_filter=.
669
686
  #
670
- # source://minitest//lib/minitest.rb#1041
687
+ # source://minitest//lib/minitest.rb#1174
671
688
  class Minitest::BacktraceFilter
689
+ # @return [BacktraceFilter] a new instance of BacktraceFilter
690
+ #
691
+ # source://minitest//lib/minitest.rb#1183
692
+ def initialize(regexp = T.unsafe(nil)); end
693
+
672
694
  # Filter +bt+ to something useful. Returns the whole thing if
673
695
  # $DEBUG (ruby) or $MT_DEBUG (env).
674
696
  #
675
- # source://minitest//lib/minitest.rb#1049
697
+ # source://minitest//lib/minitest.rb#1191
676
698
  def filter(bt); end
699
+
700
+ # The regular expression to use to filter backtraces. Defaults to +MT_RE+.
701
+ #
702
+ # source://minitest//lib/minitest.rb#1181
703
+ def regexp; end
704
+
705
+ # The regular expression to use to filter backtraces. Defaults to +MT_RE+.
706
+ #
707
+ # source://minitest//lib/minitest.rb#1181
708
+ def regexp=(_arg0); end
677
709
  end
678
710
 
679
- # source://minitest//lib/minitest.rb#1043
711
+ # source://minitest//lib/minitest.rb#1176
680
712
  Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
681
713
 
682
714
  # Dispatch to multiple reporters as one.
683
715
  #
684
- # source://minitest//lib/minitest.rb#858
716
+ # source://minitest//lib/minitest.rb#968
685
717
  class Minitest::CompositeReporter < ::Minitest::AbstractReporter
686
718
  # @return [CompositeReporter] a new instance of CompositeReporter
687
719
  #
688
- # source://minitest//lib/minitest.rb#864
720
+ # source://minitest//lib/minitest.rb#974
689
721
  def initialize(*reporters); end
690
722
 
691
723
  # Add another reporter to the mix.
692
724
  #
693
- # source://minitest//lib/minitest.rb#876
725
+ # source://minitest//lib/minitest.rb#986
694
726
  def <<(reporter); end
695
727
 
696
- # source://minitest//lib/minitest.rb#869
728
+ # source://minitest//lib/minitest.rb#979
697
729
  def io; end
698
730
 
699
731
  # @return [Boolean]
700
732
  #
701
- # source://minitest//lib/minitest.rb#880
733
+ # source://minitest//lib/minitest.rb#990
702
734
  def passed?; end
703
735
 
704
- # source://minitest//lib/minitest.rb#888
736
+ # source://minitest//lib/minitest.rb#998
705
737
  def prerecord(klass, name); end
706
738
 
707
- # source://minitest//lib/minitest.rb#895
739
+ # source://minitest//lib/minitest.rb#1005
708
740
  def record(result); end
709
741
 
710
- # source://minitest//lib/minitest.rb#901
742
+ # source://minitest//lib/minitest.rb#1011
711
743
  def report; end
712
744
 
713
745
  # The list of reporters to dispatch to.
714
746
  #
715
- # source://minitest//lib/minitest.rb#862
747
+ # source://minitest//lib/minitest.rb#972
716
748
  def reporters; end
717
749
 
718
750
  # The list of reporters to dispatch to.
719
751
  #
720
- # source://minitest//lib/minitest.rb#862
752
+ # source://minitest//lib/minitest.rb#972
721
753
  def reporters=(_arg0); end
722
754
 
723
- # source://minitest//lib/minitest.rb#884
755
+ # source://minitest//lib/minitest.rb#994
724
756
  def start; end
725
757
  end
726
758
 
759
+ # Compresses backtraces.
760
+ #
761
+ # source://minitest//lib/minitest/compress.rb#5
762
+ module Minitest::Compress
763
+ # Takes a backtrace (array of strings) and compresses repeating
764
+ # cycles in it to make it more readable.
765
+ #
766
+ # source://minitest//lib/minitest/compress.rb#11
767
+ def compress(orig); end
768
+ end
769
+
727
770
  # source://minitest//lib/minitest/spec.rb#41
728
771
  class Minitest::Expectation < ::Struct
729
772
  def ctx; end
@@ -980,48 +1023,48 @@ end
980
1023
  # # ... lots of test methods ...
981
1024
  # end
982
1025
  #
983
- # source://minitest//lib/minitest.rb#985
1026
+ # source://minitest//lib/minitest.rb#1118
984
1027
  module Minitest::Guard
985
1028
  # Is this running on jruby?
986
1029
  #
987
1030
  # @return [Boolean]
988
1031
  #
989
- # source://minitest//lib/minitest.rb#990
1032
+ # source://minitest//lib/minitest.rb#1123
990
1033
  def jruby?(platform = T.unsafe(nil)); end
991
1034
 
992
1035
  # Is this running on maglev?
993
1036
  #
994
1037
  # @return [Boolean]
995
1038
  #
996
- # source://minitest//lib/minitest.rb#997
1039
+ # source://minitest//lib/minitest.rb#1130
997
1040
  def maglev?(platform = T.unsafe(nil)); end
998
1041
 
999
1042
  # Is this running on mri?
1000
1043
  #
1001
1044
  # @return [Boolean]
1002
1045
  #
1003
- # source://minitest//lib/minitest.rb#1007
1046
+ # source://minitest//lib/minitest.rb#1140
1004
1047
  def mri?(platform = T.unsafe(nil)); end
1005
1048
 
1006
1049
  # Is this running on macOS?
1007
1050
  #
1008
1051
  # @return [Boolean]
1009
1052
  #
1010
- # source://minitest//lib/minitest.rb#1014
1053
+ # source://minitest//lib/minitest.rb#1147
1011
1054
  def osx?(platform = T.unsafe(nil)); end
1012
1055
 
1013
1056
  # Is this running on rubinius?
1014
1057
  #
1015
1058
  # @return [Boolean]
1016
1059
  #
1017
- # source://minitest//lib/minitest.rb#1021
1060
+ # source://minitest//lib/minitest.rb#1154
1018
1061
  def rubinius?(platform = T.unsafe(nil)); end
1019
1062
 
1020
1063
  # Is this running on windows?
1021
1064
  #
1022
1065
  # @return [Boolean]
1023
1066
  #
1024
- # source://minitest//lib/minitest.rb#1031
1067
+ # source://minitest//lib/minitest.rb#1164
1025
1068
  def windows?(platform = T.unsafe(nil)); end
1026
1069
  end
1027
1070
 
@@ -1033,18 +1076,18 @@ end
1033
1076
  class Minitest::Mock
1034
1077
  # @return [Mock] a new instance of Mock
1035
1078
  #
1036
- # source://minitest//lib/minitest/mock.rb#48
1079
+ # source://minitest//lib/minitest/mock.rb#50
1037
1080
  def initialize(delegator = T.unsafe(nil)); end
1038
1081
 
1039
- # source://minitest//lib/minitest/mock.rb#31
1082
+ # source://minitest//lib/minitest/mock.rb#33
1040
1083
  def ===(*args, **kwargs, &b); end
1041
1084
 
1042
- # source://minitest//lib/minitest/mock.rb#120
1085
+ # source://minitest//lib/minitest/mock.rb#122
1043
1086
  def __call(name, data); end
1044
1087
 
1045
1088
  def __respond_to?(*_arg0); end
1046
1089
 
1047
- # source://minitest//lib/minitest/mock.rb#31
1090
+ # source://minitest//lib/minitest/mock.rb#33
1048
1091
  def class(*args, **kwargs, &b); end
1049
1092
 
1050
1093
  # Expect that method +name+ is called, optionally with +args+ (and
@@ -1080,48 +1123,48 @@ class Minitest::Mock
1080
1123
  # @mock.ordinal_increment # => 'second'
1081
1124
  # @mock.ordinal_increment # => raises MockExpectationError "No more expects available for :ordinal_increment"
1082
1125
  #
1083
- # source://minitest//lib/minitest/mock.rb#91
1126
+ # source://minitest//lib/minitest/mock.rb#93
1084
1127
  def expect(name, retval, args = T.unsafe(nil), **kwargs, &blk); end
1085
1128
 
1086
- # source://minitest//lib/minitest/mock.rb#31
1129
+ # source://minitest//lib/minitest/mock.rb#33
1087
1130
  def inspect(*args, **kwargs, &b); end
1088
1131
 
1089
- # source://minitest//lib/minitest/mock.rb#31
1132
+ # source://minitest//lib/minitest/mock.rb#33
1090
1133
  def instance_eval(*args, **kwargs, &b); end
1091
1134
 
1092
- # source://minitest//lib/minitest/mock.rb#31
1135
+ # source://minitest//lib/minitest/mock.rb#33
1093
1136
  def instance_variables(*args, **kwargs, &b); end
1094
1137
 
1095
- # source://minitest//lib/minitest/mock.rb#150
1138
+ # source://minitest//lib/minitest/mock.rb#152
1096
1139
  def method_missing(sym, *args, **kwargs, &block); end
1097
1140
 
1098
- # source://minitest//lib/minitest/mock.rb#31
1141
+ # source://minitest//lib/minitest/mock.rb#33
1099
1142
  def object_id(*args, **kwargs, &b); end
1100
1143
 
1101
- # source://minitest//lib/minitest/mock.rb#31
1144
+ # source://minitest//lib/minitest/mock.rb#33
1102
1145
  def public_send(*args, **kwargs, &b); end
1103
1146
 
1104
1147
  # @return [Boolean]
1105
1148
  #
1106
- # source://minitest//lib/minitest/mock.rb#236
1149
+ # source://minitest//lib/minitest/mock.rb#238
1107
1150
  def respond_to?(sym, include_private = T.unsafe(nil)); end
1108
1151
 
1109
- # source://minitest//lib/minitest/mock.rb#31
1152
+ # source://minitest//lib/minitest/mock.rb#33
1110
1153
  def send(*args, **kwargs, &b); end
1111
1154
 
1112
- # source://minitest//lib/minitest/mock.rb#31
1155
+ # source://minitest//lib/minitest/mock.rb#33
1113
1156
  def to_s(*args, **kwargs, &b); end
1114
1157
 
1115
1158
  # Verify that all methods were called as expected. Raises
1116
1159
  # +MockExpectationError+ if the mock object was not called as
1117
1160
  # expected.
1118
1161
  #
1119
- # source://minitest//lib/minitest/mock.rb#140
1162
+ # source://minitest//lib/minitest/mock.rb#142
1120
1163
  def verify; end
1121
1164
 
1122
1165
  private
1123
1166
 
1124
- # source://minitest//lib/minitest/mock.rb#31
1167
+ # source://minitest//lib/minitest/mock.rb#33
1125
1168
  def respond_to_missing?(*args, **kwargs, &b); end
1126
1169
  end
1127
1170
 
@@ -1184,36 +1227,36 @@ end
1184
1227
  # plugin, pull this out of the composite and replace it with your
1185
1228
  # own.
1186
1229
  #
1187
- # source://minitest//lib/minitest.rb#657
1230
+ # source://minitest//lib/minitest.rb#758
1188
1231
  class Minitest::ProgressReporter < ::Minitest::Reporter
1189
- # source://minitest//lib/minitest.rb#658
1232
+ # source://minitest//lib/minitest.rb#759
1190
1233
  def prerecord(klass, name); end
1191
1234
 
1192
- # source://minitest//lib/minitest.rb#665
1235
+ # source://minitest//lib/minitest.rb#766
1193
1236
  def record(result); end
1194
1237
  end
1195
1238
 
1196
1239
  # Shared code for anything that can get passed to a Reporter. See
1197
1240
  # Minitest::Test & Minitest::Result.
1198
1241
  #
1199
- # source://minitest//lib/minitest.rb#489
1242
+ # source://minitest//lib/minitest.rb#580
1200
1243
  module Minitest::Reportable
1201
1244
  # @raise [NotImplementedError]
1202
1245
  #
1203
- # source://minitest//lib/minitest.rb#509
1246
+ # source://minitest//lib/minitest.rb#602
1204
1247
  def class_name; end
1205
1248
 
1206
1249
  # Did this run error?
1207
1250
  #
1208
1251
  # @return [Boolean]
1209
1252
  #
1210
- # source://minitest//lib/minitest.rb#530
1253
+ # source://minitest//lib/minitest.rb#623
1211
1254
  def error?; end
1212
1255
 
1213
1256
  # The location identifier of this test. Depends on a method
1214
1257
  # existing called class_name.
1215
1258
  #
1216
- # source://minitest//lib/minitest.rb#504
1259
+ # source://minitest//lib/minitest.rb#597
1217
1260
  def location; end
1218
1261
 
1219
1262
  # Did this run pass?
@@ -1223,47 +1266,50 @@ module Minitest::Reportable
1223
1266
  #
1224
1267
  # @return [Boolean]
1225
1268
  #
1226
- # source://minitest//lib/minitest.rb#496
1269
+ # source://minitest//lib/minitest.rb#587
1227
1270
  def passed?; end
1228
1271
 
1229
1272
  # Returns ".", "F", or "E" based on the result of the run.
1230
1273
  #
1231
- # source://minitest//lib/minitest.rb#516
1274
+ # source://minitest//lib/minitest.rb#609
1232
1275
  def result_code; end
1233
1276
 
1234
1277
  # Was this run skipped?
1235
1278
  #
1236
1279
  # @return [Boolean]
1237
1280
  #
1238
- # source://minitest//lib/minitest.rb#523
1281
+ # source://minitest//lib/minitest.rb#616
1239
1282
  def skipped?; end
1240
1283
  end
1241
1284
 
1242
- # source://minitest//lib/minitest.rb#633
1285
+ # source://minitest//lib/minitest.rb#591
1286
+ Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
1287
+
1288
+ # source://minitest//lib/minitest.rb#734
1243
1289
  class Minitest::Reporter < ::Minitest::AbstractReporter
1244
1290
  # @return [Reporter] a new instance of Reporter
1245
1291
  #
1246
- # source://minitest//lib/minitest.rb#642
1292
+ # source://minitest//lib/minitest.rb#743
1247
1293
  def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
1248
1294
 
1249
1295
  # The IO used to report.
1250
1296
  #
1251
- # source://minitest//lib/minitest.rb#635
1297
+ # source://minitest//lib/minitest.rb#736
1252
1298
  def io; end
1253
1299
 
1254
1300
  # The IO used to report.
1255
1301
  #
1256
- # source://minitest//lib/minitest.rb#635
1302
+ # source://minitest//lib/minitest.rb#736
1257
1303
  def io=(_arg0); end
1258
1304
 
1259
1305
  # Command-line options for this run.
1260
1306
  #
1261
- # source://minitest//lib/minitest.rb#640
1307
+ # source://minitest//lib/minitest.rb#741
1262
1308
  def options; end
1263
1309
 
1264
1310
  # Command-line options for this run.
1265
1311
  #
1266
- # source://minitest//lib/minitest.rb#640
1312
+ # source://minitest//lib/minitest.rb#741
1267
1313
  def options=(_arg0); end
1268
1314
  end
1269
1315
 
@@ -1273,90 +1319,112 @@ end
1273
1319
  # blow up. By using Result.from(a_test) you can be reasonably sure
1274
1320
  # that the test result can be marshalled.
1275
1321
  #
1276
- # source://minitest//lib/minitest.rb#542
1322
+ # source://minitest//lib/minitest.rb#635
1277
1323
  class Minitest::Result < ::Minitest::Runnable
1278
1324
  include ::Minitest::Reportable
1279
1325
 
1280
- # source://minitest//lib/minitest.rb#575
1326
+ # source://minitest//lib/minitest.rb#669
1281
1327
  def class_name; end
1282
1328
 
1283
1329
  # The class name of the test result.
1284
1330
  #
1285
- # source://minitest//lib/minitest.rb#551
1331
+ # source://minitest//lib/minitest.rb#644
1286
1332
  def klass; end
1287
1333
 
1288
1334
  # The class name of the test result.
1289
1335
  #
1290
- # source://minitest//lib/minitest.rb#551
1336
+ # source://minitest//lib/minitest.rb#644
1291
1337
  def klass=(_arg0); end
1292
1338
 
1293
1339
  # The location of the test method.
1294
1340
  #
1295
- # source://minitest//lib/minitest.rb#556
1341
+ # source://minitest//lib/minitest.rb#649
1296
1342
  def source_location; end
1297
1343
 
1298
1344
  # The location of the test method.
1299
1345
  #
1300
- # source://minitest//lib/minitest.rb#556
1346
+ # source://minitest//lib/minitest.rb#649
1301
1347
  def source_location=(_arg0); end
1302
1348
 
1303
- # source://minitest//lib/minitest.rb#579
1349
+ # source://minitest//lib/minitest.rb#673
1304
1350
  def to_s; end
1305
1351
 
1306
1352
  class << self
1307
1353
  # Create a new test result from a Runnable instance.
1308
1354
  #
1309
- # source://minitest//lib/minitest.rb#561
1355
+ # source://minitest//lib/minitest.rb#654
1310
1356
  def from(runnable); end
1311
1357
  end
1312
1358
  end
1313
1359
 
1314
1360
  # re-open
1315
1361
  #
1316
- # source://minitest//lib/minitest.rb#277
1362
+ # source://minitest//lib/minitest.rb#348
1317
1363
  class Minitest::Runnable
1318
1364
  # @return [Runnable] a new instance of Runnable
1319
1365
  #
1320
- # source://minitest//lib/minitest.rb#445
1366
+ # source://minitest//lib/minitest.rb#511
1321
1367
  def initialize(name); end
1322
1368
 
1323
1369
  # Number of assertions executed in this run.
1324
1370
  #
1325
- # source://minitest//lib/minitest.rb#281
1371
+ # source://minitest//lib/minitest.rb#352
1326
1372
  def assertions; end
1327
1373
 
1328
1374
  # Number of assertions executed in this run.
1329
1375
  #
1330
- # source://minitest//lib/minitest.rb#281
1376
+ # source://minitest//lib/minitest.rb#352
1331
1377
  def assertions=(_arg0); end
1332
1378
 
1333
- # source://minitest//lib/minitest.rb#441
1379
+ # source://minitest//lib/minitest.rb#507
1334
1380
  def failure; end
1335
1381
 
1336
1382
  # An assertion raised during the run, if any.
1337
1383
  #
1338
- # source://minitest//lib/minitest.rb#286
1384
+ # source://minitest//lib/minitest.rb#357
1339
1385
  def failures; end
1340
1386
 
1341
1387
  # An assertion raised during the run, if any.
1342
1388
  #
1343
- # source://minitest//lib/minitest.rb#286
1389
+ # source://minitest//lib/minitest.rb#357
1344
1390
  def failures=(_arg0); end
1345
1391
 
1346
- # source://minitest//lib/minitest.rb#427
1392
+ # source://minitest//lib/minitest.rb#493
1347
1393
  def marshal_dump; end
1348
1394
 
1349
- # source://minitest//lib/minitest.rb#437
1395
+ # source://minitest//lib/minitest.rb#503
1350
1396
  def marshal_load(ary); end
1351
1397
 
1398
+ # Metadata you attach to the test results that get sent to the reporter.
1399
+ #
1400
+ # Lazily initializes to a hash, to keep memory down.
1401
+ #
1402
+ # NOTE: this data *must* be plain (read: marshal-able) data!
1403
+ # Hashes! Arrays! Strings!
1404
+ #
1405
+ # source://minitest//lib/minitest.rb#526
1406
+ def metadata; end
1407
+
1408
+ # Sets metadata, mainly used for +Result.from+.
1409
+ #
1410
+ # source://minitest//lib/minitest.rb#533
1411
+ def metadata=(_arg0); end
1412
+
1413
+ # Returns true if metadata exists.
1414
+ #
1415
+ # @return [Boolean]
1416
+ #
1417
+ # source://minitest//lib/minitest.rb#538
1418
+ def metadata?; end
1419
+
1352
1420
  # Name of the run.
1353
1421
  #
1354
- # source://minitest//lib/minitest.rb#304
1422
+ # source://minitest//lib/minitest.rb#375
1355
1423
  def name; end
1356
1424
 
1357
1425
  # Set the name of the run.
1358
1426
  #
1359
- # source://minitest//lib/minitest.rb#311
1427
+ # source://minitest//lib/minitest.rb#382
1360
1428
  def name=(o); end
1361
1429
 
1362
1430
  # Did this run pass?
@@ -1367,7 +1435,7 @@ class Minitest::Runnable
1367
1435
  # @raise [NotImplementedError]
1368
1436
  # @return [Boolean]
1369
1437
  #
1370
- # source://minitest//lib/minitest.rb#464
1438
+ # source://minitest//lib/minitest.rb#555
1371
1439
  def passed?; end
1372
1440
 
1373
1441
  # Returns a single character string to print based on the result
@@ -1376,14 +1444,14 @@ class Minitest::Runnable
1376
1444
  #
1377
1445
  # @raise [NotImplementedError]
1378
1446
  #
1379
- # source://minitest//lib/minitest.rb#473
1447
+ # source://minitest//lib/minitest.rb#564
1380
1448
  def result_code; end
1381
1449
 
1382
1450
  # Runs a single method. Needs to return self.
1383
1451
  #
1384
1452
  # @raise [NotImplementedError]
1385
1453
  #
1386
- # source://minitest//lib/minitest.rb#454
1454
+ # source://minitest//lib/minitest.rb#545
1387
1455
  def run; end
1388
1456
 
1389
1457
  # Was this run skipped? See #passed? for more information.
@@ -1391,42 +1459,42 @@ class Minitest::Runnable
1391
1459
  # @raise [NotImplementedError]
1392
1460
  # @return [Boolean]
1393
1461
  #
1394
- # source://minitest//lib/minitest.rb#480
1462
+ # source://minitest//lib/minitest.rb#571
1395
1463
  def skipped?; end
1396
1464
 
1397
1465
  # The time it took to run.
1398
1466
  #
1399
- # source://minitest//lib/minitest.rb#291
1467
+ # source://minitest//lib/minitest.rb#362
1400
1468
  def time; end
1401
1469
 
1402
1470
  # The time it took to run.
1403
1471
  #
1404
- # source://minitest//lib/minitest.rb#291
1472
+ # source://minitest//lib/minitest.rb#362
1405
1473
  def time=(_arg0); end
1406
1474
 
1407
- # source://minitest//lib/minitest.rb#293
1475
+ # source://minitest//lib/minitest.rb#364
1408
1476
  def time_it; end
1409
1477
 
1410
1478
  class << self
1411
- # source://minitest//lib/minitest.rb#1083
1479
+ # source://minitest//lib/minitest.rb#1225
1412
1480
  def inherited(klass); end
1413
1481
 
1414
1482
  # Returns all instance methods matching the pattern +re+.
1415
1483
  #
1416
- # source://minitest//lib/minitest.rb#318
1484
+ # source://minitest//lib/minitest.rb#389
1417
1485
  def methods_matching(re); end
1418
1486
 
1419
- # source://minitest//lib/minitest.rb#397
1487
+ # source://minitest//lib/minitest.rb#463
1420
1488
  def on_signal(name, action); end
1421
1489
 
1422
- # source://minitest//lib/minitest.rb#322
1490
+ # source://minitest//lib/minitest.rb#393
1423
1491
  def reset; end
1424
1492
 
1425
1493
  # Responsible for running all runnable methods in a given class,
1426
1494
  # each in its own instance. Each instance is passed to the
1427
1495
  # reporter to record.
1428
1496
  #
1429
- # source://minitest//lib/minitest.rb#333
1497
+ # source://minitest//lib/minitest.rb#404
1430
1498
  def run(reporter, options = T.unsafe(nil)); end
1431
1499
 
1432
1500
  # Runs a single method and has the reporter record the result.
@@ -1434,7 +1502,7 @@ class Minitest::Runnable
1434
1502
  # that subclasses can specialize the running of an individual
1435
1503
  # test. See Minitest::ParallelTest::ClassMethods for an example.
1436
1504
  #
1437
- # source://minitest//lib/minitest.rb#369
1505
+ # source://minitest//lib/minitest.rb#444
1438
1506
  def run_one_method(klass, method_name, reporter); end
1439
1507
 
1440
1508
  # Each subclass of Runnable is responsible for overriding this
@@ -1442,33 +1510,33 @@ class Minitest::Runnable
1442
1510
  #
1443
1511
  # @raise [NotImplementedError]
1444
1512
  #
1445
- # source://minitest//lib/minitest.rb#414
1513
+ # source://minitest//lib/minitest.rb#480
1446
1514
  def runnable_methods; end
1447
1515
 
1448
1516
  # Returns all subclasses of Runnable.
1449
1517
  #
1450
- # source://minitest//lib/minitest.rb#421
1518
+ # source://minitest//lib/minitest.rb#487
1451
1519
  def runnables; end
1452
1520
 
1453
1521
  # Defines the order to run tests (:random by default). Override
1454
1522
  # this or use a convenience method to change it for your tests.
1455
1523
  #
1456
- # source://minitest//lib/minitest.rb#378
1524
+ # source://minitest//lib/minitest.rb#453
1457
1525
  def test_order; end
1458
1526
 
1459
- # source://minitest//lib/minitest.rb#382
1527
+ # source://minitest//lib/minitest.rb#457
1460
1528
  def with_info_handler(reporter, &block); end
1461
1529
  end
1462
1530
  end
1463
1531
 
1464
- # source://minitest//lib/minitest.rb#395
1532
+ # source://minitest//lib/minitest.rb#461
1465
1533
  Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
1466
1534
 
1467
1535
  # Assertion raised when skipping a run.
1468
1536
  #
1469
- # source://minitest//lib/minitest.rb#938
1537
+ # source://minitest//lib/minitest.rb#1049
1470
1538
  class Minitest::Skip < ::Minitest::Assertion
1471
- # source://minitest//lib/minitest.rb#939
1539
+ # source://minitest//lib/minitest.rb#1050
1472
1540
  def result_label; end
1473
1541
  end
1474
1542
 
@@ -1725,114 +1793,124 @@ Minitest::Spec::TYPES = T.let(T.unsafe(nil), Array)
1725
1793
  # end
1726
1794
  # end
1727
1795
  #
1728
- # source://minitest//lib/minitest.rb#693
1796
+ # source://minitest//lib/minitest.rb#794
1729
1797
  class Minitest::StatisticsReporter < ::Minitest::Reporter
1730
1798
  # @return [StatisticsReporter] a new instance of StatisticsReporter
1731
1799
  #
1732
- # source://minitest//lib/minitest.rb#737
1800
+ # source://minitest//lib/minitest.rb#843
1733
1801
  def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
1734
1802
 
1735
1803
  # Total number of assertions.
1736
1804
  #
1737
- # source://minitest//lib/minitest.rb#697
1805
+ # source://minitest//lib/minitest.rb#798
1738
1806
  def assertions; end
1739
1807
 
1740
1808
  # Total number of assertions.
1741
1809
  #
1742
- # source://minitest//lib/minitest.rb#697
1810
+ # source://minitest//lib/minitest.rb#798
1743
1811
  def assertions=(_arg0); end
1744
1812
 
1745
1813
  # Total number of test cases.
1746
1814
  #
1747
- # source://minitest//lib/minitest.rb#702
1815
+ # source://minitest//lib/minitest.rb#803
1748
1816
  def count; end
1749
1817
 
1750
1818
  # Total number of test cases.
1751
1819
  #
1752
- # source://minitest//lib/minitest.rb#702
1820
+ # source://minitest//lib/minitest.rb#803
1753
1821
  def count=(_arg0); end
1754
1822
 
1755
1823
  # Total number of tests that erred.
1756
1824
  #
1757
- # source://minitest//lib/minitest.rb#730
1825
+ # source://minitest//lib/minitest.rb#831
1758
1826
  def errors; end
1759
1827
 
1760
1828
  # Total number of tests that erred.
1761
1829
  #
1762
- # source://minitest//lib/minitest.rb#730
1830
+ # source://minitest//lib/minitest.rb#831
1763
1831
  def errors=(_arg0); end
1764
1832
 
1765
1833
  # Total number of tests that failed.
1766
1834
  #
1767
- # source://minitest//lib/minitest.rb#725
1835
+ # source://minitest//lib/minitest.rb#826
1768
1836
  def failures; end
1769
1837
 
1770
1838
  # Total number of tests that failed.
1771
1839
  #
1772
- # source://minitest//lib/minitest.rb#725
1840
+ # source://minitest//lib/minitest.rb#826
1773
1841
  def failures=(_arg0); end
1774
1842
 
1775
1843
  # @return [Boolean]
1776
1844
  #
1777
- # source://minitest//lib/minitest.rb#750
1845
+ # source://minitest//lib/minitest.rb#857
1778
1846
  def passed?; end
1779
1847
 
1780
- # source://minitest//lib/minitest.rb#758
1848
+ # source://minitest//lib/minitest.rb#865
1781
1849
  def record(result); end
1782
1850
 
1783
1851
  # Report on the tracked statistics.
1784
1852
  #
1785
- # source://minitest//lib/minitest.rb#768
1853
+ # source://minitest//lib/minitest.rb#875
1786
1854
  def report; end
1787
1855
 
1788
1856
  # An +Array+ of test cases that failed or were skipped.
1789
1857
  #
1790
- # source://minitest//lib/minitest.rb#707
1858
+ # source://minitest//lib/minitest.rb#808
1791
1859
  def results; end
1792
1860
 
1793
1861
  # An +Array+ of test cases that failed or were skipped.
1794
1862
  #
1795
- # source://minitest//lib/minitest.rb#707
1863
+ # source://minitest//lib/minitest.rb#808
1796
1864
  def results=(_arg0); end
1797
1865
 
1798
1866
  # Total number of tests that where skipped.
1799
1867
  #
1800
- # source://minitest//lib/minitest.rb#735
1868
+ # source://minitest//lib/minitest.rb#841
1801
1869
  def skips; end
1802
1870
 
1803
1871
  # Total number of tests that where skipped.
1804
1872
  #
1805
- # source://minitest//lib/minitest.rb#735
1873
+ # source://minitest//lib/minitest.rb#841
1806
1874
  def skips=(_arg0); end
1807
1875
 
1808
- # source://minitest//lib/minitest.rb#754
1876
+ # source://minitest//lib/minitest.rb#861
1809
1877
  def start; end
1810
1878
 
1811
1879
  # Time the test run started. If available, the monotonic clock is
1812
1880
  # used and this is a +Float+, otherwise it's an instance of
1813
1881
  # +Time+.
1814
1882
  #
1815
- # source://minitest//lib/minitest.rb#714
1883
+ # source://minitest//lib/minitest.rb#815
1816
1884
  def start_time; end
1817
1885
 
1818
1886
  # Time the test run started. If available, the monotonic clock is
1819
1887
  # used and this is a +Float+, otherwise it's an instance of
1820
1888
  # +Time+.
1821
1889
  #
1822
- # source://minitest//lib/minitest.rb#714
1890
+ # source://minitest//lib/minitest.rb#815
1823
1891
  def start_time=(_arg0); end
1824
1892
 
1825
1893
  # Test run time. If available, the monotonic clock is used and
1826
1894
  # this is a +Float+, otherwise it's an instance of +Time+.
1827
1895
  #
1828
- # source://minitest//lib/minitest.rb#720
1896
+ # source://minitest//lib/minitest.rb#821
1829
1897
  def total_time; end
1830
1898
 
1831
1899
  # Test run time. If available, the monotonic clock is used and
1832
1900
  # this is a +Float+, otherwise it's an instance of +Time+.
1833
1901
  #
1834
- # source://minitest//lib/minitest.rb#720
1902
+ # source://minitest//lib/minitest.rb#821
1835
1903
  def total_time=(_arg0); end
1904
+
1905
+ # Total number of tests that warned.
1906
+ #
1907
+ # source://minitest//lib/minitest.rb#836
1908
+ def warnings; end
1909
+
1910
+ # Total number of tests that warned.
1911
+ #
1912
+ # source://minitest//lib/minitest.rb#836
1913
+ def warnings=(_arg0); end
1836
1914
  end
1837
1915
 
1838
1916
  # A reporter that prints the header, summary, and failure details at
@@ -1843,48 +1921,36 @@ end
1843
1921
  # plugin, pull this out of the composite and replace it with your
1844
1922
  # own.
1845
1923
  #
1846
- # source://minitest//lib/minitest.rb#788
1924
+ # source://minitest//lib/minitest.rb#896
1847
1925
  class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
1848
- # source://minitest//lib/minitest.rb#823
1926
+ # source://minitest//lib/minitest.rb#929
1849
1927
  def aggregated_results(io); end
1850
1928
 
1851
- # Returns the value of attribute old_sync.
1852
- #
1853
- # source://minitest//lib/minitest.rb#791
1929
+ # source://minitest//lib/minitest.rb#898
1854
1930
  def old_sync; end
1855
1931
 
1856
- # Sets the attribute old_sync
1857
- #
1858
- # @param value the value to set the attribute old_sync to.
1859
- #
1860
- # source://minitest//lib/minitest.rb#791
1932
+ # source://minitest//lib/minitest.rb#898
1861
1933
  def old_sync=(_arg0); end
1862
1934
 
1863
- # source://minitest//lib/minitest.rb#806
1935
+ # source://minitest//lib/minitest.rb#912
1864
1936
  def report; end
1865
1937
 
1866
- # :startdoc:
1867
- #
1868
- # source://minitest//lib/minitest.rb#794
1938
+ # source://minitest//lib/minitest.rb#900
1869
1939
  def start; end
1870
1940
 
1871
- # source://minitest//lib/minitest.rb#818
1941
+ # source://minitest//lib/minitest.rb#924
1872
1942
  def statistics; end
1873
1943
 
1874
- # source://minitest//lib/minitest.rb#843
1944
+ # source://minitest//lib/minitest.rb#949
1875
1945
  def summary; end
1876
1946
 
1877
- # :stopdoc:
1878
- #
1879
- # source://minitest//lib/minitest.rb#790
1947
+ # source://minitest//lib/minitest.rb#897
1880
1948
  def sync; end
1881
1949
 
1882
- # :stopdoc:
1883
- #
1884
- # source://minitest//lib/minitest.rb#790
1950
+ # source://minitest//lib/minitest.rb#897
1885
1951
  def sync=(_arg0); end
1886
1952
 
1887
- # source://minitest//lib/minitest.rb#839
1953
+ # source://minitest//lib/minitest.rb#945
1888
1954
  def to_s; end
1889
1955
  end
1890
1956
 
@@ -1903,29 +1969,26 @@ class Minitest::Test < ::Minitest::Runnable
1903
1969
 
1904
1970
  # LifecycleHooks
1905
1971
  #
1906
- # source://minitest//lib/minitest/test.rb#190
1972
+ # source://minitest//lib/minitest/test.rb#189
1907
1973
  def capture_exceptions; end
1908
1974
 
1909
1975
  # source://minitest//lib/minitest/test.rb#15
1910
1976
  def class_name; end
1911
1977
 
1912
- # source://minitest//lib/minitest/test.rb#207
1978
+ # source://minitest//lib/minitest/test.rb#206
1913
1979
  def neuter_exception(e); end
1914
1980
 
1915
- # source://minitest//lib/minitest/test.rb#218
1981
+ # source://minitest//lib/minitest/test.rb#217
1916
1982
  def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
1917
1983
 
1918
1984
  # Runs a single test with setup/teardown hooks.
1919
1985
  #
1920
- # source://minitest//lib/minitest/test.rb#86
1986
+ # source://minitest//lib/minitest/test.rb#87
1921
1987
  def run; end
1922
1988
 
1923
- # source://minitest//lib/minitest/test.rb#200
1989
+ # source://minitest//lib/minitest/test.rb#199
1924
1990
  def sanitize_exception(e); end
1925
1991
 
1926
- # source://minitest//lib/minitest/test.rb#232
1927
- def with_info_handler(&block); end
1928
-
1929
1992
  class << self
1930
1993
  # Call this at the top of your tests when you absolutely
1931
1994
  # positively need to have ordered tests. In doing so, you're
@@ -1954,18 +2017,19 @@ class Minitest::Test < ::Minitest::Runnable
1954
2017
  # source://minitest//lib/minitest/test.rb#48
1955
2018
  def make_my_diffs_pretty!; end
1956
2019
 
1957
- # Call this at the top of your tests when you want to run your
1958
- # tests in parallel. In doing so, you're admitting that you rule
1959
- # and your tests are awesome.
2020
+ # Call this at the top of your tests (inside the +Minitest::Test+
2021
+ # subclass or +describe+ block) when you want to run your tests in
2022
+ # parallel. In doing so, you're admitting that you rule and your
2023
+ # tests are awesome.
1960
2024
  #
1961
- # source://minitest//lib/minitest/test.rb#59
2025
+ # source://minitest//lib/minitest/test.rb#60
1962
2026
  def parallelize_me!; end
1963
2027
 
1964
2028
  # Returns all instance methods starting with "test_". Based on
1965
2029
  # #test_order, the methods are either sorted, randomized
1966
2030
  # (default), or run in parallel.
1967
2031
  #
1968
- # source://minitest//lib/minitest/test.rb#69
2032
+ # source://minitest//lib/minitest/test.rb#70
1969
2033
  def runnable_methods; end
1970
2034
  end
1971
2035
  end
@@ -1974,7 +2038,7 @@ end
1974
2038
  # meant for library writers, NOT for regular test authors. See
1975
2039
  # #before_setup for an example.
1976
2040
  #
1977
- # source://minitest//lib/minitest/test.rb#113
2041
+ # source://minitest//lib/minitest/test.rb#112
1978
2042
  module Minitest::Test::LifecycleHooks
1979
2043
  # Runs before every test, after setup. This hook is meant for
1980
2044
  # libraries to extend minitest. It is not meant to be used by
@@ -1982,7 +2046,7 @@ module Minitest::Test::LifecycleHooks
1982
2046
  #
1983
2047
  # See #before_setup for an example.
1984
2048
  #
1985
- # source://minitest//lib/minitest/test.rb#163
2049
+ # source://minitest//lib/minitest/test.rb#162
1986
2050
  def after_setup; end
1987
2051
 
1988
2052
  # Runs after every test, after teardown. This hook is meant for
@@ -1991,7 +2055,7 @@ module Minitest::Test::LifecycleHooks
1991
2055
  #
1992
2056
  # See #before_setup for an example.
1993
2057
  #
1994
- # source://minitest//lib/minitest/test.rb#187
2058
+ # source://minitest//lib/minitest/test.rb#186
1995
2059
  def after_teardown; end
1996
2060
 
1997
2061
  # Runs before every test, before setup. This hook is meant for
@@ -2022,11 +2086,11 @@ module Minitest::Test::LifecycleHooks
2022
2086
  # end
2023
2087
  # end
2024
2088
  #
2025
- # class MiniTest::Test
2089
+ # class Minitest::Test
2026
2090
  # include MyMinitestPlugin
2027
2091
  # end
2028
2092
  #
2029
- # source://minitest//lib/minitest/test.rb#148
2093
+ # source://minitest//lib/minitest/test.rb#147
2030
2094
  def before_setup; end
2031
2095
 
2032
2096
  # Runs after every test, before teardown. This hook is meant for
@@ -2035,19 +2099,19 @@ module Minitest::Test::LifecycleHooks
2035
2099
  #
2036
2100
  # See #before_setup for an example.
2037
2101
  #
2038
- # source://minitest//lib/minitest/test.rb#172
2102
+ # source://minitest//lib/minitest/test.rb#171
2039
2103
  def before_teardown; end
2040
2104
 
2041
2105
  # Runs before every test. Use this to set up before each test
2042
2106
  # run.
2043
2107
  #
2044
- # source://minitest//lib/minitest/test.rb#154
2108
+ # source://minitest//lib/minitest/test.rb#153
2045
2109
  def setup; end
2046
2110
 
2047
2111
  # Runs after every test. Use this to clean up after each test
2048
2112
  # run.
2049
2113
  #
2050
- # source://minitest//lib/minitest/test.rb#178
2114
+ # source://minitest//lib/minitest/test.rb#177
2051
2115
  def teardown; end
2052
2116
  end
2053
2117
 
@@ -2062,55 +2126,46 @@ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
2062
2126
 
2063
2127
  # Assertion wrapping an unexpected error that was raised during a run.
2064
2128
  #
2065
- # source://minitest//lib/minitest.rb#947
2129
+ # source://minitest//lib/minitest.rb#1058
2066
2130
  class Minitest::UnexpectedError < ::Minitest::Assertion
2131
+ include ::Minitest::Compress
2132
+
2067
2133
  # @return [UnexpectedError] a new instance of UnexpectedError
2068
2134
  #
2069
- # source://minitest//lib/minitest.rb#951
2135
+ # source://minitest//lib/minitest.rb#1064
2070
2136
  def initialize(error); end
2071
2137
 
2072
- # source://minitest//lib/minitest.rb#956
2138
+ # source://minitest//lib/minitest.rb#1077
2073
2139
  def backtrace; end
2074
2140
 
2075
2141
  # TODO: figure out how to use `cause` instead
2076
2142
  #
2077
- # source://minitest//lib/minitest.rb#949
2143
+ # source://minitest//lib/minitest.rb#1062
2078
2144
  def error; end
2079
2145
 
2080
2146
  # TODO: figure out how to use `cause` instead
2081
2147
  #
2082
- # source://minitest//lib/minitest.rb#949
2148
+ # source://minitest//lib/minitest.rb#1062
2083
2149
  def error=(_arg0); end
2084
2150
 
2085
- # source://minitest//lib/minitest.rb#960
2151
+ # source://minitest//lib/minitest.rb#1083
2086
2152
  def message; end
2087
2153
 
2088
- # source://minitest//lib/minitest.rb#965
2154
+ # source://minitest//lib/minitest.rb#1089
2089
2155
  def result_label; end
2090
2156
  end
2091
2157
 
2092
- # source://minitest//lib/minitest/unit.rb#20
2093
- class Minitest::Unit
2094
- class << self
2095
- # source://minitest//lib/minitest/unit.rb#36
2096
- def after_tests(&b); end
2097
-
2098
- # source://minitest//lib/minitest/unit.rb#30
2099
- def autorun; end
2100
- end
2101
- end
2158
+ # source://minitest//lib/minitest.rb#1081
2159
+ Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp)
2102
2160
 
2103
- # source://minitest//lib/minitest/unit.rb#22
2104
- class Minitest::Unit::TestCase < ::Minitest::Test
2105
- class << self
2106
- # source://minitest//lib/minitest/unit.rb#23
2107
- def inherited(klass); end
2108
- end
2161
+ # Assertion raised on warning when running in -Werror mode.
2162
+ #
2163
+ # source://minitest//lib/minitest.rb#1097
2164
+ class Minitest::UnexpectedWarning < ::Minitest::Assertion
2165
+ # source://minitest//lib/minitest.rb#1098
2166
+ def result_label; end
2109
2167
  end
2110
2168
 
2111
- # source://minitest//lib/minitest/unit.rb#21
2112
- Minitest::Unit::VERSION = T.let(T.unsafe(nil), String)
2113
-
2114
2169
  # source://minitest//lib/minitest.rb#12
2115
2170
  Minitest::VERSION = T.let(T.unsafe(nil), String)
2116
2171
 
@@ -2148,6 +2203,6 @@ class Object < ::BasicObject
2148
2203
  # NOTE: keyword args in callables are NOT checked for correctness
2149
2204
  # against the existing method. Too many edge cases to be worth it.
2150
2205
  #
2151
- # source://minitest//lib/minitest/mock.rb#278
2206
+ # source://minitest//lib/minitest/mock.rb#280
2152
2207
  def stub(name, val_or_callable, *block_args, **block_kwargs, &block); end
2153
2208
  end