hierarchical_config 0.11 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/release.yml +41 -0
  3. data/.github/workflows/ruby.yml +55 -0
  4. data/.gitignore +2 -0
  5. data/.release-please-manifest.json +3 -0
  6. data/.rubocop.yml +68 -0
  7. data/.ruby-version +1 -0
  8. data/CHANGELOG.md +15 -0
  9. data/Gemfile +15 -2
  10. data/Gemfile.2.4 +19 -0
  11. data/Gemfile.2.4.lock +117 -0
  12. data/Gemfile.lock +126 -25
  13. data/README.md +0 -2
  14. data/bin/console +3 -3
  15. data/bin/tapioca +29 -0
  16. data/hierarchical_config.gemspec +14 -13
  17. data/lib/hierarchical_config/version.rb +3 -1
  18. data/lib/hierarchical_config.rb +195 -98
  19. data/release-please-config.json +14 -0
  20. data/sorbet/config +2 -0
  21. data/sorbet/rbi/annotations/activesupport.rbi +128 -0
  22. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  23. data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +16155 -0
  24. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  25. data/sorbet/rbi/gems/binding_of_caller@1.0.0.rbi +55 -0
  26. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  27. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +11545 -0
  28. data/sorbet/rbi/gems/debug_inspector@1.1.0.rbi +23 -0
  29. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  30. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  31. data/sorbet/rbi/gems/interception@0.5.rbi +138 -0
  32. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  33. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  34. data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
  35. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  36. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  37. data/sorbet/rbi/gems/parser@3.2.1.0.rbi +7252 -0
  38. data/sorbet/rbi/gems/pry-rescue@1.5.2.rbi +186 -0
  39. data/sorbet/rbi/gems/pry-stack_explorer@0.6.1.rbi +295 -0
  40. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  41. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  42. data/sorbet/rbi/gems/rake@13.0.6.rbi +3018 -0
  43. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  44. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +3580 -0
  45. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  46. data/sorbet/rbi/gems/rspec-core@3.12.1.rbi +10845 -0
  47. data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8100 -0
  48. data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5299 -0
  49. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1611 -0
  50. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  51. data/sorbet/rbi/gems/rubocop-ast@1.27.0.rbi +6998 -0
  52. data/sorbet/rbi/gems/rubocop-performance@1.16.0.rbi +3004 -0
  53. data/sorbet/rbi/gems/rubocop@1.46.0.rbi +54549 -0
  54. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1239 -0
  55. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  56. data/sorbet/rbi/gems/tapioca@0.11.1.rbi +3255 -0
  57. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  58. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  59. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  60. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
  61. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
  62. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
  63. data/sorbet/rbi/gems/yard@0.9.28.rbi +17841 -0
  64. data/sorbet/tapioca/config.yml +13 -0
  65. data/sorbet/tapioca/require.rb +4 -0
  66. metadata +75 -47
  67. data/.travis.yml +0 -6
