guard-srb 0.1.0

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