vigiles 0.1.0.pre.beta2

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