sorbet-result 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.standard.yml +1 -1
- data/.tool-versions +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +52 -57
- data/README.md +3 -3
- data/lib/typed/result.rb +32 -2
- data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
- data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.5.rbi} +148 -72
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.1.rbi} +252 -241
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.5.1.rbi} +233 -186
- data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
- data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.5.10.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.33.1.rbi} +1143 -671
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.22.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.66.1.rbi} +3312 -2415
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.5.0.rbi} +2009 -854
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.41.1.rbi} +171 -95
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.3.rbi} +357 -257
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
- data/sorbet/rbi/gems/{unicode-display_width@2.5.0.rbi → unicode-display_width@2.6.0.rbi} +1 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
- metadata +28 -45
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `minitest` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem minitest`.
|
6
6
|
|
7
|
+
|
7
8
|
# Kernel extensions for minitest
|
8
9
|
#
|
9
10
|
# source://minitest//lib/minitest/spec.rb#46
|
@@ -56,7 +57,7 @@ module Minitest
|
|
56
57
|
# Internal run method. Responsible for telling all Runnable
|
57
58
|
# sub-classes to run.
|
58
59
|
#
|
59
|
-
# source://minitest//lib/minitest.rb#
|
60
|
+
# source://minitest//lib/minitest.rb#322
|
60
61
|
def __run(reporter, options); end
|
61
62
|
|
62
63
|
# A simple hook allowing you to run a block of code after everything
|
@@ -64,7 +65,7 @@ module Minitest
|
|
64
65
|
#
|
65
66
|
# Minitest.after_run { p $debugging_info }
|
66
67
|
#
|
67
|
-
# source://minitest//lib/minitest.rb#
|
68
|
+
# source://minitest//lib/minitest.rb#96
|
68
69
|
def after_run(&block); end
|
69
70
|
|
70
71
|
# source://minitest//lib/minitest.rb#19
|
@@ -87,10 +88,10 @@ module Minitest
|
|
87
88
|
# source://minitest//lib/minitest.rb#18
|
88
89
|
def cattr_accessor(name); end
|
89
90
|
|
90
|
-
# source://minitest//lib/minitest.rb#
|
91
|
+
# source://minitest//lib/minitest.rb#1215
|
91
92
|
def clock_time; end
|
92
93
|
|
93
|
-
# source://minitest//lib/minitest.rb#
|
94
|
+
# source://minitest//lib/minitest.rb#302
|
94
95
|
def empty_run!(options); end
|
95
96
|
|
96
97
|
# source://minitest//lib/minitest.rb#19
|
@@ -99,7 +100,7 @@ module Minitest
|
|
99
100
|
# source://minitest//lib/minitest.rb#19
|
100
101
|
def extensions=(_arg0); end
|
101
102
|
|
102
|
-
# source://minitest//lib/minitest.rb#
|
103
|
+
# source://minitest//lib/minitest.rb#335
|
103
104
|
def filter_backtrace(bt); end
|
104
105
|
|
105
106
|
# source://minitest//lib/minitest.rb#19
|
@@ -108,7 +109,7 @@ module Minitest
|
|
108
109
|
# source://minitest//lib/minitest.rb#19
|
109
110
|
def info_signal=(_arg0); end
|
110
111
|
|
111
|
-
# source://minitest//lib/minitest.rb#
|
112
|
+
# source://minitest//lib/minitest.rb#124
|
112
113
|
def init_plugins(options); end
|
113
114
|
|
114
115
|
# source://minitest//lib/minitest.rb#108
|
@@ -120,9 +121,14 @@ module Minitest
|
|
120
121
|
# source://minitest//lib/minitest.rb#19
|
121
122
|
def parallel_executor=(_arg0); end
|
122
123
|
|
123
|
-
# source://minitest//lib/minitest.rb#
|
124
|
+
# source://minitest//lib/minitest.rb#142
|
124
125
|
def process_args(args = T.unsafe(nil)); end
|
125
126
|
|
127
|
+
# Register a plugin to be used. Does NOT require / load it.
|
128
|
+
#
|
129
|
+
# source://minitest//lib/minitest.rb#103
|
130
|
+
def register_plugin(name_or_mod); end
|
131
|
+
|
126
132
|
# source://minitest//lib/minitest.rb#19
|
127
133
|
def reporter; end
|
128
134
|
|
@@ -137,6 +143,9 @@ module Minitest
|
|
137
143
|
#
|
138
144
|
# Minitest.autorun
|
139
145
|
# Minitest.run(args)
|
146
|
+
# Minitest.load_plugins
|
147
|
+
# Minitest.process_args
|
148
|
+
# Minitest.init_plugins
|
140
149
|
# Minitest.__run(reporter, options)
|
141
150
|
# Runnable.runnables.each
|
142
151
|
# runnable_klass.run(reporter, options)
|
@@ -145,10 +154,10 @@ module Minitest
|
|
145
154
|
# Minitest.run_one_method(klass, runnable_method)
|
146
155
|
# klass.new(runnable_method).run
|
147
156
|
#
|
148
|
-
# source://minitest//lib/minitest.rb#
|
157
|
+
# source://minitest//lib/minitest.rb#268
|
149
158
|
def run(args = T.unsafe(nil)); end
|
150
159
|
|
151
|
-
# source://minitest//lib/minitest.rb#
|
160
|
+
# source://minitest//lib/minitest.rb#1206
|
152
161
|
def run_one_method(klass, method_name); end
|
153
162
|
|
154
163
|
# source://minitest//lib/minitest.rb#19
|
@@ -162,24 +171,24 @@ end
|
|
162
171
|
# Defines the API for Reporters. Subclass this and override whatever
|
163
172
|
# you want. Go nuts.
|
164
173
|
#
|
165
|
-
# source://minitest//lib/minitest.rb#
|
174
|
+
# source://minitest//lib/minitest.rb#686
|
166
175
|
class Minitest::AbstractReporter
|
167
176
|
# @return [AbstractReporter] a new instance of AbstractReporter
|
168
177
|
#
|
169
|
-
# source://minitest//lib/minitest.rb#
|
178
|
+
# source://minitest//lib/minitest.rb#688
|
170
179
|
def initialize; end
|
171
180
|
|
172
181
|
# Did this run pass?
|
173
182
|
#
|
174
183
|
# @return [Boolean]
|
175
184
|
#
|
176
|
-
# source://minitest//lib/minitest.rb#
|
185
|
+
# source://minitest//lib/minitest.rb#723
|
177
186
|
def passed?; end
|
178
187
|
|
179
188
|
# About to start running a test. This allows a reporter to show
|
180
189
|
# that it is starting or that we are in the middle of a test run.
|
181
190
|
#
|
182
|
-
# source://minitest//lib/minitest.rb#
|
191
|
+
# source://minitest//lib/minitest.rb#702
|
183
192
|
def prerecord(klass, name); end
|
184
193
|
|
185
194
|
# Output and record the result of the test. Call
|
@@ -187,43 +196,43 @@ class Minitest::AbstractReporter
|
|
187
196
|
# result character string. Stores the result of the run if the run
|
188
197
|
# did not pass.
|
189
198
|
#
|
190
|
-
# source://minitest//lib/minitest.rb#
|
199
|
+
# source://minitest//lib/minitest.rb#711
|
191
200
|
def record(result); end
|
192
201
|
|
193
202
|
# Outputs the summary of the run.
|
194
203
|
#
|
195
|
-
# source://minitest//lib/minitest.rb#
|
204
|
+
# source://minitest//lib/minitest.rb#717
|
196
205
|
def report; end
|
197
206
|
|
198
207
|
# Starts reporting on the run.
|
199
208
|
#
|
200
|
-
# source://minitest//lib/minitest.rb#
|
209
|
+
# source://minitest//lib/minitest.rb#695
|
201
210
|
def start; end
|
202
211
|
|
203
|
-
# source://minitest//lib/minitest.rb#
|
212
|
+
# source://minitest//lib/minitest.rb#727
|
204
213
|
def synchronize(&block); end
|
205
214
|
end
|
206
215
|
|
207
216
|
# Represents run failures.
|
208
217
|
#
|
209
|
-
# source://minitest//lib/minitest.rb#
|
218
|
+
# source://minitest//lib/minitest.rb#1019
|
210
219
|
class Minitest::Assertion < ::Exception
|
211
|
-
# source://minitest//lib/minitest.rb#
|
220
|
+
# source://minitest//lib/minitest.rb#1022
|
212
221
|
def error; end
|
213
222
|
|
214
223
|
# Where was this run before an assertion was raised?
|
215
224
|
#
|
216
|
-
# source://minitest//lib/minitest.rb#
|
225
|
+
# source://minitest//lib/minitest.rb#1029
|
217
226
|
def location; end
|
218
227
|
|
219
|
-
# source://minitest//lib/minitest.rb#
|
228
|
+
# source://minitest//lib/minitest.rb#1037
|
220
229
|
def result_code; end
|
221
230
|
|
222
|
-
# source://minitest//lib/minitest.rb#
|
231
|
+
# source://minitest//lib/minitest.rb#1041
|
223
232
|
def result_label; end
|
224
233
|
end
|
225
234
|
|
226
|
-
# source://minitest//lib/minitest.rb#
|
235
|
+
# source://minitest//lib/minitest.rb#1020
|
227
236
|
Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
|
228
237
|
|
229
238
|
# Minitest Assertions. All assertion methods accept a +msg+ which is
|
@@ -235,22 +244,22 @@ Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
|
|
235
244
|
# provided by the thing including Assertions. See Minitest::Runnable
|
236
245
|
# for an example.
|
237
246
|
#
|
238
|
-
# source://minitest//lib/minitest/assertions.rb#
|
247
|
+
# source://minitest//lib/minitest/assertions.rb#16
|
239
248
|
module Minitest::Assertions
|
240
|
-
# source://minitest//lib/minitest/assertions.rb#
|
249
|
+
# source://minitest//lib/minitest/assertions.rb#181
|
241
250
|
def _synchronize; end
|
242
251
|
|
243
|
-
# source://minitest//lib/minitest/assertions.rb#
|
252
|
+
# source://minitest//lib/minitest/assertions.rb#194
|
244
253
|
def _where; end
|
245
254
|
|
246
255
|
# Fails unless +test+ is truthy.
|
247
256
|
#
|
248
|
-
# source://minitest//lib/minitest/assertions.rb#
|
257
|
+
# source://minitest//lib/minitest/assertions.rb#171
|
249
258
|
def assert(test, msg = T.unsafe(nil)); end
|
250
259
|
|
251
260
|
# Fails unless +obj+ is empty.
|
252
261
|
#
|
253
|
-
# source://minitest//lib/minitest/assertions.rb#
|
262
|
+
# source://minitest//lib/minitest/assertions.rb#188
|
254
263
|
def assert_empty(obj, msg = T.unsafe(nil)); end
|
255
264
|
|
256
265
|
# Fails unless <tt>exp == act</tt> printing the difference between
|
@@ -265,7 +274,7 @@ module Minitest::Assertions
|
|
265
274
|
#
|
266
275
|
# See also: Minitest::Assertions.diff
|
267
276
|
#
|
268
|
-
# source://minitest//lib/minitest/assertions.rb#
|
277
|
+
# source://minitest//lib/minitest/assertions.rb#214
|
269
278
|
def assert_equal(exp, act, msg = T.unsafe(nil)); end
|
270
279
|
|
271
280
|
# For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
|
@@ -273,33 +282,33 @@ module Minitest::Assertions
|
|
273
282
|
#
|
274
283
|
# assert_in_delta Math::PI, (22.0 / 7.0), 0.01
|
275
284
|
#
|
276
|
-
# source://minitest//lib/minitest/assertions.rb#
|
285
|
+
# source://minitest//lib/minitest/assertions.rb#235
|
277
286
|
def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
|
278
287
|
|
279
288
|
# For comparing Floats. Fails unless +exp+ and +act+ have a relative
|
280
289
|
# error less than +epsilon+.
|
281
290
|
#
|
282
|
-
# source://minitest//lib/minitest/assertions.rb#
|
291
|
+
# source://minitest//lib/minitest/assertions.rb#247
|
283
292
|
def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
|
284
293
|
|
285
294
|
# Fails unless +collection+ includes +obj+.
|
286
295
|
#
|
287
|
-
# source://minitest//lib/minitest/assertions.rb#
|
296
|
+
# source://minitest//lib/minitest/assertions.rb#254
|
288
297
|
def assert_includes(collection, obj, msg = T.unsafe(nil)); end
|
289
298
|
|
290
299
|
# Fails unless +obj+ is an instance of +cls+.
|
291
300
|
#
|
292
|
-
# source://minitest//lib/minitest/assertions.rb#
|
301
|
+
# source://minitest//lib/minitest/assertions.rb#265
|
293
302
|
def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end
|
294
303
|
|
295
304
|
# Fails unless +obj+ is a kind of +cls+.
|
296
305
|
#
|
297
|
-
# source://minitest//lib/minitest/assertions.rb#
|
306
|
+
# source://minitest//lib/minitest/assertions.rb#276
|
298
307
|
def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end
|
299
308
|
|
300
309
|
# Fails unless +matcher+ <tt>=~</tt> +obj+.
|
301
310
|
#
|
302
|
-
# source://minitest//lib/minitest/assertions.rb#
|
311
|
+
# source://minitest//lib/minitest/assertions.rb#287
|
303
312
|
def assert_match(matcher, obj, msg = T.unsafe(nil)); end
|
304
313
|
|
305
314
|
# Assert that the mock verifies correctly.
|
@@ -309,14 +318,14 @@ module Minitest::Assertions
|
|
309
318
|
|
310
319
|
# Fails unless +obj+ is nil
|
311
320
|
#
|
312
|
-
# source://minitest//lib/minitest/assertions.rb#
|
321
|
+
# source://minitest//lib/minitest/assertions.rb#299
|
313
322
|
def assert_nil(obj, msg = T.unsafe(nil)); end
|
314
323
|
|
315
324
|
# For testing with binary operators. Eg:
|
316
325
|
#
|
317
326
|
# assert_operator 5, :<=, 4
|
318
327
|
#
|
319
|
-
# source://minitest//lib/minitest/assertions.rb#
|
328
|
+
# source://minitest//lib/minitest/assertions.rb#309
|
320
329
|
def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
|
321
330
|
|
322
331
|
# Fails if stdout or stderr do not output the expected results.
|
@@ -330,12 +339,12 @@ module Minitest::Assertions
|
|
330
339
|
#
|
331
340
|
# See also: #assert_silent
|
332
341
|
#
|
333
|
-
# source://minitest//lib/minitest/assertions.rb#
|
342
|
+
# source://minitest//lib/minitest/assertions.rb#327
|
334
343
|
def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end
|
335
344
|
|
336
345
|
# Fails unless +path+ exists.
|
337
346
|
#
|
338
|
-
# source://minitest//lib/minitest/assertions.rb#
|
347
|
+
# source://minitest//lib/minitest/assertions.rb#351
|
339
348
|
def assert_path_exists(path, msg = T.unsafe(nil)); end
|
340
349
|
|
341
350
|
# For testing with pattern matching (only supported with Ruby 3.0 and later)
|
@@ -353,7 +362,7 @@ module Minitest::Assertions
|
|
353
362
|
#
|
354
363
|
# @raise [NotImplementedError]
|
355
364
|
#
|
356
|
-
# source://minitest//lib/minitest/assertions.rb#
|
365
|
+
# source://minitest//lib/minitest/assertions.rb#370
|
357
366
|
def assert_pattern; end
|
358
367
|
|
359
368
|
# For testing with predicates. Eg:
|
@@ -364,7 +373,7 @@ module Minitest::Assertions
|
|
364
373
|
#
|
365
374
|
# str.must_be :empty?
|
366
375
|
#
|
367
|
-
# source://minitest//lib/minitest/assertions.rb#
|
376
|
+
# source://minitest//lib/minitest/assertions.rb#391
|
368
377
|
def assert_predicate(o1, op, msg = T.unsafe(nil)); end
|
369
378
|
|
370
379
|
# Fails unless the block raises one of +exp+. Returns the
|
@@ -388,37 +397,37 @@ module Minitest::Assertions
|
|
388
397
|
#
|
389
398
|
# assert_equal 'This is really bad', error.message
|
390
399
|
#
|
391
|
-
# source://minitest//lib/minitest/assertions.rb#
|
400
|
+
# source://minitest//lib/minitest/assertions.rb#418
|
392
401
|
def assert_raises(*exp); end
|
393
402
|
|
394
403
|
# Fails unless +obj+ responds to +meth+.
|
395
404
|
# include_all defaults to false to match Object#respond_to?
|
396
405
|
#
|
397
|
-
# source://minitest//lib/minitest/assertions.rb#
|
406
|
+
# source://minitest//lib/minitest/assertions.rb#450
|
398
407
|
def assert_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
|
399
408
|
|
400
409
|
# Fails unless +exp+ and +act+ are #equal?
|
401
410
|
#
|
402
|
-
# source://minitest//lib/minitest/assertions.rb#
|
411
|
+
# source://minitest//lib/minitest/assertions.rb#460
|
403
412
|
def assert_same(exp, act, msg = T.unsafe(nil)); end
|
404
413
|
|
405
414
|
# +send_ary+ is a receiver, message and arguments.
|
406
415
|
#
|
407
416
|
# Fails unless the call returns a true value
|
408
417
|
#
|
409
|
-
# source://minitest//lib/minitest/assertions.rb#
|
418
|
+
# source://minitest//lib/minitest/assertions.rb#473
|
410
419
|
def assert_send(send_ary, m = T.unsafe(nil)); end
|
411
420
|
|
412
421
|
# Fails if the block outputs anything to stderr or stdout.
|
413
422
|
#
|
414
423
|
# See also: #assert_output
|
415
424
|
#
|
416
|
-
# source://minitest//lib/minitest/assertions.rb#
|
425
|
+
# source://minitest//lib/minitest/assertions.rb#488
|
417
426
|
def assert_silent; end
|
418
427
|
|
419
428
|
# Fails unless the block throws +sym+
|
420
429
|
#
|
421
|
-
# source://minitest//lib/minitest/assertions.rb#
|
430
|
+
# source://minitest//lib/minitest/assertions.rb#497
|
422
431
|
def assert_throws(sym, msg = T.unsafe(nil)); end
|
423
432
|
|
424
433
|
# Captures $stdout and $stderr into strings:
|
@@ -435,7 +444,7 @@ module Minitest::Assertions
|
|
435
444
|
# capture IO for subprocesses. Use #capture_subprocess_io for
|
436
445
|
# that.
|
437
446
|
#
|
438
|
-
# source://minitest//lib/minitest/assertions.rb#
|
447
|
+
# source://minitest//lib/minitest/assertions.rb#538
|
439
448
|
def capture_io; end
|
440
449
|
|
441
450
|
# Captures $stdout and $stderr into strings, using Tempfile to
|
@@ -452,7 +461,7 @@ module Minitest::Assertions
|
|
452
461
|
# NOTE: This method is approximately 10x slower than #capture_io so
|
453
462
|
# only use it when you need to test the output of a subprocess.
|
454
463
|
#
|
455
|
-
# source://minitest//lib/minitest/assertions.rb#
|
464
|
+
# source://minitest//lib/minitest/assertions.rb#571
|
456
465
|
def capture_subprocess_io; end
|
457
466
|
|
458
467
|
# Returns a diff between +exp+ and +act+. If there is no known
|
@@ -462,29 +471,29 @@ module Minitest::Assertions
|
|
462
471
|
#
|
463
472
|
# See +things_to_diff+ for more info.
|
464
473
|
#
|
465
|
-
# source://minitest//lib/minitest/assertions.rb#
|
474
|
+
# source://minitest//lib/minitest/assertions.rb#57
|
466
475
|
def diff(exp, act); end
|
467
476
|
|
468
477
|
# Returns details for exception +e+
|
469
478
|
#
|
470
|
-
# source://minitest//lib/minitest/assertions.rb#
|
479
|
+
# source://minitest//lib/minitest/assertions.rb#603
|
471
480
|
def exception_details(e, msg); end
|
472
481
|
|
473
482
|
# Fails after a given date (in the local time zone). This allows
|
474
483
|
# you to put time-bombs in your tests if you need to keep
|
475
484
|
# something around until a later date lest you forget about it.
|
476
485
|
#
|
477
|
-
# source://minitest//lib/minitest/assertions.rb#
|
486
|
+
# source://minitest//lib/minitest/assertions.rb#619
|
478
487
|
def fail_after(y, m, d, msg); end
|
479
488
|
|
480
489
|
# Fails with +msg+.
|
481
490
|
#
|
482
|
-
# source://minitest//lib/minitest/assertions.rb#
|
491
|
+
# source://minitest//lib/minitest/assertions.rb#626
|
483
492
|
def flunk(msg = T.unsafe(nil)); end
|
484
493
|
|
485
494
|
# Returns a proc that will output +msg+ along with the default message.
|
486
495
|
#
|
487
|
-
# source://minitest//lib/minitest/assertions.rb#
|
496
|
+
# source://minitest//lib/minitest/assertions.rb#634
|
488
497
|
def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end
|
489
498
|
|
490
499
|
# This returns a human-readable version of +obj+. By default
|
@@ -493,7 +502,7 @@ module Minitest::Assertions
|
|
493
502
|
#
|
494
503
|
# See Minitest::Test.make_my_diffs_pretty!
|
495
504
|
#
|
496
|
-
# source://minitest//lib/minitest/assertions.rb#
|
505
|
+
# source://minitest//lib/minitest/assertions.rb#127
|
497
506
|
def mu_pp(obj); end
|
498
507
|
|
499
508
|
# This returns a diff-able more human-readable version of +obj+.
|
@@ -501,67 +510,67 @@ module Minitest::Assertions
|
|
501
510
|
# newlines and makes hex-values (like object_ids) generic. This
|
502
511
|
# uses mu_pp to do the first pass and then cleans it up.
|
503
512
|
#
|
504
|
-
# source://minitest//lib/minitest/assertions.rb#
|
513
|
+
# source://minitest//lib/minitest/assertions.rb#145
|
505
514
|
def mu_pp_for_diff(obj); end
|
506
515
|
|
507
516
|
# used for counting assertions
|
508
517
|
#
|
509
|
-
# source://minitest//lib/minitest/assertions.rb#
|
518
|
+
# source://minitest//lib/minitest/assertions.rb#645
|
510
519
|
def pass(_msg = T.unsafe(nil)); end
|
511
520
|
|
512
521
|
# Fails if +test+ is truthy.
|
513
522
|
#
|
514
|
-
# source://minitest//lib/minitest/assertions.rb#
|
523
|
+
# source://minitest//lib/minitest/assertions.rb#652
|
515
524
|
def refute(test, msg = T.unsafe(nil)); end
|
516
525
|
|
517
526
|
# Fails if +obj+ is empty.
|
518
527
|
#
|
519
|
-
# source://minitest//lib/minitest/assertions.rb#
|
528
|
+
# source://minitest//lib/minitest/assertions.rb#660
|
520
529
|
def refute_empty(obj, msg = T.unsafe(nil)); end
|
521
530
|
|
522
531
|
# Fails if <tt>exp == act</tt>.
|
523
532
|
#
|
524
533
|
# For floats use refute_in_delta.
|
525
534
|
#
|
526
|
-
# source://minitest//lib/minitest/assertions.rb#
|
535
|
+
# source://minitest//lib/minitest/assertions.rb#671
|
527
536
|
def refute_equal(exp, act, msg = T.unsafe(nil)); end
|
528
537
|
|
529
538
|
# For comparing Floats. Fails if +exp+ is within +delta+ of +act+.
|
530
539
|
#
|
531
540
|
# refute_in_delta Math::PI, (22.0 / 7.0)
|
532
541
|
#
|
533
|
-
# source://minitest//lib/minitest/assertions.rb#
|
542
|
+
# source://minitest//lib/minitest/assertions.rb#683
|
534
543
|
def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
|
535
544
|
|
536
545
|
# For comparing Floats. Fails if +exp+ and +act+ have a relative error
|
537
546
|
# less than +epsilon+.
|
538
547
|
#
|
539
|
-
# source://minitest//lib/minitest/assertions.rb#
|
548
|
+
# source://minitest//lib/minitest/assertions.rb#695
|
540
549
|
def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
|
541
550
|
|
542
551
|
# Fails if +collection+ includes +obj+.
|
543
552
|
#
|
544
|
-
# source://minitest//lib/minitest/assertions.rb#
|
553
|
+
# source://minitest//lib/minitest/assertions.rb#702
|
545
554
|
def refute_includes(collection, obj, msg = T.unsafe(nil)); end
|
546
555
|
|
547
556
|
# Fails if +obj+ is an instance of +cls+.
|
548
557
|
#
|
549
|
-
# source://minitest//lib/minitest/assertions.rb#
|
558
|
+
# source://minitest//lib/minitest/assertions.rb#713
|
550
559
|
def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end
|
551
560
|
|
552
561
|
# Fails if +obj+ is a kind of +cls+.
|
553
562
|
#
|
554
|
-
# source://minitest//lib/minitest/assertions.rb#
|
563
|
+
# source://minitest//lib/minitest/assertions.rb#723
|
555
564
|
def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end
|
556
565
|
|
557
566
|
# Fails if +matcher+ <tt>=~</tt> +obj+.
|
558
567
|
#
|
559
|
-
# source://minitest//lib/minitest/assertions.rb#
|
568
|
+
# source://minitest//lib/minitest/assertions.rb#731
|
560
569
|
def refute_match(matcher, obj, msg = T.unsafe(nil)); end
|
561
570
|
|
562
571
|
# Fails if +obj+ is nil.
|
563
572
|
#
|
564
|
-
# source://minitest//lib/minitest/assertions.rb#
|
573
|
+
# source://minitest//lib/minitest/assertions.rb#741
|
565
574
|
def refute_nil(obj, msg = T.unsafe(nil)); end
|
566
575
|
|
567
576
|
# Fails if +o1+ is not +op+ +o2+. Eg:
|
@@ -569,12 +578,12 @@ module Minitest::Assertions
|
|
569
578
|
# refute_operator 1, :>, 2 #=> pass
|
570
579
|
# refute_operator 1, :<, 2 #=> fail
|
571
580
|
#
|
572
|
-
# source://minitest//lib/minitest/assertions.rb#
|
581
|
+
# source://minitest//lib/minitest/assertions.rb#776
|
573
582
|
def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
|
574
583
|
|
575
584
|
# Fails if +path+ exists.
|
576
585
|
#
|
577
|
-
# source://minitest//lib/minitest/assertions.rb#
|
586
|
+
# source://minitest//lib/minitest/assertions.rb#785
|
578
587
|
def refute_path_exists(path, msg = T.unsafe(nil)); end
|
579
588
|
|
580
589
|
# For testing with pattern matching (only supported with Ruby 3.0 and later)
|
@@ -590,7 +599,7 @@ module Minitest::Assertions
|
|
590
599
|
#
|
591
600
|
# @raise [NotImplementedError]
|
592
601
|
#
|
593
|
-
# source://minitest//lib/minitest/assertions.rb#
|
602
|
+
# source://minitest//lib/minitest/assertions.rb#758
|
594
603
|
def refute_pattern; end
|
595
604
|
|
596
605
|
# For testing with predicates.
|
@@ -601,18 +610,18 @@ module Minitest::Assertions
|
|
601
610
|
#
|
602
611
|
# str.wont_be :empty?
|
603
612
|
#
|
604
|
-
# source://minitest//lib/minitest/assertions.rb#
|
613
|
+
# source://minitest//lib/minitest/assertions.rb#799
|
605
614
|
def refute_predicate(o1, op, msg = T.unsafe(nil)); end
|
606
615
|
|
607
616
|
# Fails if +obj+ responds to the message +meth+.
|
608
617
|
# include_all defaults to false to match Object#respond_to?
|
609
618
|
#
|
610
|
-
# source://minitest//lib/minitest/assertions.rb#
|
619
|
+
# source://minitest//lib/minitest/assertions.rb#808
|
611
620
|
def refute_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
|
612
621
|
|
613
622
|
# Fails if +exp+ is the same (by object identity) as +act+.
|
614
623
|
#
|
615
|
-
# source://minitest//lib/minitest/assertions.rb#
|
624
|
+
# source://minitest//lib/minitest/assertions.rb#817
|
616
625
|
def refute_same(exp, act, msg = T.unsafe(nil)); end
|
617
626
|
|
618
627
|
# Skips the current run. If run in verbose-mode, the skipped run
|
@@ -621,7 +630,7 @@ module Minitest::Assertions
|
|
621
630
|
#
|
622
631
|
# @raise [Minitest::Skip]
|
623
632
|
#
|
624
|
-
# source://minitest//lib/minitest/assertions.rb#
|
633
|
+
# source://minitest//lib/minitest/assertions.rb#830
|
625
634
|
def skip(msg = T.unsafe(nil), _ignored = T.unsafe(nil)); end
|
626
635
|
|
627
636
|
# Skips the current run until a given date (in the local time
|
@@ -629,14 +638,14 @@ module Minitest::Assertions
|
|
629
638
|
# date, but still holds you accountable and prevents you from
|
630
639
|
# forgetting it.
|
631
640
|
#
|
632
|
-
# source://minitest//lib/minitest/assertions.rb#
|
641
|
+
# source://minitest//lib/minitest/assertions.rb#842
|
633
642
|
def skip_until(y, m, d, msg); end
|
634
643
|
|
635
644
|
# Was this testcase skipped? Meant for #teardown.
|
636
645
|
#
|
637
646
|
# @return [Boolean]
|
638
647
|
#
|
639
|
-
# source://minitest//lib/minitest/assertions.rb#
|
648
|
+
# source://minitest//lib/minitest/assertions.rb#851
|
640
649
|
def skipped?; end
|
641
650
|
|
642
651
|
# Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff.
|
@@ -648,104 +657,102 @@ module Minitest::Assertions
|
|
648
657
|
# 3. or: Strings are equal to each other (but maybe different encodings?).
|
649
658
|
# 4. and: we found a diff executable.
|
650
659
|
#
|
651
|
-
# source://minitest//lib/minitest/assertions.rb#
|
660
|
+
# source://minitest//lib/minitest/assertions.rb#102
|
652
661
|
def things_to_diff(exp, act); end
|
653
662
|
|
654
663
|
class << self
|
655
664
|
# Returns the diff command to use in #diff. Tries to intelligently
|
656
665
|
# figure out what diff to use.
|
657
666
|
#
|
658
|
-
# source://minitest//lib/minitest/assertions.rb#
|
667
|
+
# source://minitest//lib/minitest/assertions.rb#27
|
659
668
|
def diff; end
|
660
669
|
|
661
670
|
# Set the diff command to use in #diff.
|
662
671
|
#
|
663
|
-
# source://minitest//lib/minitest/assertions.rb#
|
672
|
+
# source://minitest//lib/minitest/assertions.rb#45
|
664
673
|
def diff=(o); end
|
665
674
|
end
|
666
675
|
end
|
667
676
|
|
668
|
-
# source://minitest//lib/minitest/assertions.rb#
|
677
|
+
# source://minitest//lib/minitest/assertions.rb#199
|
669
678
|
Minitest::Assertions::E = T.let(T.unsafe(nil), String)
|
670
679
|
|
671
|
-
# source://minitest//lib/minitest/assertions.rb#
|
680
|
+
# source://minitest//lib/minitest/assertions.rb#17
|
672
681
|
Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
|
673
682
|
|
674
683
|
# The standard backtrace filter for minitest.
|
675
684
|
#
|
676
685
|
# See Minitest.backtrace_filter=.
|
677
686
|
#
|
678
|
-
# source://minitest//lib/minitest.rb#
|
687
|
+
# source://minitest//lib/minitest.rb#1174
|
679
688
|
class Minitest::BacktraceFilter
|
680
689
|
# @return [BacktraceFilter] a new instance of BacktraceFilter
|
681
690
|
#
|
682
|
-
# source://minitest//lib/minitest.rb#
|
691
|
+
# source://minitest//lib/minitest.rb#1183
|
683
692
|
def initialize(regexp = T.unsafe(nil)); end
|
684
693
|
|
685
694
|
# Filter +bt+ to something useful. Returns the whole thing if
|
686
695
|
# $DEBUG (ruby) or $MT_DEBUG (env).
|
687
696
|
#
|
688
|
-
# source://minitest//lib/minitest.rb#
|
697
|
+
# source://minitest//lib/minitest.rb#1191
|
689
698
|
def filter(bt); end
|
690
699
|
|
691
|
-
#
|
700
|
+
# The regular expression to use to filter backtraces. Defaults to +MT_RE+.
|
692
701
|
#
|
693
|
-
# source://minitest//lib/minitest.rb#
|
702
|
+
# source://minitest//lib/minitest.rb#1181
|
694
703
|
def regexp; end
|
695
704
|
|
696
|
-
#
|
697
|
-
#
|
698
|
-
# @param value the value to set the attribute regexp to.
|
705
|
+
# The regular expression to use to filter backtraces. Defaults to +MT_RE+.
|
699
706
|
#
|
700
|
-
# source://minitest//lib/minitest.rb#
|
707
|
+
# source://minitest//lib/minitest.rb#1181
|
701
708
|
def regexp=(_arg0); end
|
702
709
|
end
|
703
710
|
|
704
|
-
# source://minitest//lib/minitest.rb#
|
711
|
+
# source://minitest//lib/minitest.rb#1176
|
705
712
|
Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
|
706
713
|
|
707
714
|
# Dispatch to multiple reporters as one.
|
708
715
|
#
|
709
|
-
# source://minitest//lib/minitest.rb#
|
716
|
+
# source://minitest//lib/minitest.rb#968
|
710
717
|
class Minitest::CompositeReporter < ::Minitest::AbstractReporter
|
711
718
|
# @return [CompositeReporter] a new instance of CompositeReporter
|
712
719
|
#
|
713
|
-
# source://minitest//lib/minitest.rb#
|
720
|
+
# source://minitest//lib/minitest.rb#974
|
714
721
|
def initialize(*reporters); end
|
715
722
|
|
716
723
|
# Add another reporter to the mix.
|
717
724
|
#
|
718
|
-
# source://minitest//lib/minitest.rb#
|
725
|
+
# source://minitest//lib/minitest.rb#986
|
719
726
|
def <<(reporter); end
|
720
727
|
|
721
|
-
# source://minitest//lib/minitest.rb#
|
728
|
+
# source://minitest//lib/minitest.rb#979
|
722
729
|
def io; end
|
723
730
|
|
724
731
|
# @return [Boolean]
|
725
732
|
#
|
726
|
-
# source://minitest//lib/minitest.rb#
|
733
|
+
# source://minitest//lib/minitest.rb#990
|
727
734
|
def passed?; end
|
728
735
|
|
729
|
-
# source://minitest//lib/minitest.rb#
|
736
|
+
# source://minitest//lib/minitest.rb#998
|
730
737
|
def prerecord(klass, name); end
|
731
738
|
|
732
|
-
# source://minitest//lib/minitest.rb#
|
739
|
+
# source://minitest//lib/minitest.rb#1005
|
733
740
|
def record(result); end
|
734
741
|
|
735
|
-
# source://minitest//lib/minitest.rb#
|
742
|
+
# source://minitest//lib/minitest.rb#1011
|
736
743
|
def report; end
|
737
744
|
|
738
745
|
# The list of reporters to dispatch to.
|
739
746
|
#
|
740
|
-
# source://minitest//lib/minitest.rb#
|
747
|
+
# source://minitest//lib/minitest.rb#972
|
741
748
|
def reporters; end
|
742
749
|
|
743
750
|
# The list of reporters to dispatch to.
|
744
751
|
#
|
745
|
-
# source://minitest//lib/minitest.rb#
|
752
|
+
# source://minitest//lib/minitest.rb#972
|
746
753
|
def reporters=(_arg0); end
|
747
754
|
|
748
|
-
# source://minitest//lib/minitest.rb#
|
755
|
+
# source://minitest//lib/minitest.rb#994
|
749
756
|
def start; end
|
750
757
|
end
|
751
758
|
|
@@ -1016,48 +1023,48 @@ end
|
|
1016
1023
|
# # ... lots of test methods ...
|
1017
1024
|
# end
|
1018
1025
|
#
|
1019
|
-
# source://minitest//lib/minitest.rb#
|
1026
|
+
# source://minitest//lib/minitest.rb#1118
|
1020
1027
|
module Minitest::Guard
|
1021
1028
|
# Is this running on jruby?
|
1022
1029
|
#
|
1023
1030
|
# @return [Boolean]
|
1024
1031
|
#
|
1025
|
-
# source://minitest//lib/minitest.rb#
|
1032
|
+
# source://minitest//lib/minitest.rb#1123
|
1026
1033
|
def jruby?(platform = T.unsafe(nil)); end
|
1027
1034
|
|
1028
1035
|
# Is this running on maglev?
|
1029
1036
|
#
|
1030
1037
|
# @return [Boolean]
|
1031
1038
|
#
|
1032
|
-
# source://minitest//lib/minitest.rb#
|
1039
|
+
# source://minitest//lib/minitest.rb#1130
|
1033
1040
|
def maglev?(platform = T.unsafe(nil)); end
|
1034
1041
|
|
1035
1042
|
# Is this running on mri?
|
1036
1043
|
#
|
1037
1044
|
# @return [Boolean]
|
1038
1045
|
#
|
1039
|
-
# source://minitest//lib/minitest.rb#
|
1046
|
+
# source://minitest//lib/minitest.rb#1140
|
1040
1047
|
def mri?(platform = T.unsafe(nil)); end
|
1041
1048
|
|
1042
1049
|
# Is this running on macOS?
|
1043
1050
|
#
|
1044
1051
|
# @return [Boolean]
|
1045
1052
|
#
|
1046
|
-
# source://minitest//lib/minitest.rb#
|
1053
|
+
# source://minitest//lib/minitest.rb#1147
|
1047
1054
|
def osx?(platform = T.unsafe(nil)); end
|
1048
1055
|
|
1049
1056
|
# Is this running on rubinius?
|
1050
1057
|
#
|
1051
1058
|
# @return [Boolean]
|
1052
1059
|
#
|
1053
|
-
# source://minitest//lib/minitest.rb#
|
1060
|
+
# source://minitest//lib/minitest.rb#1154
|
1054
1061
|
def rubinius?(platform = T.unsafe(nil)); end
|
1055
1062
|
|
1056
1063
|
# Is this running on windows?
|
1057
1064
|
#
|
1058
1065
|
# @return [Boolean]
|
1059
1066
|
#
|
1060
|
-
# source://minitest//lib/minitest.rb#
|
1067
|
+
# source://minitest//lib/minitest.rb#1164
|
1061
1068
|
def windows?(platform = T.unsafe(nil)); end
|
1062
1069
|
end
|
1063
1070
|
|
@@ -1220,36 +1227,36 @@ end
|
|
1220
1227
|
# plugin, pull this out of the composite and replace it with your
|
1221
1228
|
# own.
|
1222
1229
|
#
|
1223
|
-
# source://minitest//lib/minitest.rb#
|
1230
|
+
# source://minitest//lib/minitest.rb#758
|
1224
1231
|
class Minitest::ProgressReporter < ::Minitest::Reporter
|
1225
|
-
# source://minitest//lib/minitest.rb#
|
1232
|
+
# source://minitest//lib/minitest.rb#759
|
1226
1233
|
def prerecord(klass, name); end
|
1227
1234
|
|
1228
|
-
# source://minitest//lib/minitest.rb#
|
1235
|
+
# source://minitest//lib/minitest.rb#766
|
1229
1236
|
def record(result); end
|
1230
1237
|
end
|
1231
1238
|
|
1232
1239
|
# Shared code for anything that can get passed to a Reporter. See
|
1233
1240
|
# Minitest::Test & Minitest::Result.
|
1234
1241
|
#
|
1235
|
-
# source://minitest//lib/minitest.rb#
|
1242
|
+
# source://minitest//lib/minitest.rb#580
|
1236
1243
|
module Minitest::Reportable
|
1237
1244
|
# @raise [NotImplementedError]
|
1238
1245
|
#
|
1239
|
-
# source://minitest//lib/minitest.rb#
|
1246
|
+
# source://minitest//lib/minitest.rb#602
|
1240
1247
|
def class_name; end
|
1241
1248
|
|
1242
1249
|
# Did this run error?
|
1243
1250
|
#
|
1244
1251
|
# @return [Boolean]
|
1245
1252
|
#
|
1246
|
-
# source://minitest//lib/minitest.rb#
|
1253
|
+
# source://minitest//lib/minitest.rb#623
|
1247
1254
|
def error?; end
|
1248
1255
|
|
1249
1256
|
# The location identifier of this test. Depends on a method
|
1250
1257
|
# existing called class_name.
|
1251
1258
|
#
|
1252
|
-
# source://minitest//lib/minitest.rb#
|
1259
|
+
# source://minitest//lib/minitest.rb#597
|
1253
1260
|
def location; end
|
1254
1261
|
|
1255
1262
|
# Did this run pass?
|
@@ -1259,50 +1266,50 @@ module Minitest::Reportable
|
|
1259
1266
|
#
|
1260
1267
|
# @return [Boolean]
|
1261
1268
|
#
|
1262
|
-
# source://minitest//lib/minitest.rb#
|
1269
|
+
# source://minitest//lib/minitest.rb#587
|
1263
1270
|
def passed?; end
|
1264
1271
|
|
1265
1272
|
# Returns ".", "F", or "E" based on the result of the run.
|
1266
1273
|
#
|
1267
|
-
# source://minitest//lib/minitest.rb#
|
1274
|
+
# source://minitest//lib/minitest.rb#609
|
1268
1275
|
def result_code; end
|
1269
1276
|
|
1270
1277
|
# Was this run skipped?
|
1271
1278
|
#
|
1272
1279
|
# @return [Boolean]
|
1273
1280
|
#
|
1274
|
-
# source://minitest//lib/minitest.rb#
|
1281
|
+
# source://minitest//lib/minitest.rb#616
|
1275
1282
|
def skipped?; end
|
1276
1283
|
end
|
1277
1284
|
|
1278
|
-
# source://minitest//lib/minitest.rb#
|
1285
|
+
# source://minitest//lib/minitest.rb#591
|
1279
1286
|
Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
|
1280
1287
|
|
1281
|
-
# source://minitest//lib/minitest.rb#
|
1288
|
+
# source://minitest//lib/minitest.rb#734
|
1282
1289
|
class Minitest::Reporter < ::Minitest::AbstractReporter
|
1283
1290
|
# @return [Reporter] a new instance of Reporter
|
1284
1291
|
#
|
1285
|
-
# source://minitest//lib/minitest.rb#
|
1292
|
+
# source://minitest//lib/minitest.rb#743
|
1286
1293
|
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
|
1287
1294
|
|
1288
1295
|
# The IO used to report.
|
1289
1296
|
#
|
1290
|
-
# source://minitest//lib/minitest.rb#
|
1297
|
+
# source://minitest//lib/minitest.rb#736
|
1291
1298
|
def io; end
|
1292
1299
|
|
1293
1300
|
# The IO used to report.
|
1294
1301
|
#
|
1295
|
-
# source://minitest//lib/minitest.rb#
|
1302
|
+
# source://minitest//lib/minitest.rb#736
|
1296
1303
|
def io=(_arg0); end
|
1297
1304
|
|
1298
1305
|
# Command-line options for this run.
|
1299
1306
|
#
|
1300
|
-
# source://minitest//lib/minitest.rb#
|
1307
|
+
# source://minitest//lib/minitest.rb#741
|
1301
1308
|
def options; end
|
1302
1309
|
|
1303
1310
|
# Command-line options for this run.
|
1304
1311
|
#
|
1305
|
-
# source://minitest//lib/minitest.rb#
|
1312
|
+
# source://minitest//lib/minitest.rb#741
|
1306
1313
|
def options=(_arg0); end
|
1307
1314
|
end
|
1308
1315
|
|
@@ -1312,80 +1319,80 @@ end
|
|
1312
1319
|
# blow up. By using Result.from(a_test) you can be reasonably sure
|
1313
1320
|
# that the test result can be marshalled.
|
1314
1321
|
#
|
1315
|
-
# source://minitest//lib/minitest.rb#
|
1322
|
+
# source://minitest//lib/minitest.rb#635
|
1316
1323
|
class Minitest::Result < ::Minitest::Runnable
|
1317
1324
|
include ::Minitest::Reportable
|
1318
1325
|
|
1319
|
-
# source://minitest//lib/minitest.rb#
|
1326
|
+
# source://minitest//lib/minitest.rb#669
|
1320
1327
|
def class_name; end
|
1321
1328
|
|
1322
1329
|
# The class name of the test result.
|
1323
1330
|
#
|
1324
|
-
# source://minitest//lib/minitest.rb#
|
1331
|
+
# source://minitest//lib/minitest.rb#644
|
1325
1332
|
def klass; end
|
1326
1333
|
|
1327
1334
|
# The class name of the test result.
|
1328
1335
|
#
|
1329
|
-
# source://minitest//lib/minitest.rb#
|
1336
|
+
# source://minitest//lib/minitest.rb#644
|
1330
1337
|
def klass=(_arg0); end
|
1331
1338
|
|
1332
1339
|
# The location of the test method.
|
1333
1340
|
#
|
1334
|
-
# source://minitest//lib/minitest.rb#
|
1341
|
+
# source://minitest//lib/minitest.rb#649
|
1335
1342
|
def source_location; end
|
1336
1343
|
|
1337
1344
|
# The location of the test method.
|
1338
1345
|
#
|
1339
|
-
# source://minitest//lib/minitest.rb#
|
1346
|
+
# source://minitest//lib/minitest.rb#649
|
1340
1347
|
def source_location=(_arg0); end
|
1341
1348
|
|
1342
|
-
# source://minitest//lib/minitest.rb#
|
1349
|
+
# source://minitest//lib/minitest.rb#673
|
1343
1350
|
def to_s; end
|
1344
1351
|
|
1345
1352
|
class << self
|
1346
1353
|
# Create a new test result from a Runnable instance.
|
1347
1354
|
#
|
1348
|
-
# source://minitest//lib/minitest.rb#
|
1355
|
+
# source://minitest//lib/minitest.rb#654
|
1349
1356
|
def from(runnable); end
|
1350
1357
|
end
|
1351
1358
|
end
|
1352
1359
|
|
1353
1360
|
# re-open
|
1354
1361
|
#
|
1355
|
-
# source://minitest//lib/minitest.rb#
|
1362
|
+
# source://minitest//lib/minitest.rb#348
|
1356
1363
|
class Minitest::Runnable
|
1357
1364
|
# @return [Runnable] a new instance of Runnable
|
1358
1365
|
#
|
1359
|
-
# source://minitest//lib/minitest.rb#
|
1366
|
+
# source://minitest//lib/minitest.rb#511
|
1360
1367
|
def initialize(name); end
|
1361
1368
|
|
1362
1369
|
# Number of assertions executed in this run.
|
1363
1370
|
#
|
1364
|
-
# source://minitest//lib/minitest.rb#
|
1371
|
+
# source://minitest//lib/minitest.rb#352
|
1365
1372
|
def assertions; end
|
1366
1373
|
|
1367
1374
|
# Number of assertions executed in this run.
|
1368
1375
|
#
|
1369
|
-
# source://minitest//lib/minitest.rb#
|
1376
|
+
# source://minitest//lib/minitest.rb#352
|
1370
1377
|
def assertions=(_arg0); end
|
1371
1378
|
|
1372
|
-
# source://minitest//lib/minitest.rb#
|
1379
|
+
# source://minitest//lib/minitest.rb#507
|
1373
1380
|
def failure; end
|
1374
1381
|
|
1375
1382
|
# An assertion raised during the run, if any.
|
1376
1383
|
#
|
1377
|
-
# source://minitest//lib/minitest.rb#
|
1384
|
+
# source://minitest//lib/minitest.rb#357
|
1378
1385
|
def failures; end
|
1379
1386
|
|
1380
1387
|
# An assertion raised during the run, if any.
|
1381
1388
|
#
|
1382
|
-
# source://minitest//lib/minitest.rb#
|
1389
|
+
# source://minitest//lib/minitest.rb#357
|
1383
1390
|
def failures=(_arg0); end
|
1384
1391
|
|
1385
|
-
# source://minitest//lib/minitest.rb#
|
1392
|
+
# source://minitest//lib/minitest.rb#493
|
1386
1393
|
def marshal_dump; end
|
1387
1394
|
|
1388
|
-
# source://minitest//lib/minitest.rb#
|
1395
|
+
# source://minitest//lib/minitest.rb#503
|
1389
1396
|
def marshal_load(ary); end
|
1390
1397
|
|
1391
1398
|
# Metadata you attach to the test results that get sent to the reporter.
|
@@ -1395,29 +1402,29 @@ class Minitest::Runnable
|
|
1395
1402
|
# NOTE: this data *must* be plain (read: marshal-able) data!
|
1396
1403
|
# Hashes! Arrays! Strings!
|
1397
1404
|
#
|
1398
|
-
# source://minitest//lib/minitest.rb#
|
1405
|
+
# source://minitest//lib/minitest.rb#526
|
1399
1406
|
def metadata; end
|
1400
1407
|
|
1401
1408
|
# Sets metadata, mainly used for +Result.from+.
|
1402
1409
|
#
|
1403
|
-
# source://minitest//lib/minitest.rb#
|
1410
|
+
# source://minitest//lib/minitest.rb#533
|
1404
1411
|
def metadata=(_arg0); end
|
1405
1412
|
|
1406
1413
|
# Returns true if metadata exists.
|
1407
1414
|
#
|
1408
1415
|
# @return [Boolean]
|
1409
1416
|
#
|
1410
|
-
# source://minitest//lib/minitest.rb#
|
1417
|
+
# source://minitest//lib/minitest.rb#538
|
1411
1418
|
def metadata?; end
|
1412
1419
|
|
1413
1420
|
# Name of the run.
|
1414
1421
|
#
|
1415
|
-
# source://minitest//lib/minitest.rb#
|
1422
|
+
# source://minitest//lib/minitest.rb#375
|
1416
1423
|
def name; end
|
1417
1424
|
|
1418
1425
|
# Set the name of the run.
|
1419
1426
|
#
|
1420
|
-
# source://minitest//lib/minitest.rb#
|
1427
|
+
# source://minitest//lib/minitest.rb#382
|
1421
1428
|
def name=(o); end
|
1422
1429
|
|
1423
1430
|
# Did this run pass?
|
@@ -1428,7 +1435,7 @@ class Minitest::Runnable
|
|
1428
1435
|
# @raise [NotImplementedError]
|
1429
1436
|
# @return [Boolean]
|
1430
1437
|
#
|
1431
|
-
# source://minitest//lib/minitest.rb#
|
1438
|
+
# source://minitest//lib/minitest.rb#555
|
1432
1439
|
def passed?; end
|
1433
1440
|
|
1434
1441
|
# Returns a single character string to print based on the result
|
@@ -1437,14 +1444,14 @@ class Minitest::Runnable
|
|
1437
1444
|
#
|
1438
1445
|
# @raise [NotImplementedError]
|
1439
1446
|
#
|
1440
|
-
# source://minitest//lib/minitest.rb#
|
1447
|
+
# source://minitest//lib/minitest.rb#564
|
1441
1448
|
def result_code; end
|
1442
1449
|
|
1443
1450
|
# Runs a single method. Needs to return self.
|
1444
1451
|
#
|
1445
1452
|
# @raise [NotImplementedError]
|
1446
1453
|
#
|
1447
|
-
# source://minitest//lib/minitest.rb#
|
1454
|
+
# source://minitest//lib/minitest.rb#545
|
1448
1455
|
def run; end
|
1449
1456
|
|
1450
1457
|
# Was this run skipped? See #passed? for more information.
|
@@ -1452,42 +1459,42 @@ class Minitest::Runnable
|
|
1452
1459
|
# @raise [NotImplementedError]
|
1453
1460
|
# @return [Boolean]
|
1454
1461
|
#
|
1455
|
-
# source://minitest//lib/minitest.rb#
|
1462
|
+
# source://minitest//lib/minitest.rb#571
|
1456
1463
|
def skipped?; end
|
1457
1464
|
|
1458
1465
|
# The time it took to run.
|
1459
1466
|
#
|
1460
|
-
# source://minitest//lib/minitest.rb#
|
1467
|
+
# source://minitest//lib/minitest.rb#362
|
1461
1468
|
def time; end
|
1462
1469
|
|
1463
1470
|
# The time it took to run.
|
1464
1471
|
#
|
1465
|
-
# source://minitest//lib/minitest.rb#
|
1472
|
+
# source://minitest//lib/minitest.rb#362
|
1466
1473
|
def time=(_arg0); end
|
1467
1474
|
|
1468
|
-
# source://minitest//lib/minitest.rb#
|
1475
|
+
# source://minitest//lib/minitest.rb#364
|
1469
1476
|
def time_it; end
|
1470
1477
|
|
1471
1478
|
class << self
|
1472
|
-
# source://minitest//lib/minitest.rb#
|
1479
|
+
# source://minitest//lib/minitest.rb#1225
|
1473
1480
|
def inherited(klass); end
|
1474
1481
|
|
1475
1482
|
# Returns all instance methods matching the pattern +re+.
|
1476
1483
|
#
|
1477
|
-
# source://minitest//lib/minitest.rb#
|
1484
|
+
# source://minitest//lib/minitest.rb#389
|
1478
1485
|
def methods_matching(re); end
|
1479
1486
|
|
1480
|
-
# source://minitest//lib/minitest.rb#
|
1487
|
+
# source://minitest//lib/minitest.rb#463
|
1481
1488
|
def on_signal(name, action); end
|
1482
1489
|
|
1483
|
-
# source://minitest//lib/minitest.rb#
|
1490
|
+
# source://minitest//lib/minitest.rb#393
|
1484
1491
|
def reset; end
|
1485
1492
|
|
1486
1493
|
# Responsible for running all runnable methods in a given class,
|
1487
1494
|
# each in its own instance. Each instance is passed to the
|
1488
1495
|
# reporter to record.
|
1489
1496
|
#
|
1490
|
-
# source://minitest//lib/minitest.rb#
|
1497
|
+
# source://minitest//lib/minitest.rb#404
|
1491
1498
|
def run(reporter, options = T.unsafe(nil)); end
|
1492
1499
|
|
1493
1500
|
# Runs a single method and has the reporter record the result.
|
@@ -1495,7 +1502,7 @@ class Minitest::Runnable
|
|
1495
1502
|
# that subclasses can specialize the running of an individual
|
1496
1503
|
# test. See Minitest::ParallelTest::ClassMethods for an example.
|
1497
1504
|
#
|
1498
|
-
# source://minitest//lib/minitest.rb#
|
1505
|
+
# source://minitest//lib/minitest.rb#444
|
1499
1506
|
def run_one_method(klass, method_name, reporter); end
|
1500
1507
|
|
1501
1508
|
# Each subclass of Runnable is responsible for overriding this
|
@@ -1503,33 +1510,33 @@ class Minitest::Runnable
|
|
1503
1510
|
#
|
1504
1511
|
# @raise [NotImplementedError]
|
1505
1512
|
#
|
1506
|
-
# source://minitest//lib/minitest.rb#
|
1513
|
+
# source://minitest//lib/minitest.rb#480
|
1507
1514
|
def runnable_methods; end
|
1508
1515
|
|
1509
1516
|
# Returns all subclasses of Runnable.
|
1510
1517
|
#
|
1511
|
-
# source://minitest//lib/minitest.rb#
|
1518
|
+
# source://minitest//lib/minitest.rb#487
|
1512
1519
|
def runnables; end
|
1513
1520
|
|
1514
1521
|
# Defines the order to run tests (:random by default). Override
|
1515
1522
|
# this or use a convenience method to change it for your tests.
|
1516
1523
|
#
|
1517
|
-
# source://minitest//lib/minitest.rb#
|
1524
|
+
# source://minitest//lib/minitest.rb#453
|
1518
1525
|
def test_order; end
|
1519
1526
|
|
1520
|
-
# source://minitest//lib/minitest.rb#
|
1527
|
+
# source://minitest//lib/minitest.rb#457
|
1521
1528
|
def with_info_handler(reporter, &block); end
|
1522
1529
|
end
|
1523
1530
|
end
|
1524
1531
|
|
1525
|
-
# source://minitest//lib/minitest.rb#
|
1532
|
+
# source://minitest//lib/minitest.rb#461
|
1526
1533
|
Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
|
1527
1534
|
|
1528
1535
|
# Assertion raised when skipping a run.
|
1529
1536
|
#
|
1530
|
-
# source://minitest//lib/minitest.rb#
|
1537
|
+
# source://minitest//lib/minitest.rb#1049
|
1531
1538
|
class Minitest::Skip < ::Minitest::Assertion
|
1532
|
-
# source://minitest//lib/minitest.rb#
|
1539
|
+
# source://minitest//lib/minitest.rb#1050
|
1533
1540
|
def result_label; end
|
1534
1541
|
end
|
1535
1542
|
|
@@ -1786,114 +1793,124 @@ Minitest::Spec::TYPES = T.let(T.unsafe(nil), Array)
|
|
1786
1793
|
# end
|
1787
1794
|
# end
|
1788
1795
|
#
|
1789
|
-
# source://minitest//lib/minitest.rb#
|
1796
|
+
# source://minitest//lib/minitest.rb#794
|
1790
1797
|
class Minitest::StatisticsReporter < ::Minitest::Reporter
|
1791
1798
|
# @return [StatisticsReporter] a new instance of StatisticsReporter
|
1792
1799
|
#
|
1793
|
-
# source://minitest//lib/minitest.rb#
|
1800
|
+
# source://minitest//lib/minitest.rb#843
|
1794
1801
|
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
|
1795
1802
|
|
1796
1803
|
# Total number of assertions.
|
1797
1804
|
#
|
1798
|
-
# source://minitest//lib/minitest.rb#
|
1805
|
+
# source://minitest//lib/minitest.rb#798
|
1799
1806
|
def assertions; end
|
1800
1807
|
|
1801
1808
|
# Total number of assertions.
|
1802
1809
|
#
|
1803
|
-
# source://minitest//lib/minitest.rb#
|
1810
|
+
# source://minitest//lib/minitest.rb#798
|
1804
1811
|
def assertions=(_arg0); end
|
1805
1812
|
|
1806
1813
|
# Total number of test cases.
|
1807
1814
|
#
|
1808
|
-
# source://minitest//lib/minitest.rb#
|
1815
|
+
# source://minitest//lib/minitest.rb#803
|
1809
1816
|
def count; end
|
1810
1817
|
|
1811
1818
|
# Total number of test cases.
|
1812
1819
|
#
|
1813
|
-
# source://minitest//lib/minitest.rb#
|
1820
|
+
# source://minitest//lib/minitest.rb#803
|
1814
1821
|
def count=(_arg0); end
|
1815
1822
|
|
1816
1823
|
# Total number of tests that erred.
|
1817
1824
|
#
|
1818
|
-
# source://minitest//lib/minitest.rb#
|
1825
|
+
# source://minitest//lib/minitest.rb#831
|
1819
1826
|
def errors; end
|
1820
1827
|
|
1821
1828
|
# Total number of tests that erred.
|
1822
1829
|
#
|
1823
|
-
# source://minitest//lib/minitest.rb#
|
1830
|
+
# source://minitest//lib/minitest.rb#831
|
1824
1831
|
def errors=(_arg0); end
|
1825
1832
|
|
1826
1833
|
# Total number of tests that failed.
|
1827
1834
|
#
|
1828
|
-
# source://minitest//lib/minitest.rb#
|
1835
|
+
# source://minitest//lib/minitest.rb#826
|
1829
1836
|
def failures; end
|
1830
1837
|
|
1831
1838
|
# Total number of tests that failed.
|
1832
1839
|
#
|
1833
|
-
# source://minitest//lib/minitest.rb#
|
1840
|
+
# source://minitest//lib/minitest.rb#826
|
1834
1841
|
def failures=(_arg0); end
|
1835
1842
|
|
1836
1843
|
# @return [Boolean]
|
1837
1844
|
#
|
1838
|
-
# source://minitest//lib/minitest.rb#
|
1845
|
+
# source://minitest//lib/minitest.rb#857
|
1839
1846
|
def passed?; end
|
1840
1847
|
|
1841
|
-
# source://minitest//lib/minitest.rb#
|
1848
|
+
# source://minitest//lib/minitest.rb#865
|
1842
1849
|
def record(result); end
|
1843
1850
|
|
1844
1851
|
# Report on the tracked statistics.
|
1845
1852
|
#
|
1846
|
-
# source://minitest//lib/minitest.rb#
|
1853
|
+
# source://minitest//lib/minitest.rb#875
|
1847
1854
|
def report; end
|
1848
1855
|
|
1849
1856
|
# An +Array+ of test cases that failed or were skipped.
|
1850
1857
|
#
|
1851
|
-
# source://minitest//lib/minitest.rb#
|
1858
|
+
# source://minitest//lib/minitest.rb#808
|
1852
1859
|
def results; end
|
1853
1860
|
|
1854
1861
|
# An +Array+ of test cases that failed or were skipped.
|
1855
1862
|
#
|
1856
|
-
# source://minitest//lib/minitest.rb#
|
1863
|
+
# source://minitest//lib/minitest.rb#808
|
1857
1864
|
def results=(_arg0); end
|
1858
1865
|
|
1859
1866
|
# Total number of tests that where skipped.
|
1860
1867
|
#
|
1861
|
-
# source://minitest//lib/minitest.rb#
|
1868
|
+
# source://minitest//lib/minitest.rb#841
|
1862
1869
|
def skips; end
|
1863
1870
|
|
1864
1871
|
# Total number of tests that where skipped.
|
1865
1872
|
#
|
1866
|
-
# source://minitest//lib/minitest.rb#
|
1873
|
+
# source://minitest//lib/minitest.rb#841
|
1867
1874
|
def skips=(_arg0); end
|
1868
1875
|
|
1869
|
-
# source://minitest//lib/minitest.rb#
|
1876
|
+
# source://minitest//lib/minitest.rb#861
|
1870
1877
|
def start; end
|
1871
1878
|
|
1872
1879
|
# Time the test run started. If available, the monotonic clock is
|
1873
1880
|
# used and this is a +Float+, otherwise it's an instance of
|
1874
1881
|
# +Time+.
|
1875
1882
|
#
|
1876
|
-
# source://minitest//lib/minitest.rb#
|
1883
|
+
# source://minitest//lib/minitest.rb#815
|
1877
1884
|
def start_time; end
|
1878
1885
|
|
1879
1886
|
# Time the test run started. If available, the monotonic clock is
|
1880
1887
|
# used and this is a +Float+, otherwise it's an instance of
|
1881
1888
|
# +Time+.
|
1882
1889
|
#
|
1883
|
-
# source://minitest//lib/minitest.rb#
|
1890
|
+
# source://minitest//lib/minitest.rb#815
|
1884
1891
|
def start_time=(_arg0); end
|
1885
1892
|
|
1886
1893
|
# Test run time. If available, the monotonic clock is used and
|
1887
1894
|
# this is a +Float+, otherwise it's an instance of +Time+.
|
1888
1895
|
#
|
1889
|
-
# source://minitest//lib/minitest.rb#
|
1896
|
+
# source://minitest//lib/minitest.rb#821
|
1890
1897
|
def total_time; end
|
1891
1898
|
|
1892
1899
|
# Test run time. If available, the monotonic clock is used and
|
1893
1900
|
# this is a +Float+, otherwise it's an instance of +Time+.
|
1894
1901
|
#
|
1895
|
-
# source://minitest//lib/minitest.rb#
|
1902
|
+
# source://minitest//lib/minitest.rb#821
|
1896
1903
|
def total_time=(_arg0); end
|
1904
|
+
|
1905
|
+
# Total number of tests that warned.
|
1906
|
+
#
|
1907
|
+
# source://minitest//lib/minitest.rb#836
|
1908
|
+
def warnings; end
|
1909
|
+
|
1910
|
+
# Total number of tests that warned.
|
1911
|
+
#
|
1912
|
+
# source://minitest//lib/minitest.rb#836
|
1913
|
+
def warnings=(_arg0); end
|
1897
1914
|
end
|
1898
1915
|
|
1899
1916
|
# A reporter that prints the header, summary, and failure details at
|
@@ -1904,48 +1921,36 @@ end
|
|
1904
1921
|
# plugin, pull this out of the composite and replace it with your
|
1905
1922
|
# own.
|
1906
1923
|
#
|
1907
|
-
# source://minitest//lib/minitest.rb#
|
1924
|
+
# source://minitest//lib/minitest.rb#896
|
1908
1925
|
class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
|
1909
|
-
# source://minitest//lib/minitest.rb#
|
1926
|
+
# source://minitest//lib/minitest.rb#929
|
1910
1927
|
def aggregated_results(io); end
|
1911
1928
|
|
1912
|
-
#
|
1913
|
-
#
|
1914
|
-
# source://minitest//lib/minitest.rb#844
|
1929
|
+
# source://minitest//lib/minitest.rb#898
|
1915
1930
|
def old_sync; end
|
1916
1931
|
|
1917
|
-
#
|
1918
|
-
#
|
1919
|
-
# @param value the value to set the attribute old_sync to.
|
1920
|
-
#
|
1921
|
-
# source://minitest//lib/minitest.rb#844
|
1932
|
+
# source://minitest//lib/minitest.rb#898
|
1922
1933
|
def old_sync=(_arg0); end
|
1923
1934
|
|
1924
|
-
# source://minitest//lib/minitest.rb#
|
1935
|
+
# source://minitest//lib/minitest.rb#912
|
1925
1936
|
def report; end
|
1926
1937
|
|
1927
|
-
#
|
1928
|
-
#
|
1929
|
-
# source://minitest//lib/minitest.rb#847
|
1938
|
+
# source://minitest//lib/minitest.rb#900
|
1930
1939
|
def start; end
|
1931
1940
|
|
1932
|
-
# source://minitest//lib/minitest.rb#
|
1941
|
+
# source://minitest//lib/minitest.rb#924
|
1933
1942
|
def statistics; end
|
1934
1943
|
|
1935
|
-
# source://minitest//lib/minitest.rb#
|
1944
|
+
# source://minitest//lib/minitest.rb#949
|
1936
1945
|
def summary; end
|
1937
1946
|
|
1938
|
-
#
|
1939
|
-
#
|
1940
|
-
# source://minitest//lib/minitest.rb#843
|
1947
|
+
# source://minitest//lib/minitest.rb#897
|
1941
1948
|
def sync; end
|
1942
1949
|
|
1943
|
-
#
|
1944
|
-
#
|
1945
|
-
# source://minitest//lib/minitest.rb#843
|
1950
|
+
# source://minitest//lib/minitest.rb#897
|
1946
1951
|
def sync=(_arg0); end
|
1947
1952
|
|
1948
|
-
# source://minitest//lib/minitest.rb#
|
1953
|
+
# source://minitest//lib/minitest.rb#945
|
1949
1954
|
def to_s; end
|
1950
1955
|
end
|
1951
1956
|
|
@@ -1964,29 +1969,26 @@ class Minitest::Test < ::Minitest::Runnable
|
|
1964
1969
|
|
1965
1970
|
# LifecycleHooks
|
1966
1971
|
#
|
1967
|
-
# source://minitest//lib/minitest/test.rb#
|
1972
|
+
# source://minitest//lib/minitest/test.rb#189
|
1968
1973
|
def capture_exceptions; end
|
1969
1974
|
|
1970
1975
|
# source://minitest//lib/minitest/test.rb#15
|
1971
1976
|
def class_name; end
|
1972
1977
|
|
1973
|
-
# source://minitest//lib/minitest/test.rb#
|
1978
|
+
# source://minitest//lib/minitest/test.rb#206
|
1974
1979
|
def neuter_exception(e); end
|
1975
1980
|
|
1976
|
-
# source://minitest//lib/minitest/test.rb#
|
1981
|
+
# source://minitest//lib/minitest/test.rb#217
|
1977
1982
|
def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
|
1978
1983
|
|
1979
1984
|
# Runs a single test with setup/teardown hooks.
|
1980
1985
|
#
|
1981
|
-
# source://minitest//lib/minitest/test.rb#
|
1986
|
+
# source://minitest//lib/minitest/test.rb#87
|
1982
1987
|
def run; end
|
1983
1988
|
|
1984
|
-
# source://minitest//lib/minitest/test.rb#
|
1989
|
+
# source://minitest//lib/minitest/test.rb#199
|
1985
1990
|
def sanitize_exception(e); end
|
1986
1991
|
|
1987
|
-
# source://minitest//lib/minitest/test.rb#232
|
1988
|
-
def with_info_handler(&block); end
|
1989
|
-
|
1990
1992
|
class << self
|
1991
1993
|
# Call this at the top of your tests when you absolutely
|
1992
1994
|
# positively need to have ordered tests. In doing so, you're
|
@@ -2015,18 +2017,19 @@ class Minitest::Test < ::Minitest::Runnable
|
|
2015
2017
|
# source://minitest//lib/minitest/test.rb#48
|
2016
2018
|
def make_my_diffs_pretty!; end
|
2017
2019
|
|
2018
|
-
# Call this at the top of your tests
|
2019
|
-
#
|
2020
|
-
#
|
2020
|
+
# Call this at the top of your tests (inside the +Minitest::Test+
|
2021
|
+
# subclass or +describe+ block) when you want to run your tests in
|
2022
|
+
# parallel. In doing so, you're admitting that you rule and your
|
2023
|
+
# tests are awesome.
|
2021
2024
|
#
|
2022
|
-
# source://minitest//lib/minitest/test.rb#
|
2025
|
+
# source://minitest//lib/minitest/test.rb#60
|
2023
2026
|
def parallelize_me!; end
|
2024
2027
|
|
2025
2028
|
# Returns all instance methods starting with "test_". Based on
|
2026
2029
|
# #test_order, the methods are either sorted, randomized
|
2027
2030
|
# (default), or run in parallel.
|
2028
2031
|
#
|
2029
|
-
# source://minitest//lib/minitest/test.rb#
|
2032
|
+
# source://minitest//lib/minitest/test.rb#70
|
2030
2033
|
def runnable_methods; end
|
2031
2034
|
end
|
2032
2035
|
end
|
@@ -2035,7 +2038,7 @@ end
|
|
2035
2038
|
# meant for library writers, NOT for regular test authors. See
|
2036
2039
|
# #before_setup for an example.
|
2037
2040
|
#
|
2038
|
-
# source://minitest//lib/minitest/test.rb#
|
2041
|
+
# source://minitest//lib/minitest/test.rb#112
|
2039
2042
|
module Minitest::Test::LifecycleHooks
|
2040
2043
|
# Runs before every test, after setup. This hook is meant for
|
2041
2044
|
# libraries to extend minitest. It is not meant to be used by
|
@@ -2043,7 +2046,7 @@ module Minitest::Test::LifecycleHooks
|
|
2043
2046
|
#
|
2044
2047
|
# See #before_setup for an example.
|
2045
2048
|
#
|
2046
|
-
# source://minitest//lib/minitest/test.rb#
|
2049
|
+
# source://minitest//lib/minitest/test.rb#162
|
2047
2050
|
def after_setup; end
|
2048
2051
|
|
2049
2052
|
# Runs after every test, after teardown. This hook is meant for
|
@@ -2052,7 +2055,7 @@ module Minitest::Test::LifecycleHooks
|
|
2052
2055
|
#
|
2053
2056
|
# See #before_setup for an example.
|
2054
2057
|
#
|
2055
|
-
# source://minitest//lib/minitest/test.rb#
|
2058
|
+
# source://minitest//lib/minitest/test.rb#186
|
2056
2059
|
def after_teardown; end
|
2057
2060
|
|
2058
2061
|
# Runs before every test, before setup. This hook is meant for
|
@@ -2087,7 +2090,7 @@ module Minitest::Test::LifecycleHooks
|
|
2087
2090
|
# include MyMinitestPlugin
|
2088
2091
|
# end
|
2089
2092
|
#
|
2090
|
-
# source://minitest//lib/minitest/test.rb#
|
2093
|
+
# source://minitest//lib/minitest/test.rb#147
|
2091
2094
|
def before_setup; end
|
2092
2095
|
|
2093
2096
|
# Runs after every test, before teardown. This hook is meant for
|
@@ -2096,19 +2099,19 @@ module Minitest::Test::LifecycleHooks
|
|
2096
2099
|
#
|
2097
2100
|
# See #before_setup for an example.
|
2098
2101
|
#
|
2099
|
-
# source://minitest//lib/minitest/test.rb#
|
2102
|
+
# source://minitest//lib/minitest/test.rb#171
|
2100
2103
|
def before_teardown; end
|
2101
2104
|
|
2102
2105
|
# Runs before every test. Use this to set up before each test
|
2103
2106
|
# run.
|
2104
2107
|
#
|
2105
|
-
# source://minitest//lib/minitest/test.rb#
|
2108
|
+
# source://minitest//lib/minitest/test.rb#153
|
2106
2109
|
def setup; end
|
2107
2110
|
|
2108
2111
|
# Runs after every test. Use this to clean up after each test
|
2109
2112
|
# run.
|
2110
2113
|
#
|
2111
|
-
# source://minitest//lib/minitest/test.rb#
|
2114
|
+
# source://minitest//lib/minitest/test.rb#177
|
2112
2115
|
def teardown; end
|
2113
2116
|
end
|
2114
2117
|
|
@@ -2123,38 +2126,46 @@ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
|
|
2123
2126
|
|
2124
2127
|
# Assertion wrapping an unexpected error that was raised during a run.
|
2125
2128
|
#
|
2126
|
-
# source://minitest//lib/minitest.rb#
|
2129
|
+
# source://minitest//lib/minitest.rb#1058
|
2127
2130
|
class Minitest::UnexpectedError < ::Minitest::Assertion
|
2128
2131
|
include ::Minitest::Compress
|
2129
2132
|
|
2130
2133
|
# @return [UnexpectedError] a new instance of UnexpectedError
|
2131
2134
|
#
|
2132
|
-
# source://minitest//lib/minitest.rb#
|
2135
|
+
# source://minitest//lib/minitest.rb#1064
|
2133
2136
|
def initialize(error); end
|
2134
2137
|
|
2135
|
-
# source://minitest//lib/minitest.rb#
|
2138
|
+
# source://minitest//lib/minitest.rb#1077
|
2136
2139
|
def backtrace; end
|
2137
2140
|
|
2138
2141
|
# TODO: figure out how to use `cause` instead
|
2139
2142
|
#
|
2140
|
-
# source://minitest//lib/minitest.rb#
|
2143
|
+
# source://minitest//lib/minitest.rb#1062
|
2141
2144
|
def error; end
|
2142
2145
|
|
2143
2146
|
# TODO: figure out how to use `cause` instead
|
2144
2147
|
#
|
2145
|
-
# source://minitest//lib/minitest.rb#
|
2148
|
+
# source://minitest//lib/minitest.rb#1062
|
2146
2149
|
def error=(_arg0); end
|
2147
2150
|
|
2148
|
-
# source://minitest//lib/minitest.rb#
|
2151
|
+
# source://minitest//lib/minitest.rb#1083
|
2149
2152
|
def message; end
|
2150
2153
|
|
2151
|
-
# source://minitest//lib/minitest.rb#
|
2154
|
+
# source://minitest//lib/minitest.rb#1089
|
2152
2155
|
def result_label; end
|
2153
2156
|
end
|
2154
2157
|
|
2155
|
-
# source://minitest//lib/minitest.rb#
|
2158
|
+
# source://minitest//lib/minitest.rb#1081
|
2156
2159
|
Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp)
|
2157
2160
|
|
2161
|
+
# Assertion raised on warning when running in -Werror mode.
|
2162
|
+
#
|
2163
|
+
# source://minitest//lib/minitest.rb#1097
|
2164
|
+
class Minitest::UnexpectedWarning < ::Minitest::Assertion
|
2165
|
+
# source://minitest//lib/minitest.rb#1098
|
2166
|
+
def result_label; end
|
2167
|
+
end
|
2168
|
+
|
2158
2169
|
# source://minitest//lib/minitest.rb#12
|
2159
2170
|
Minitest::VERSION = T.let(T.unsafe(nil), String)
|
2160
2171
|
|