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