packwerk_yard 0.1.0 → 0.2.0

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