@@ -0,0 +1,1457 @@
1
+ # typed: true
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
+ # :include: README.rdoc
8
+ #
9
+ # source://minitest//lib/minitest/parallel.rb#1
10
+ module Minitest
11
+ class << self
12
+ # Internal run method. Responsible for telling all Runnable
13
+ # sub-classes to run.
14
+ #
15
+ # source://minitest//lib/minitest.rb#173
16
+ def __run(reporter, options); end
17
+
18
+ # A simple hook allowing you to run a block of code after everything
19
+ # is done running. Eg:
20
+ #
21
+ # Minitest.after_run { p $debugging_info }
22
+ #
23
+ # source://minitest//lib/minitest.rb#94
24
+ def after_run(&block); end
25
+
26
+ # Registers Minitest to run at process exit
27
+ #
28
+ # source://minitest//lib/minitest.rb#66
29
+ def autorun; end
30
+
31
+ # source://minitest//lib/minitest.rb#19
32
+ def backtrace_filter; end
33
+
34
+ # source://minitest//lib/minitest.rb#19
35
+ def backtrace_filter=(_arg0); end
36
+
37
+ # source://minitest//lib/minitest.rb#18
38
+ def cattr_accessor(name); end
39
+
40
+ # source://minitest//lib/minitest.rb#1059
41
+ def clock_time; end
42
+
43
+ # source://minitest//lib/minitest.rb#19
44
+ def extensions; end
45
+
46
+ # source://minitest//lib/minitest.rb#19
47
+ def extensions=(_arg0); end
48
+
49
+ # source://minitest//lib/minitest.rb#264
50
+ def filter_backtrace(bt); end
51
+
52
+ # source://minitest//lib/minitest.rb#19
53
+ def info_signal; end
54
+
55
+ # source://minitest//lib/minitest.rb#19
56
+ def info_signal=(_arg0); end
57
+
58
+ # source://minitest//lib/minitest.rb#98
59
+ def init_plugins(options); end
60
+
61
+ # source://minitest//lib/minitest.rb#105
62
+ def load_plugins; end
63
+
64
+ # source://minitest//lib/minitest.rb#19
65
+ def parallel_executor; end
66
+
67
+ # source://minitest//lib/minitest.rb#19
68
+ def parallel_executor=(_arg0); end
69
+
70
+ # source://minitest//lib/minitest.rb#186
71
+ def process_args(args = T.unsafe(nil)); end
72
+
73
+ # source://minitest//lib/minitest.rb#19
74
+ def reporter; end
75
+
76
+ # source://minitest//lib/minitest.rb#19
77
+ def reporter=(_arg0); end
78
+
79
+ # This is the top-level run method. Everything starts from here. It
80
+ # tells each Runnable sub-class to run, and each of those are
81
+ # responsible for doing whatever they do.
82
+ #
83
+ # The overall structure of a run looks like this:
84
+ #
85
+ # Minitest.autorun
86
+ # Minitest.run(args)
87
+ # Minitest.__run(reporter, options)
88
+ # Runnable.runnables.each
89
+ # runnable.run(reporter, options)
90
+ # self.runnable_methods.each
91
+ # self.run_one_method(self, runnable_method, reporter)
92
+ # Minitest.run_one_method(klass, runnable_method)
93
+ # klass.new(runnable_method).run
94
+ #
95
+ # source://minitest//lib/minitest.rb#140
96
+ def run(args = T.unsafe(nil)); end
97
+
98
+ # source://minitest//lib/minitest.rb#1050
99
+ def run_one_method(klass, method_name); end
100
+
101
+ # source://minitest//lib/minitest.rb#19
102
+ def seed; end
103
+
104
+ # source://minitest//lib/minitest.rb#19
105
+ def seed=(_arg0); end
106
+ end
107
+ end
108
+
109
+ # Defines the API for Reporters. Subclass this and override whatever
110
+ # you want. Go nuts.
111
+ #
112
+ # source://minitest//lib/minitest.rb#578
113
+ class Minitest::AbstractReporter
114
+ include ::Mutex_m
115
+
116
+ # source://mutex_m/0.1.1/mutex_m.rb#93
117
+ def lock; end
118
+
119
+ # source://mutex_m/0.1.1/mutex_m.rb#83
120
+ def locked?; end
121
+
122
+ # Did this run pass?
123
+ #
124
+ # @return [Boolean]
125
+ #
126
+ # source://minitest//lib/minitest.rb#612
127
+ def passed?; end
128
+
129
+ # About to start running a test. This allows a reporter to show
130
+ # that it is starting or that we are in the middle of a test run.
131
+ #
132
+ # source://minitest//lib/minitest.rb#591
133
+ def prerecord(klass, name); end
134
+
135
+ # Output and record the result of the test. Call
136
+ # {result#result_code}[rdoc-ref:Runnable#result_code] to get the
137
+ # result character string. Stores the result of the run if the run
138
+ # did not pass.
139
+ #
140
+ # source://minitest//lib/minitest.rb#600
141
+ def record(result); end
142
+
143
+ # Outputs the summary of the run.
144
+ #
145
+ # source://minitest//lib/minitest.rb#606
146
+ def report; end
147
+
148
+ # Starts reporting on the run.
149
+ #
150
+ # source://minitest//lib/minitest.rb#584
151
+ def start; end
152
+
153
+ # source://mutex_m/0.1.1/mutex_m.rb#78
154
+ def synchronize(&block); end
155
+
156
+ # source://mutex_m/0.1.1/mutex_m.rb#88
157
+ def try_lock; end
158
+
159
+ # source://mutex_m/0.1.1/mutex_m.rb#98
160
+ def unlock; end
161
+ end
162
+
163
+ # Represents run failures.
164
+ #
165
+ # source://minitest//lib/minitest.rb#895
166
+ class Minitest::Assertion < ::Exception
167
+ # source://minitest//lib/minitest.rb#896
168
+ def error; end
169
+
170
+ # Where was this run before an assertion was raised?
171
+ #
172
+ # source://minitest//lib/minitest.rb#903
173
+ def location; end
174
+
175
+ # source://minitest//lib/minitest.rb#912
176
+ def result_code; end
177
+
178
+ # source://minitest//lib/minitest.rb#916
179
+ def result_label; end
180
+ end
181
+
182
+ # Minitest Assertions. All assertion methods accept a +msg+ which is
183
+ # printed if the assertion fails.
184
+ #
185
+ # Protocol: Nearly everything here boils up to +assert+, which
186
+ # expects to be able to increment an instance accessor named
187
+ # +assertions+. This is not provided by Assertions and must be
188
+ # provided by the thing including Assertions. See Minitest::Runnable
189
+ # for an example.
190
+ #
191
+ # source://minitest//lib/minitest/assertions.rb#18
192
+ module Minitest::Assertions
193
+ # source://minitest//lib/minitest/assertions.rb#188
194
+ def _synchronize; end
195
+
196
+ # Fails unless +test+ is truthy.
197
+ #
198
+ # source://minitest//lib/minitest/assertions.rb#178
199
+ def assert(test, msg = T.unsafe(nil)); end
200
+
201
+ # Fails unless +obj+ is empty.
202
+ #
203
+ # source://minitest//lib/minitest/assertions.rb#195
204
+ def assert_empty(obj, msg = T.unsafe(nil)); end
205
+
206
+ # Fails unless <tt>exp == act</tt> printing the difference between
207
+ # the two, if possible.
208
+ #
209
+ # If there is no visible difference but the assertion fails, you
210
+ # should suspect that your #== is buggy, or your inspect output is
211
+ # missing crucial details. For nicer structural diffing, set
212
+ # Minitest::Test.make_my_diffs_pretty!
213
+ #
214
+ # For floats use assert_in_delta.
215
+ #
216
+ # See also: Minitest::Assertions.diff
217
+ #
218
+ # source://minitest//lib/minitest/assertions.rb#216
219
+ def assert_equal(exp, act, msg = T.unsafe(nil)); end
220
+
221
+ # For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
222
+ # of each other.
223
+ #
224
+ # assert_in_delta Math::PI, (22.0 / 7.0), 0.01
225
+ #
226
+ # source://minitest//lib/minitest/assertions.rb#240
227
+ def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
228
+
229
+ # For comparing Floats. Fails unless +exp+ and +act+ have a relative
230
+ # error less than +epsilon+.
231
+ #
232
+ # source://minitest//lib/minitest/assertions.rb#252
233
+ def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
234
+
235
+ # Fails unless +collection+ includes +obj+.
236
+ #
237
+ # source://minitest//lib/minitest/assertions.rb#259
238
+ def assert_includes(collection, obj, msg = T.unsafe(nil)); end
239
+
240
+ # Fails unless +obj+ is an instance of +cls+.
241
+ #
242
+ # source://minitest//lib/minitest/assertions.rb#270
243
+ def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end
244
+
245
+ # Fails unless +obj+ is a kind of +cls+.
246
+ #
247
+ # source://minitest//lib/minitest/assertions.rb#281
248
+ def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end
249
+
250
+ # Fails unless +matcher+ <tt>=~</tt> +obj+.
251
+ #
252
+ # source://minitest//lib/minitest/assertions.rb#291
253
+ def assert_match(matcher, obj, msg = T.unsafe(nil)); end
254
+
255
+ # Fails unless +obj+ is nil
256
+ #
257
+ # source://minitest//lib/minitest/assertions.rb#303
258
+ def assert_nil(obj, msg = T.unsafe(nil)); end
259
+
260
+ # For testing with binary operators. Eg:
261
+ #
262
+ # assert_operator 5, :<=, 4
263
+ #
264
+ # source://minitest//lib/minitest/assertions.rb#313
265
+ def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
266
+
267
+ # Fails if stdout or stderr do not output the expected results.
268
+ # Pass in nil if you don't care about that streams output. Pass in
269
+ # "" if you require it to be silent. Pass in a regexp if you want
270
+ # to pattern match.
271
+ #
272
+ # assert_output(/hey/) { method_with_output }
273
+ #
274
+ # NOTE: this uses #capture_io, not #capture_subprocess_io.
275
+ #
276
+ # See also: #assert_silent
277
+ #
278
+ # source://minitest//lib/minitest/assertions.rb#331
279
+ def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end
280
+
281
+ # Fails unless +path+ exists.
282
+ #
283
+ # source://minitest//lib/minitest/assertions.rb#355
284
+ def assert_path_exists(path, msg = T.unsafe(nil)); end
285
+
286
+ # For testing with predicates. Eg:
287
+ #
288
+ # assert_predicate str, :empty?
289
+ #
290
+ # This is really meant for specs and is front-ended by assert_operator:
291
+ #
292
+ # str.must_be :empty?
293
+ #
294
+ # source://minitest//lib/minitest/assertions.rb#369
295
+ def assert_predicate(o1, op, msg = T.unsafe(nil)); end
296
+
297
+ # Fails unless the block raises one of +exp+. Returns the
298
+ # exception matched so you can check the message, attributes, etc.
299
+ #
300
+ # +exp+ takes an optional message on the end to help explain
301
+ # failures and defaults to StandardError if no exception class is
302
+ # passed. Eg:
303
+ #
304
+ # assert_raises(CustomError) { method_with_custom_error }
305
+ #
306
+ # With custom error message:
307
+ #
308
+ # assert_raises(CustomError, 'This should have raised CustomError') { method_with_custom_error }
309
+ #
310
+ # Using the returned object:
311
+ #
312
+ # error = assert_raises(CustomError) do
313
+ # raise CustomError, 'This is really bad'
314
+ # end
315
+ #
316
+ # assert_equal 'This is really bad', error.message
317
+ #
318
+ # source://minitest//lib/minitest/assertions.rb#396
319
+ def assert_raises(*exp); end
320
+
321
+ # Fails unless +obj+ responds to +meth+.
322
+ #
323
+ # source://minitest//lib/minitest/assertions.rb#427
324
+ def assert_respond_to(obj, meth, msg = T.unsafe(nil)); end
325
+
326
+ # Fails unless +exp+ and +act+ are #equal?
327
+ #
328
+ # source://minitest//lib/minitest/assertions.rb#437
329
+ def assert_same(exp, act, msg = T.unsafe(nil)); end
330
+
331
+ # +send_ary+ is a receiver, message and arguments.
332
+ #
333
+ # Fails unless the call returns a true value
334
+ #
335
+ # source://minitest//lib/minitest/assertions.rb#450
336
+ def assert_send(send_ary, m = T.unsafe(nil)); end
337
+
338
+ # Fails if the block outputs anything to stderr or stdout.
339
+ #
340
+ # See also: #assert_output
341
+ #
342
+ # source://minitest//lib/minitest/assertions.rb#466
343
+ def assert_silent; end
344
+
345
+ # Fails unless the block throws +sym+
346
+ #
347
+ # source://minitest//lib/minitest/assertions.rb#475
348
+ def assert_throws(sym, msg = T.unsafe(nil)); end
349
+
350
+ # Captures $stdout and $stderr into strings:
351
+ #
352
+ # out, err = capture_io do
353
+ # puts "Some info"
354
+ # warn "You did a bad thing"
355
+ # end
356
+ #
357
+ # assert_match %r%info%, out
358
+ # assert_match %r%bad%, err
359
+ #
360
+ # NOTE: For efficiency, this method uses StringIO and does not
361
+ # capture IO for subprocesses. Use #capture_subprocess_io for
362
+ # that.
363
+ #
364
+ # source://minitest//lib/minitest/assertions.rb#516
365
+ def capture_io; end
366
+
367
+ # Captures $stdout and $stderr into strings, using Tempfile to
368
+ # ensure that subprocess IO is captured as well.
369
+ #
370
+ # out, err = capture_subprocess_io do
371
+ # system "echo Some info"
372
+ # system "echo You did a bad thing 1>&2"
373
+ # end
374
+ #
375
+ # assert_match %r%info%, out
376
+ # assert_match %r%bad%, err
377
+ #
378
+ # NOTE: This method is approximately 10x slower than #capture_io so
379
+ # only use it when you need to test the output of a subprocess.
380
+ #
381
+ # source://minitest//lib/minitest/assertions.rb#549
382
+ def capture_subprocess_io; end
383
+
384
+ # Returns a diff between +exp+ and +act+. If there is no known
385
+ # diff command or if it doesn't make sense to diff the output
386
+ # (single line, short output), then it simply returns a basic
387
+ # comparison between the two.
388
+ #
389
+ # See +things_to_diff+ for more info.
390
+ #
391
+ # source://minitest//lib/minitest/assertions.rb#59
392
+ def diff(exp, act); end
393
+
394
+ # Returns details for exception +e+
395
+ #
396
+ # source://minitest//lib/minitest/assertions.rb#581
397
+ def exception_details(e, msg); end
398
+
399
+ # Fails after a given date (in the local time zone). This allows
400
+ # you to put time-bombs in your tests if you need to keep
401
+ # something around until a later date lest you forget about it.
402
+ #
403
+ # source://minitest//lib/minitest/assertions.rb#597
404
+ def fail_after(y, m, d, msg); end
405
+
406
+ # Fails with +msg+.
407
+ #
408
+ # source://minitest//lib/minitest/assertions.rb#604
409
+ def flunk(msg = T.unsafe(nil)); end
410
+
411
+ # Returns a proc that will output +msg+ along with the default message.
412
+ #
413
+ # source://minitest//lib/minitest/assertions.rb#612
414
+ def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end
415
+
416
+ # This returns a human-readable version of +obj+. By default
417
+ # #inspect is called. You can override this to use #pretty_inspect
418
+ # if you want.
419
+ #
420
+ # See Minitest::Test.make_my_diffs_pretty!
421
+ #
422
+ # source://minitest//lib/minitest/assertions.rb#129
423
+ def mu_pp(obj); end
424
+
425
+ # This returns a diff-able more human-readable version of +obj+.
426
+ # This differs from the regular mu_pp because it expands escaped
427
+ # newlines and makes hex-values (like object_ids) generic. This
428
+ # uses mu_pp to do the first pass and then cleans it up.
429
+ #
430
+ # source://minitest//lib/minitest/assertions.rb#152
431
+ def mu_pp_for_diff(obj); end
432
+
433
+ # used for counting assertions
434
+ #
435
+ # source://minitest//lib/minitest/assertions.rb#623
436
+ def pass(_msg = T.unsafe(nil)); end
437
+
438
+ # Fails if +test+ is truthy.
439
+ #
440
+ # source://minitest//lib/minitest/assertions.rb#630
441
+ def refute(test, msg = T.unsafe(nil)); end
442
+
443
+ # Fails if +obj+ is empty.
444
+ #
445
+ # source://minitest//lib/minitest/assertions.rb#638
446
+ def refute_empty(obj, msg = T.unsafe(nil)); end
447
+
448
+ # Fails if <tt>exp == act</tt>.
449
+ #
450
+ # For floats use refute_in_delta.
451
+ #
452
+ # source://minitest//lib/minitest/assertions.rb#649
453
+ def refute_equal(exp, act, msg = T.unsafe(nil)); end
454
+
455
+ # For comparing Floats. Fails if +exp+ is within +delta+ of +act+.
456
+ #
457
+ # refute_in_delta Math::PI, (22.0 / 7.0)
458
+ #
459
+ # source://minitest//lib/minitest/assertions.rb#661
460
+ def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
461
+
462
+ # For comparing Floats. Fails if +exp+ and +act+ have a relative error
463
+ # less than +epsilon+.
464
+ #
465
+ # source://minitest//lib/minitest/assertions.rb#673
466
+ def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
467
+
468
+ # Fails if +collection+ includes +obj+.
469
+ #
470
+ # source://minitest//lib/minitest/assertions.rb#680
471
+ def refute_includes(collection, obj, msg = T.unsafe(nil)); end
472
+
473
+ # Fails if +obj+ is an instance of +cls+.
474
+ #
475
+ # source://minitest//lib/minitest/assertions.rb#691
476
+ def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end
477
+
478
+ # Fails if +obj+ is a kind of +cls+.
479
+ #
480
+ # source://minitest//lib/minitest/assertions.rb#701
481
+ def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end
482
+
483
+ # Fails if +matcher+ <tt>=~</tt> +obj+.
484
+ #
485
+ # source://minitest//lib/minitest/assertions.rb#709
486
+ def refute_match(matcher, obj, msg = T.unsafe(nil)); end
487
+
488
+ # Fails if +obj+ is nil.
489
+ #
490
+ # source://minitest//lib/minitest/assertions.rb#719
491
+ def refute_nil(obj, msg = T.unsafe(nil)); end
492
+
493
+ # Fails if +o1+ is not +op+ +o2+. Eg:
494
+ #
495
+ # refute_operator 1, :>, 2 #=> pass
496
+ # refute_operator 1, :<, 2 #=> fail
497
+ #
498
+ # source://minitest//lib/minitest/assertions.rb#730
499
+ def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
500
+
501
+ # Fails if +path+ exists.
502
+ #
503
+ # source://minitest//lib/minitest/assertions.rb#739
504
+ def refute_path_exists(path, msg = T.unsafe(nil)); end
505
+
506
+ # For testing with predicates.
507
+ #
508
+ # refute_predicate str, :empty?
509
+ #
510
+ # This is really meant for specs and is front-ended by refute_operator:
511
+ #
512
+ # str.wont_be :empty?
513
+ #
514
+ # source://minitest//lib/minitest/assertions.rb#753
515
+ def refute_predicate(o1, op, msg = T.unsafe(nil)); end
516
+
517
+ # Fails if +obj+ responds to the message +meth+.
518
+ #
519
+ # source://minitest//lib/minitest/assertions.rb#761
520
+ def refute_respond_to(obj, meth, msg = T.unsafe(nil)); end
521
+
522
+ # Fails if +exp+ is the same (by object identity) as +act+.
523
+ #
524
+ # source://minitest//lib/minitest/assertions.rb#770
525
+ def refute_same(exp, act, msg = T.unsafe(nil)); end
526
+
527
+ # Skips the current run. If run in verbose-mode, the skipped run
528
+ # gets listed at the end of the run but doesn't cause a failure
529
+ # exit code.
530
+ #
531
+ # @raise [Minitest::Skip]
532
+ #
533
+ # source://minitest//lib/minitest/assertions.rb#783
534
+ def skip(msg = T.unsafe(nil), bt = T.unsafe(nil)); end
535
+
536
+ # Skips the current run until a given date (in the local time
537
+ # zone). This allows you to put some fixes on hold until a later
538
+ # date, but still holds you accountable and prevents you from
539
+ # forgetting it.
540
+ #
541
+ # source://minitest//lib/minitest/assertions.rb#795
542
+ def skip_until(y, m, d, msg); end
543
+
544
+ # Was this testcase skipped? Meant for #teardown.
545
+ #
546
+ # @return [Boolean]
547
+ #
548
+ # source://minitest//lib/minitest/assertions.rb#804
549
+ def skipped?; end
550
+
551
+ # Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff.
552
+ #
553
+ # Criterion:
554
+ #
555
+ # 1. Strings include newlines or escaped newlines, but not both.
556
+ # 2. or: String lengths are > 30 characters.
557
+ # 3. or: Strings are equal to each other (but maybe different encodings?).
558
+ # 4. and: we found a diff executable.
559
+ #
560
+ # source://minitest//lib/minitest/assertions.rb#104
561
+ def things_to_diff(exp, act); end
562
+
563
+ class << self
564
+ # Returns the diff command to use in #diff. Tries to intelligently
565
+ # figure out what diff to use.
566
+ #
567
+ # source://minitest//lib/minitest/assertions.rb#29
568
+ def diff; end
569
+
570
+ # Set the diff command to use in #diff.
571
+ #
572
+ # source://minitest//lib/minitest/assertions.rb#47
573
+ def diff=(o); end
574
+ end
575
+ end
576
+
577
+ # source://minitest//lib/minitest/assertions.rb#201
578
+ Minitest::Assertions::E = T.let(T.unsafe(nil), String)
579
+
580
+ # source://minitest//lib/minitest/assertions.rb#19
581
+ Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
582
+
583
+ # The standard backtrace filter for minitest.
584
+ #
585
+ # See Minitest.backtrace_filter=.
586
+ #
587
+ # source://minitest//lib/minitest.rb#1027
588
+ class Minitest::BacktraceFilter
589
+ # Filter +bt+ to something useful. Returns the whole thing if
590
+ # $DEBUG (ruby) or $MT_DEBUG (env).
591
+ #
592
+ # source://minitest//lib/minitest.rb#1035
593
+ def filter(bt); end
594
+ end
595
+
596
+ # source://minitest//lib/minitest.rb#1029
597
+ Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
598
+
599
+ # Dispatch to multiple reporters as one.
600
+ #
601
+ # source://minitest//lib/minitest.rb#846
602
+ class Minitest::CompositeReporter < ::Minitest::AbstractReporter
603
+ # @return [CompositeReporter] a new instance of CompositeReporter
604
+ #
605
+ # source://minitest//lib/minitest.rb#850
606
+ def initialize(*reporters); end
607
+
608
+ # Add another reporter to the mix.
609
+ #
610
+ # source://minitest//lib/minitest.rb#862
611
+ def <<(reporter); end
612
+
613
+ # source://minitest//lib/minitest.rb#855
614
+ def io; end
615
+
616
+ # @return [Boolean]
617
+ #
618
+ # source://minitest//lib/minitest.rb#866
619
+ def passed?; end
620
+
621
+ # source://minitest//lib/minitest.rb#874
622
+ def prerecord(klass, name); end
623
+
624
+ # source://minitest//lib/minitest.rb#881
625
+ def record(result); end
626
+
627
+ # source://minitest//lib/minitest.rb#887
628
+ def report; end
629
+
630
+ # The list of reporters to dispatch to.
631
+ #
632
+ # source://minitest//lib/minitest.rb#848
633
+ def reporters; end
634
+
635
+ # The list of reporters to dispatch to.
636
+ #
637
+ # source://minitest//lib/minitest.rb#848
638
+ def reporters=(_arg0); end
639
+
640
+ # source://minitest//lib/minitest.rb#870
641
+ def start; end
642
+ end
643
+
644
+ # Provides a simple set of guards that you can use in your tests
645
+ # to skip execution if it is not applicable. These methods are
646
+ # mixed into Test as both instance and class methods so you
647
+ # can use them inside or outside of the test methods.
648
+ #
649
+ # def test_something_for_mri
650
+ # skip "bug 1234" if jruby?
651
+ # # ...
652
+ # end
653
+ #
654
+ # if windows? then
655
+ # # ... lots of test methods ...
656
+ # end
657
+ #
658
+ # source://minitest//lib/minitest.rb#971
659
+ module Minitest::Guard
660
+ # Is this running on jruby?
661
+ #
662
+ # @return [Boolean]
663
+ #
664
+ # source://minitest//lib/minitest.rb#976
665
+ def jruby?(platform = T.unsafe(nil)); end
666
+
667
+ # Is this running on maglev?
668
+ #
669
+ # @return [Boolean]
670
+ #
671
+ # source://minitest//lib/minitest.rb#983
672
+ def maglev?(platform = T.unsafe(nil)); end
673
+
674
+ # Is this running on mri?
675
+ #
676
+ # @return [Boolean]
677
+ #
678
+ # source://minitest//lib/minitest.rb#993
679
+ def mri?(platform = T.unsafe(nil)); end
680
+
681
+ # Is this running on macOS?
682
+ #
683
+ # @return [Boolean]
684
+ #
685
+ # source://minitest//lib/minitest.rb#1000
686
+ def osx?(platform = T.unsafe(nil)); end
687
+
688
+ # Is this running on rubinius?
689
+ #
690
+ # @return [Boolean]
691
+ #
692
+ # source://minitest//lib/minitest.rb#1007
693
+ def rubinius?(platform = T.unsafe(nil)); end
694
+
695
+ # Is this running on windows?
696
+ #
697
+ # @return [Boolean]
698
+ #
699
+ # source://minitest//lib/minitest.rb#1017
700
+ def windows?(platform = T.unsafe(nil)); end
701
+ end
702
+
703
+ # source://minitest//lib/minitest/parallel.rb#2
704
+ module Minitest::Parallel; end
705
+
706
+ # The engine used to run multiple tests in parallel.
707
+ #
708
+ # source://minitest//lib/minitest/parallel.rb#7
709
+ class Minitest::Parallel::Executor
710
+ # Create a parallel test executor of with +size+ workers.
711
+ #
712
+ # @return [Executor] a new instance of Executor
713
+ #
714
+ # source://minitest//lib/minitest/parallel.rb#17
715
+ def initialize(size); end
716
+
717
+ # Add a job to the queue
718
+ #
719
+ # source://minitest//lib/minitest/parallel.rb#43
720
+ def <<(work); end
721
+
722
+ # Shuts down the pool of workers by signalling them to quit and
723
+ # waiting for them all to finish what they're currently working
724
+ # on.
725
+ #
726
+ # source://minitest//lib/minitest/parallel.rb#50
727
+ def shutdown; end
728
+
729
+ # The size of the pool of workers.
730
+ #
731
+ # source://minitest//lib/minitest/parallel.rb#12
732
+ def size; end
733
+
734
+ # Start the executor
735
+ #
736
+ # source://minitest//lib/minitest/parallel.rb#26
737
+ def start; end
738
+ end
739
+
740
+ # source://minitest//lib/minitest/parallel.rb#56
741
+ module Minitest::Parallel::Test
742
+ # source://minitest//lib/minitest/parallel.rb#57
743
+ def _synchronize; end
744
+ end
745
+
746
+ # source://minitest//lib/minitest/parallel.rb#59
747
+ module Minitest::Parallel::Test::ClassMethods
748
+ # source://minitest//lib/minitest/parallel.rb#60
749
+ def run_one_method(klass, method_name, reporter); end
750
+
751
+ # source://minitest//lib/minitest/parallel.rb#64
752
+ def test_order; end
753
+ end
754
+
755
+ # A very simple reporter that prints the "dots" during the run.
756
+ #
757
+ # This is added to the top-level CompositeReporter at the start of
758
+ # the run. If you want to change the output of minitest via a
759
+ # plugin, pull this out of the composite and replace it with your
760
+ # own.
761
+ #
762
+ # source://minitest//lib/minitest.rb#643
763
+ class Minitest::ProgressReporter < ::Minitest::Reporter
764
+ # source://minitest//lib/minitest.rb#644
765
+ def prerecord(klass, name); end
766
+
767
+ # source://minitest//lib/minitest.rb#651
768
+ def record(result); end
769
+ end
770
+
771
+ # Shared code for anything that can get passed to a Reporter. See
772
+ # Minitest::Test & Minitest::Result.
773
+ #
774
+ # source://minitest//lib/minitest.rb#475
775
+ module Minitest::Reportable
776
+ # @raise [NotImplementedError]
777
+ #
778
+ # source://minitest//lib/minitest.rb#495
779
+ def class_name; end
780
+
781
+ # Did this run error?
782
+ #
783
+ # @return [Boolean]
784
+ #
785
+ # source://minitest//lib/minitest.rb#516
786
+ def error?; end
787
+
788
+ # The location identifier of this test. Depends on a method
789
+ # existing called class_name.
790
+ #
791
+ # source://minitest//lib/minitest.rb#490
792
+ def location; end
793
+
794
+ # Did this run pass?
795
+ #
796
+ # Note: skipped runs are not considered passing, but they don't
797
+ # cause the process to exit non-zero.
798
+ #
799
+ # @return [Boolean]
800
+ #
801
+ # source://minitest//lib/minitest.rb#482
802
+ def passed?; end
803
+
804
+ # Returns ".", "F", or "E" based on the result of the run.
805
+ #
806
+ # source://minitest//lib/minitest.rb#502
807
+ def result_code; end
808
+
809
+ # Was this run skipped?
810
+ #
811
+ # @return [Boolean]
812
+ #
813
+ # source://minitest//lib/minitest.rb#509
814
+ def skipped?; end
815
+ end
816
+
817
+ # source://minitest//lib/minitest.rb#619
818
+ class Minitest::Reporter < ::Minitest::AbstractReporter
819
+ # @return [Reporter] a new instance of Reporter
820
+ #
821
+ # source://minitest//lib/minitest.rb#628
822
+ def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
823
+
824
+ # The IO used to report.
825
+ #
826
+ # source://minitest//lib/minitest.rb#621
827
+ def io; end
828
+
829
+ # The IO used to report.
830
+ #
831
+ # source://minitest//lib/minitest.rb#621
832
+ def io=(_arg0); end
833
+
834
+ # Command-line options for this run.
835
+ #
836
+ # source://minitest//lib/minitest.rb#626
837
+ def options; end
838
+
839
+ # Command-line options for this run.
840
+ #
841
+ # source://minitest//lib/minitest.rb#626
842
+ def options=(_arg0); end
843
+ end
844
+
845
+ # This represents a test result in a clean way that can be
846
+ # marshalled over a wire. Tests can do anything they want to the
847
+ # test instance and can create conditions that cause Marshal.dump to
848
+ # blow up. By using Result.from(a_test) you can be reasonably sure
849
+ # that the test result can be marshalled.
850
+ #
851
+ # source://minitest//lib/minitest.rb#528
852
+ class Minitest::Result < ::Minitest::Runnable
853
+ include ::Minitest::Reportable
854
+
855
+ # source://minitest//lib/minitest.rb#561
856
+ def class_name; end
857
+
858
+ # The class name of the test result.
859
+ #
860
+ # source://minitest//lib/minitest.rb#537
861
+ def klass; end
862
+
863
+ # The class name of the test result.
864
+ #
865
+ # source://minitest//lib/minitest.rb#537
866
+ def klass=(_arg0); end
867
+
868
+ # The location of the test method.
869
+ #
870
+ # source://minitest//lib/minitest.rb#542
871
+ def source_location; end
872
+
873
+ # The location of the test method.
874
+ #
875
+ # source://minitest//lib/minitest.rb#542
876
+ def source_location=(_arg0); end
877
+
878
+ # source://minitest//lib/minitest.rb#565
879
+ def to_s; end
880
+
881
+ class << self
882
+ # Create a new test result from a Runnable instance.
883
+ #
884
+ # source://minitest//lib/minitest.rb#547
885
+ def from(runnable); end
886
+ end
887
+ end
888
+
889
+ # re-open
890
+ #
891
+ # source://minitest//lib/minitest.rb#277
892
+ class Minitest::Runnable
893
+ # @return [Runnable] a new instance of Runnable
894
+ #
895
+ # source://minitest//lib/minitest.rb#431
896
+ def initialize(name); end
897
+
898
+ # Number of assertions executed in this run.
899
+ #
900
+ # source://minitest//lib/minitest.rb#281
901
+ def assertions; end
902
+
903
+ # Number of assertions executed in this run.
904
+ #
905
+ # source://minitest//lib/minitest.rb#281
906
+ def assertions=(_arg0); end
907
+
908
+ # source://minitest//lib/minitest.rb#427
909
+ def failure; end
910
+
911
+ # An assertion raised during the run, if any.
912
+ #
913
+ # source://minitest//lib/minitest.rb#286
914
+ def failures; end
915
+
916
+ # An assertion raised during the run, if any.
917
+ #
918
+ # source://minitest//lib/minitest.rb#286
919
+ def failures=(_arg0); end
920
+
921
+ # source://minitest//lib/minitest.rb#413
922
+ def marshal_dump; end
923
+
924
+ # source://minitest//lib/minitest.rb#423
925
+ def marshal_load(ary); end
926
+
927
+ # Name of the run.
928
+ #
929
+ # source://minitest//lib/minitest.rb#304
930
+ def name; end
931
+
932
+ # Set the name of the run.
933
+ #
934
+ # source://minitest//lib/minitest.rb#311
935
+ def name=(o); end
936
+
937
+ # Did this run pass?
938
+ #
939
+ # Note: skipped runs are not considered passing, but they don't
940
+ # cause the process to exit non-zero.
941
+ #
942
+ # @raise [NotImplementedError]
943
+ # @return [Boolean]
944
+ #
945
+ # source://minitest//lib/minitest.rb#450
946
+ def passed?; end
947
+
948
+ # Returns a single character string to print based on the result
949
+ # of the run. One of <tt>"."</tt>, <tt>"F"</tt>,
950
+ # <tt>"E"</tt> or <tt>"S"</tt>.
951
+ #
952
+ # @raise [NotImplementedError]
953
+ #
954
+ # source://minitest//lib/minitest.rb#459
955
+ def result_code; end
956
+
957
+ # Runs a single method. Needs to return self.
958
+ #
959
+ # @raise [NotImplementedError]
960
+ #
961
+ # source://minitest//lib/minitest.rb#440
962
+ def run; end
963
+
964
+ # Was this run skipped? See #passed? for more information.
965
+ #
966
+ # @raise [NotImplementedError]
967
+ # @return [Boolean]
968
+ #
969
+ # source://minitest//lib/minitest.rb#466
970
+ def skipped?; end
971
+
972
+ # The time it took to run.
973
+ #
974
+ # source://minitest//lib/minitest.rb#291
975
+ def time; end
976
+
977
+ # The time it took to run.
978
+ #
979
+ # source://minitest//lib/minitest.rb#291
980
+ def time=(_arg0); end
981
+
982
+ # source://minitest//lib/minitest.rb#293
983
+ def time_it; end
984
+
985
+ class << self
986
+ # source://minitest//lib/minitest.rb#1069
987
+ def inherited(klass); end
988
+
989
+ # Returns all instance methods matching the pattern +re+.
990
+ #
991
+ # source://minitest//lib/minitest.rb#318
992
+ def methods_matching(re); end
993
+
994
+ # source://minitest//lib/minitest.rb#383
995
+ def on_signal(name, action); end
996
+
997
+ # source://minitest//lib/minitest.rb#322
998
+ def reset; end
999
+
1000
+ # Responsible for running all runnable methods in a given class,
1001
+ # each in its own instance. Each instance is passed to the
1002
+ # reporter to record.
1003
+ #
1004
+ # source://minitest//lib/minitest.rb#333
1005
+ def run(reporter, options = T.unsafe(nil)); end
1006
+
1007
+ # Runs a single method and has the reporter record the result.
1008
+ # This was considered internal API but is factored out of run so
1009
+ # that subclasses can specialize the running of an individual
1010
+ # test. See Minitest::ParallelTest::ClassMethods for an example.
1011
+ #
1012
+ # source://minitest//lib/minitest.rb#363
1013
+ def run_one_method(klass, method_name, reporter); end
1014
+
1015
+ # Each subclass of Runnable is responsible for overriding this
1016
+ # method to return all runnable methods. See #methods_matching.
1017
+ #
1018
+ # @raise [NotImplementedError]
1019
+ #
1020
+ # source://minitest//lib/minitest.rb#400
1021
+ def runnable_methods; end
1022
+
1023
+ # Returns all subclasses of Runnable.
1024
+ #
1025
+ # source://minitest//lib/minitest.rb#407
1026
+ def runnables; end
1027
+
1028
+ # source://minitest//lib/minitest.rb#368
1029
+ def with_info_handler(reporter, &block); end
1030
+ end
1031
+ end
1032
+
1033
+ # source://minitest//lib/minitest.rb#381
1034
+ Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
1035
+
1036
+ # Assertion raised when skipping a run.
1037
+ #
1038
+ # source://minitest//lib/minitest.rb#924
1039
+ class Minitest::Skip < ::Minitest::Assertion
1040
+ # source://minitest//lib/minitest.rb#925
1041
+ def result_label; end
1042
+ end
1043
+
1044
+ # A reporter that gathers statistics about a test run. Does not do
1045
+ # any IO because meant to be used as a parent class for a reporter
1046
+ # that does.
1047
+ #
1048
+ # If you want to create an entirely different type of output (eg,
1049
+ # CI, HTML, etc), this is the place to start.
1050
+ #
1051
+ # Example:
1052
+ #
1053
+ # class JenkinsCIReporter < StatisticsReporter
1054
+ # def report
1055
+ # super # Needed to calculate some statistics
1056
+ #
1057
+ # print "<testsuite "
1058
+ # print "tests='#{count}' "
1059
+ # print "failures='#{failures}' "
1060
+ # # Remaining XML...
1061
+ # end
1062
+ # end
1063
+ #
1064
+ # source://minitest//lib/minitest.rb#681
1065
+ class Minitest::StatisticsReporter < ::Minitest::Reporter
1066
+ # @return [StatisticsReporter] a new instance of StatisticsReporter
1067
+ #
1068
+ # source://minitest//lib/minitest.rb#723
1069
+ def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
1070
+
1071
+ # Total number of assertions.
1072
+ #
1073
+ # source://minitest//lib/minitest.rb#683
1074
+ def assertions; end
1075
+
1076
+ # Total number of assertions.
1077
+ #
1078
+ # source://minitest//lib/minitest.rb#683
1079
+ def assertions=(_arg0); end
1080
+
1081
+ # Total number of test cases.
1082
+ #
1083
+ # source://minitest//lib/minitest.rb#688
1084
+ def count; end
1085
+
1086
+ # Total number of test cases.
1087
+ #
1088
+ # source://minitest//lib/minitest.rb#688
1089
+ def count=(_arg0); end
1090
+
1091
+ # Total number of tests that erred.
1092
+ #
1093
+ # source://minitest//lib/minitest.rb#716
1094
+ def errors; end
1095
+
1096
+ # Total number of tests that erred.
1097
+ #
1098
+ # source://minitest//lib/minitest.rb#716
1099
+ def errors=(_arg0); end
1100
+
1101
+ # Total number of tests that failed.
1102
+ #
1103
+ # source://minitest//lib/minitest.rb#711
1104
+ def failures; end
1105
+
1106
+ # Total number of tests that failed.
1107
+ #
1108
+ # source://minitest//lib/minitest.rb#711
1109
+ def failures=(_arg0); end
1110
+
1111
+ # @return [Boolean]
1112
+ #
1113
+ # source://minitest//lib/minitest.rb#736
1114
+ def passed?; end
1115
+
1116
+ # source://minitest//lib/minitest.rb#744
1117
+ def record(result); end
1118
+
1119
+ # Report on the tracked statistics.
1120
+ #
1121
+ # source://minitest//lib/minitest.rb#754
1122
+ def report; end
1123
+
1124
+ # An +Array+ of test cases that failed or were skipped.
1125
+ #
1126
+ # source://minitest//lib/minitest.rb#693
1127
+ def results; end
1128
+
1129
+ # An +Array+ of test cases that failed or were skipped.
1130
+ #
1131
+ # source://minitest//lib/minitest.rb#693
1132
+ def results=(_arg0); end
1133
+
1134
+ # Total number of tests that where skipped.
1135
+ #
1136
+ # source://minitest//lib/minitest.rb#721
1137
+ def skips; end
1138
+
1139
+ # Total number of tests that where skipped.
1140
+ #
1141
+ # source://minitest//lib/minitest.rb#721
1142
+ def skips=(_arg0); end
1143
+
1144
+ # source://minitest//lib/minitest.rb#740
1145
+ def start; end
1146
+
1147
+ # Time the test run started. If available, the monotonic clock is
1148
+ # used and this is a +Float+, otherwise it's an instance of
1149
+ # +Time+.
1150
+ #
1151
+ # source://minitest//lib/minitest.rb#700
1152
+ def start_time; end
1153
+
1154
+ # Time the test run started. If available, the monotonic clock is
1155
+ # used and this is a +Float+, otherwise it's an instance of
1156
+ # +Time+.
1157
+ #
1158
+ # source://minitest//lib/minitest.rb#700
1159
+ def start_time=(_arg0); end
1160
+
1161
+ # Test run time. If available, the monotonic clock is used and
1162
+ # this is a +Float+, otherwise it's an instance of +Time+.
1163
+ #
1164
+ # source://minitest//lib/minitest.rb#706
1165
+ def total_time; end
1166
+
1167
+ # Test run time. If available, the monotonic clock is used and
1168
+ # this is a +Float+, otherwise it's an instance of +Time+.
1169
+ #
1170
+ # source://minitest//lib/minitest.rb#706
1171
+ def total_time=(_arg0); end
1172
+ end
1173
+
1174
+ # A reporter that prints the header, summary, and failure details at
1175
+ # the end of the run.
1176
+ #
1177
+ # This is added to the top-level CompositeReporter at the start of
1178
+ # the run. If you want to change the output of minitest via a
1179
+ # plugin, pull this out of the composite and replace it with your
1180
+ # own.
1181
+ #
1182
+ # source://minitest//lib/minitest.rb#775
1183
+ class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
1184
+ # source://minitest//lib/minitest.rb#809
1185
+ def aggregated_results(io); end
1186
+
1187
+ # Returns the value of attribute old_sync.
1188
+ #
1189
+ # source://minitest//lib/minitest.rb#777
1190
+ def old_sync; end
1191
+
1192
+ # Sets the attribute old_sync
1193
+ #
1194
+ # @param value the value to set the attribute old_sync to.
1195
+ #
1196
+ # source://minitest//lib/minitest.rb#777
1197
+ def old_sync=(_arg0); end
1198
+
1199
+ # source://minitest//lib/minitest.rb#792
1200
+ def report; end
1201
+
1202
+ # :startdoc:
1203
+ #
1204
+ # source://minitest//lib/minitest.rb#780
1205
+ def start; end
1206
+
1207
+ # source://minitest//lib/minitest.rb#804
1208
+ def statistics; end
1209
+
1210
+ # source://minitest//lib/minitest.rb#829
1211
+ def summary; end
1212
+
1213
+ # :stopdoc:
1214
+ #
1215
+ # source://minitest//lib/minitest.rb#776
1216
+ def sync; end
1217
+
1218
+ # :stopdoc:
1219
+ #
1220
+ # source://minitest//lib/minitest.rb#776
1221
+ def sync=(_arg0); end
1222
+
1223
+ # source://minitest//lib/minitest.rb#825
1224
+ def to_s; end
1225
+ end
1226
+
1227
+ # Subclass Test to create your own tests. Typically you'll want a
1228
+ # Test subclass per implementation class.
1229
+ #
1230
+ # See Minitest::Assertions
1231
+ #
1232
+ # source://minitest//lib/minitest/test.rb#10
1233
+ class Minitest::Test < ::Minitest::Runnable
1234
+ include ::Minitest::Assertions
1235
+ include ::Minitest::Reportable
1236
+ include ::Minitest::Test::LifecycleHooks
1237
+ include ::Minitest::Guard
1238
+ extend ::Minitest::Guard
1239
+
1240
+ # LifecycleHooks
1241
+ #
1242
+ # source://minitest//lib/minitest/test.rb#198
1243
+ def capture_exceptions; end
1244
+
1245
+ # source://minitest//lib/minitest/test.rb#15
1246
+ def class_name; end
1247
+
1248
+ # source://minitest//lib/minitest/test.rb#215
1249
+ def neuter_exception(e); end
1250
+
1251
+ # source://minitest//lib/minitest/test.rb#226
1252
+ def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
1253
+
1254
+ # Runs a single test with setup/teardown hooks.
1255
+ #
1256
+ # source://minitest//lib/minitest/test.rb#94
1257
+ def run; end
1258
+
1259
+ # source://minitest//lib/minitest/test.rb#208
1260
+ def sanitize_exception(e); end
1261
+
1262
+ # source://minitest//lib/minitest/test.rb#240
1263
+ def with_info_handler(&block); end
1264
+
1265
+ class << self
1266
+ # Call this at the top of your tests when you absolutely
1267
+ # positively need to have ordered tests. In doing so, you're
1268
+ # admitting that you suck and your tests are weak.
1269
+ #
1270
+ # source://minitest//lib/minitest/test.rb#35
1271
+ def i_suck_and_my_tests_are_order_dependent!; end
1272
+
1273
+ # Returns the value of attribute io_lock.
1274
+ #
1275
+ # source://minitest//lib/minitest/test.rb#26
1276
+ def io_lock; end
1277
+
1278
+ # Sets the attribute io_lock
1279
+ #
1280
+ # @param value the value to set the attribute io_lock to.
1281
+ #
1282
+ # source://minitest//lib/minitest/test.rb#26
1283
+ def io_lock=(_arg0); end
1284
+
1285
+ # Make diffs for this Test use #pretty_inspect so that diff
1286
+ # in assert_equal can have more details. NOTE: this is much slower
1287
+ # than the regular inspect but much more usable for complex
1288
+ # objects.
1289
+ #
1290
+ # source://minitest//lib/minitest/test.rb#48
1291
+ def make_my_diffs_pretty!; end
1292
+
1293
+ # Call this at the top of your tests when you want to run your
1294
+ # tests in parallel. In doing so, you're admitting that you rule
1295
+ # and your tests are awesome.
1296
+ #
1297
+ # source://minitest//lib/minitest/test.rb#59
1298
+ def parallelize_me!; end
1299
+
1300
+ # Returns all instance methods starting with "test_". Based on
1301
+ # #test_order, the methods are either sorted, randomized
1302
+ # (default), or run in parallel.
1303
+ #
1304
+ # source://minitest//lib/minitest/test.rb#69
1305
+ def runnable_methods; end
1306
+
1307
+ # Defines the order to run tests (:random by default). Override
1308
+ # this or use a convenience method to change it for your tests.
1309
+ #
1310
+ # source://minitest//lib/minitest/test.rb#87
1311
+ def test_order; end
1312
+ end
1313
+ end
1314
+
1315
+ # Provides before/after hooks for setup and teardown. These are
1316
+ # meant for library writers, NOT for regular test authors. See
1317
+ # #before_setup for an example.
1318
+ #
1319
+ # source://minitest//lib/minitest/test.rb#121
1320
+ module Minitest::Test::LifecycleHooks
1321
+ # Runs before every test, after setup. This hook is meant for
1322
+ # libraries to extend minitest. It is not meant to be used by
1323
+ # test developers.
1324
+ #
1325
+ # See #before_setup for an example.
1326
+ #
1327
+ # source://minitest//lib/minitest/test.rb#171
1328
+ def after_setup; end
1329
+
1330
+ # Runs after every test, after teardown. This hook is meant for
1331
+ # libraries to extend minitest. It is not meant to be used by
1332
+ # test developers.
1333
+ #
1334
+ # See #before_setup for an example.
1335
+ #
1336
+ # source://minitest//lib/minitest/test.rb#195
1337
+ def after_teardown; end
1338
+
1339
+ # Runs before every test, before setup. This hook is meant for
1340
+ # libraries to extend minitest. It is not meant to be used by
1341
+ # test developers.
1342
+ #
1343
+ # As a simplistic example:
1344
+ #
1345
+ # module MyMinitestPlugin
1346
+ # def before_setup
1347
+ # super
1348
+ # # ... stuff to do before setup is run
1349
+ # end
1350
+ #
1351
+ # def after_setup
1352
+ # # ... stuff to do after setup is run
1353
+ # super
1354
+ # end
1355
+ #
1356
+ # def before_teardown
1357
+ # super
1358
+ # # ... stuff to do before teardown is run
1359
+ # end
1360
+ #
1361
+ # def after_teardown
1362
+ # # ... stuff to do after teardown is run
1363
+ # super
1364
+ # end
1365
+ # end
1366
+ #
1367
+ # class MiniTest::Test
1368
+ # include MyMinitestPlugin
1369
+ # end
1370
+ #
1371
+ # source://minitest//lib/minitest/test.rb#156
1372
+ def before_setup; end
1373
+
1374
+ # Runs after every test, before teardown. This hook is meant for
1375
+ # libraries to extend minitest. It is not meant to be used by
1376
+ # test developers.
1377
+ #
1378
+ # See #before_setup for an example.
1379
+ #
1380
+ # source://minitest//lib/minitest/test.rb#180
1381
+ def before_teardown; end
1382
+
1383
+ # Runs before every test. Use this to set up before each test
1384
+ # run.
1385
+ #
1386
+ # source://minitest//lib/minitest/test.rb#162
1387
+ def setup; end
1388
+
1389
+ # Runs after every test. Use this to clean up after each test
1390
+ # run.
1391
+ #
1392
+ # source://minitest//lib/minitest/test.rb#186
1393
+ def teardown; end
1394
+ end
1395
+
1396
+ # source://minitest//lib/minitest/test.rb#19
1397
+ Minitest::Test::PASSTHROUGH_EXCEPTIONS = T.let(T.unsafe(nil), Array)
1398
+
1399
+ # source://minitest//lib/minitest/test.rb#21
1400
+ Minitest::Test::SETUP_METHODS = T.let(T.unsafe(nil), Array)
1401
+
1402
+ # source://minitest//lib/minitest/test.rb#23
1403
+ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
1404
+
1405
+ # Assertion wrapping an unexpected error that was raised during a run.
1406
+ #
1407
+ # source://minitest//lib/minitest.rb#934
1408
+ class Minitest::UnexpectedError < ::Minitest::Assertion
1409
+ # @return [UnexpectedError] a new instance of UnexpectedError
1410
+ #
1411
+ # source://minitest//lib/minitest.rb#937
1412
+ def initialize(error); end
1413
+
1414
+ # source://minitest//lib/minitest.rb#942
1415
+ def backtrace; end
1416
+
1417
+ # TODO: figure out how to use `cause` instead
1418
+ #
1419
+ # source://minitest//lib/minitest.rb#935
1420
+ def error; end
1421
+
1422
+ # TODO: figure out how to use `cause` instead
1423
+ #
1424
+ # source://minitest//lib/minitest.rb#935
1425
+ def error=(_arg0); end
1426
+
1427
+ # source://minitest//lib/minitest.rb#946
1428
+ def message; end
1429
+
1430
+ # source://minitest//lib/minitest.rb#951
1431
+ def result_label; end
1432
+ end
1433
+
1434
+ # source://minitest//lib/minitest/unit.rb#20
1435
+ class Minitest::Unit
1436
+ class << self
1437
+ # source://minitest//lib/minitest/unit.rb#36
1438
+ def after_tests(&b); end
1439
+
1440
+ # source://minitest//lib/minitest/unit.rb#30
1441
+ def autorun; end
1442
+ end
1443
+ end
1444
+
1445
+ # source://minitest//lib/minitest/unit.rb#22
1446
+ class Minitest::Unit::TestCase < ::Minitest::Test
1447
+ class << self
1448
+ # source://minitest//lib/minitest/unit.rb#23
1449
+ def inherited(klass); end
1450
+ end
1451
+ end
1452
+
1453
+ # source://minitest//lib/minitest/unit.rb#21
1454
+ Minitest::Unit::VERSION = T.let(T.unsafe(nil), String)
1455
+
1456
+ # source://minitest//lib/minitest.rb#12
1457
+ Minitest::VERSION = T.let(T.unsafe(nil), String)