rubocop-packs 0.0.13 → 0.0.15

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