categoria 0.1.0.pre.beta0

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