ruby_json_parser 0.1.0

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