stripe 10.13.0.pre.beta.1 → 10.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -300
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +0 -11
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/request.rb +1 -2
  7. data/lib/stripe/api_version.rb +0 -1
  8. data/lib/stripe/object_types.rb +1 -23
  9. data/lib/stripe/resources/customer.rb +0 -11
  10. data/lib/stripe/resources/financial_connections/account.rb +0 -3
  11. data/lib/stripe/resources/forwarding/request.rb +50 -0
  12. data/lib/stripe/resources/invoice.rb +0 -113
  13. data/lib/stripe/resources/payment_intent.rb +0 -50
  14. data/lib/stripe/resources/quote.rb +0 -104
  15. data/lib/stripe/resources/subscription_schedule.rb +0 -20
  16. data/lib/stripe/resources/terminal/reader.rb +0 -60
  17. data/lib/stripe/resources.rb +1 -22
  18. data/lib/stripe/stripe_client.rb +28 -62
  19. data/lib/stripe/stripe_configuration.rb +1 -2
  20. data/lib/stripe/util.rb +1 -8
  21. data/lib/stripe/version.rb +1 -1
  22. data/lib/stripe.rb +0 -54
  23. data/stripe.gemspec +3 -0
  24. metadata +5 -84
  25. data/bin/tapioca +0 -27
  26. data/lib/stripe/request_signing_authenticator.rb +0 -79
  27. data/lib/stripe/resources/account_notice.rb +0 -32
  28. data/lib/stripe/resources/billing/meter.rb +0 -83
  29. data/lib/stripe/resources/billing/meter_event.rb +0 -27
  30. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -26
  31. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  32. data/lib/stripe/resources/capital/financing_offer.rb +0 -49
  33. data/lib/stripe/resources/capital/financing_summary.rb +0 -15
  34. data/lib/stripe/resources/capital/financing_transaction.rb +0 -27
  35. data/lib/stripe/resources/customer_entitlement.rb +0 -12
  36. data/lib/stripe/resources/customer_entitlement_summary.rb +0 -12
  37. data/lib/stripe/resources/entitlements/feature.rb +0 -38
  38. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -14
  39. data/lib/stripe/resources/gift_cards/card.rb +0 -59
  40. data/lib/stripe/resources/gift_cards/transaction.rb +0 -93
  41. data/lib/stripe/resources/invoice_payment.rb +0 -12
  42. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -88
  43. data/lib/stripe/resources/margin.rb +0 -37
  44. data/lib/stripe/resources/order.rb +0 -120
  45. data/lib/stripe/resources/quote_phase.rb +0 -39
  46. data/lib/stripe/resources/quote_preview_invoice.rb +0 -43
  47. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -11
  48. data/lib/stripe/resources/tax/form.rb +0 -49
  49. data/sorbet/config +0 -4
  50. data/sorbet/rbi/annotations/.gitattributes +0 -1
  51. data/sorbet/rbi/annotations/coveralls_reborn.rbi +0 -3
  52. data/sorbet/rbi/gems/.gitattributes +0 -1
  53. data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1993
  54. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
  55. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3606
  56. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3437
  57. data/sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi +0 -8
  58. data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -144
  59. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -8
  60. data/sorbet/rbi/gems/erubi@1.12.0.rbi +0 -146
  61. data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +0 -352
  62. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +0 -19
  63. data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1561
  64. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
  65. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
  66. data/sorbet/rbi/gems/mocha@1.16.1.rbi +0 -11
  67. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -161
  68. data/sorbet/rbi/gems/parallel@1.24.0.rbi +0 -280
  69. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -9454
  70. data/sorbet/rbi/gems/power_assert@2.0.3.rbi +0 -414
  71. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  72. data/sorbet/rbi/gems/prism@0.19.0.rbi +0 -29883
  73. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1150
  74. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10085
  75. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -931
  76. data/sorbet/rbi/gems/racc@1.7.3.rbi +0 -161
  77. data/sorbet/rbi/gems/rack@3.0.8.rbi +0 -5193
  78. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -402
  79. data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -2884
  80. data/sorbet/rbi/gems/rbi@0.1.6.rbi +0 -2922
  81. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3766
  82. data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4887
  83. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7004
  84. data/sorbet/rbi/gems/rubocop@1.57.2.rbi +0 -56919
  85. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1317
  86. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +0 -555
  87. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -8
  88. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -8
  89. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -8
  90. data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
  91. data/sorbet/rbi/gems/sync@0.5.0.rbi +0 -8
  92. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
  93. data/sorbet/rbi/gems/tapioca@0.11.17.rbi +0 -3503
  94. data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +0 -8
  95. data/sorbet/rbi/gems/test-unit@3.6.1.rbi +0 -4403
  96. data/sorbet/rbi/gems/thor@1.3.0.rbi +0 -4345
  97. data/sorbet/rbi/gems/tins@1.32.1.rbi +0 -8
  98. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  99. data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1740
  100. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +0 -428
  101. data/sorbet/rbi/gems/yard@0.9.34.rbi +0 -18219
  102. data/sorbet/tapioca/config.yml +0 -13
  103. data/sorbet/tapioca/require.rb +0 -4
@@ -1,4403 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `test-unit` gem.
5
- # Please instead update this file by running `bin/tapioca gem test-unit`.
6
-
7
- class Object < ::BasicObject
8
- include ::Kernel
9
- include ::PP::ObjectMixin
10
-
11
- private
12
-
13
- # source://test-unit//lib/test-unit.rb#15
14
- def run_test; end
15
- end
16
-
17
- # source://test-unit//lib/test-unit.rb#5
18
- module Test; end
19
-
20
- # source://test-unit//lib/test-unit.rb#6
21
- module Test::Unit; end
22
-
23
- # Thrown by Test::Unit::Assertions when an assertion fails.
24
- #
25
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#11
26
- class Test::Unit::AssertionFailedError < ::StandardError
27
- # @return [AssertionFailedError] a new instance of AssertionFailedError
28
- #
29
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#25
30
- def initialize(message = T.unsafe(nil), options = T.unsafe(nil)); end
31
-
32
- # Returns the value of attribute actual.
33
- #
34
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#23
35
- def actual; end
36
-
37
- # Sets the attribute actual
38
- #
39
- # @param value the value to set the attribute actual to.
40
- #
41
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#23
42
- def actual=(_arg0); end
43
-
44
- # Returns the value of attribute expected.
45
- #
46
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#23
47
- def expected; end
48
-
49
- # Sets the attribute expected
50
- #
51
- # @param value the value to set the attribute expected to.
52
- #
53
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#23
54
- def expected=(_arg0); end
55
-
56
- # Returns the value of attribute inspected_actual.
57
- #
58
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#24
59
- def inspected_actual; end
60
-
61
- # Sets the attribute inspected_actual
62
- #
63
- # @param value the value to set the attribute inspected_actual to.
64
- #
65
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#24
66
- def inspected_actual=(_arg0); end
67
-
68
- # Returns the value of attribute inspected_expected.
69
- #
70
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#24
71
- def inspected_expected; end
72
-
73
- # Sets the attribute inspected_expected
74
- #
75
- # @param value the value to set the attribute inspected_expected to.
76
- #
77
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#24
78
- def inspected_expected=(_arg0); end
79
-
80
- # Returns the value of attribute user_message.
81
- #
82
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#23
83
- def user_message; end
84
-
85
- # Sets the attribute user_message
86
- #
87
- # @param value the value to set the attribute user_message to.
88
- #
89
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#23
90
- def user_message=(_arg0); end
91
-
92
- private
93
-
94
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#37
95
- def debug_on_failure; end
96
-
97
- class << self
98
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#14
99
- def debug_on_failure=(boolean); end
100
-
101
- # @return [Boolean]
102
- #
103
- # source://test-unit//lib/test/unit/assertion-failed-error.rb#18
104
- def debug_on_failure?; end
105
- end
106
- end
107
-
108
- # Test::Unit::Assertions contains the standard Test::Unit assertions.
109
- # Assertions is included in Test::Unit::TestCase.
110
- #
111
- # To include it in your own code and use its functionality, you simply
112
- # need to rescue Test::Unit::AssertionFailedError. Additionally you may
113
- # override add_assertion to get notified whenever an assertion is made.
114
- #
115
- # Notes:
116
- #
117
- # * The message to each assertion, if given, will be propagated with the
118
- # failure.
119
- # * It is easy to add your own assertions based on assert_block().
120
- #
121
- # @example Example Custom Assertion
122
- #
123
- # def deny(boolean, message=nil)
124
- # message = build_message(message, '<?> is not false or nil.', boolean)
125
- # assert_block(message) do
126
- # not boolean
127
- # end
128
- # end
129
- #
130
- # source://test-unit//lib/test/unit/assertions.rb#43
131
- module Test::Unit::Assertions
132
- # Called whenever an assertion is made. Define this in classes
133
- # that include Test::Unit::Assertions to record assertion
134
- # counts.
135
- #
136
- # This is a public API for developers who extend test-unit.
137
- #
138
- # @return [void]
139
- #
140
- # source://test-unit//lib/test/unit/assertions.rb#1933
141
- def add_assertion; end
142
-
143
- # @overload assert
144
- # @overload assert
145
- #
146
- # source://test-unit//lib/test/unit/assertions.rb#134
147
- def assert(object = T.unsafe(nil), message = T.unsafe(nil), &block); end
148
-
149
- # Passes if `object`#`alias_name` is an alias method of
150
- # `object`#`original_name`.
151
- #
152
- # @example
153
- # assert_alias_method([], :length, :size) # -> pass
154
- # assert_alias_method([], :size, :length) # -> pass
155
- # assert_alias_method([], :each, :size) # -> fail
156
- #
157
- # source://test-unit//lib/test/unit/assertions.rb#1587
158
- def assert_alias_method(object, alias_name, original_name, message = T.unsafe(nil)); end
159
-
160
- # @overload assert_all
161
- # @since 3.4.4
162
- #
163
- # source://test-unit//lib/test/unit/assertions.rb#1797
164
- def assert_all(collection, message = T.unsafe(nil)); end
165
-
166
- # Just for Ruby's tool/lib/test/unit compatibility.
167
- #
168
- # @overload assert_all
169
- # @since 3.4.4
170
- # @since 3.4.3
171
- #
172
- # source://test-unit//lib/test/unit/assertions.rb#1797
173
- def assert_all?(collection, message = T.unsafe(nil)); end
174
-
175
- # The assertion upon which all other assertions are based. Passes if the
176
- # block yields not false nor nil.
177
- #
178
- # @example
179
- # assert_block "Couldn't do the thing" do
180
- # do_the_thing
181
- # end
182
- #
183
- # source://test-unit//lib/test/unit/assertions.rb#53
184
- def assert_block(message = T.unsafe(nil)); end
185
-
186
- # Passes if `actual` is a boolean value.
187
- #
188
- # @example
189
- # assert_boolean(true) # -> pass
190
- # assert_boolean(nil) # -> fail
191
- #
192
- # source://test-unit//lib/test/unit/assertions.rb#1358
193
- def assert_boolean(actual, message = T.unsafe(nil)); end
194
-
195
- # Passes if expression "`expected` `operator`
196
- # `actual`" is not false nor nil.
197
- #
198
- # @example
199
- # assert_compare(1, "<", 10) # -> pass
200
- # assert_compare(1, ">=", 10) # -> fail
201
- #
202
- # source://test-unit//lib/test/unit/assertions.rb#1407
203
- def assert_compare(expected, operator, actual, message = T.unsafe(nil)); end
204
-
205
- # Passes if `object`.const_defined?(`constant_name`)
206
- #
207
- # @example
208
- # assert_const_defined(Test, :Unit) # -> pass
209
- # assert_const_defined(Object, :Nonexistent) # -> fail
210
- #
211
- # source://test-unit//lib/test/unit/assertions.rb#1502
212
- def assert_const_defined(object, constant_name, message = T.unsafe(nil)); end
213
-
214
- # Passes if `object` is empty.
215
- #
216
- # @example
217
- # assert_empty("") # -> pass
218
- # assert_empty([]) # -> pass
219
- # assert_empty({}) # -> pass
220
- # assert_empty(" ") # -> fail
221
- # assert_empty([nil]) # -> fail
222
- # assert_empty({1 => 2}) # -> fail
223
- #
224
- # source://test-unit//lib/test/unit/assertions.rb#1732
225
- def assert_empty(object, message = T.unsafe(nil)); end
226
-
227
- # Passes if `expected` == `actual`.
228
- #
229
- # Note that the ordering of arguments is important, since a helpful
230
- # error message is generated when this one fails that tells you the
231
- # values of expected and actual.
232
- #
233
- # @example
234
- # assert_equal 'MY STRING', 'my string'.upcase
235
- #
236
- # source://test-unit//lib/test/unit/assertions.rb#225
237
- def assert_equal(expected, actual, message = T.unsafe(nil)); end
238
-
239
- # Passes if assertion is failed in block.
240
- #
241
- # @example
242
- # assert_fail_assertion {assert_equal("A", "B")} # -> pass
243
- # assert_fail_assertion {assert_equal("A", "A")} # -> fail
244
- #
245
- # source://test-unit//lib/test/unit/assertions.rb#1440
246
- def assert_fail_assertion(message = T.unsafe(nil)); end
247
-
248
- # Passes if `actual` is false.
249
- #
250
- # @example
251
- # assert_false(false) # -> pass
252
- # assert_false(nil) # -> fail
253
- #
254
- # source://test-unit//lib/test/unit/assertions.rb#1390
255
- def assert_false(actual, message = T.unsafe(nil)); end
256
-
257
- # Passes if `expected_float` and `actual_float` are equal
258
- # within `delta` tolerance.
259
- #
260
- # @example
261
- # assert_in_delta 0.05, (50000.0 / 10**6), 0.00001
262
- #
263
- # source://test-unit//lib/test/unit/assertions.rb#927
264
- def assert_in_delta(expected_float, actual_float, delta = T.unsafe(nil), message = T.unsafe(nil)); end
265
-
266
- # Passes if `expected_float` and `actual_float` are equal
267
- # within `epsilon` relative error of `expected_float`.
268
- #
269
- # @example
270
- # assert_in_epsilon(10000.0, 9900.0, 0.1) # -> pass
271
- # assert_in_epsilon(10000.0, 9899.0, 0.1) # -> fail
272
- #
273
- # source://test-unit//lib/test/unit/assertions.rb#1089
274
- def assert_in_epsilon(expected_float, actual_float, epsilon = T.unsafe(nil), message = T.unsafe(nil)); end
275
-
276
- # Passes if `collection` includes `object`.
277
- #
278
- # @example
279
- # assert_include([1, 10], 1) # -> pass
280
- # assert_include(1..10, 5) # -> pass
281
- # assert_include([1, 10], 5) # -> fail
282
- # assert_include(1..10, 20) # -> fail
283
- #
284
- # source://test-unit//lib/test/unit/assertions.rb#1671
285
- def assert_include(collection, object, message = T.unsafe(nil)); end
286
-
287
- # Passes if `collection` includes `object`.
288
- # Just for minitest compatibility. :<
289
- #
290
- # @example
291
- # assert_include([1, 10], 1) # -> pass
292
- # assert_include(1..10, 5) # -> pass
293
- # assert_include([1, 10], 5) # -> fail
294
- # assert_include(1..10, 20) # -> fail
295
- # @since 2.5.3
296
- #
297
- # source://test-unit//lib/test/unit/assertions.rb#1671
298
- def assert_includes(collection, object, message = T.unsafe(nil)); end
299
-
300
- # Passes if `object`.instance_of?(`klass`). When `klass` is
301
- # an array of classes, it passes if any class
302
- # satisfies +object.instance_of?(class).
303
- #
304
- # @example
305
- # assert_instance_of(String, 'foo') # -> pass
306
- # assert_instance_of([Fixnum, NilClass], 100) # -> pass
307
- # assert_instance_of([Numeric, NilClass], 100) # -> fail
308
- #
309
- # source://test-unit//lib/test/unit/assertions.rb#391
310
- def assert_instance_of(klass, object, message = T.unsafe(nil)); end
311
-
312
- # Passes if `object`.kind_of?(`klass`). When `klass` is
313
- # an array of classes or modules, it passes if any
314
- # class or module satisfies +object.kind_of?(class_or_module).
315
- #
316
- # @example
317
- # assert_kind_of(Object, 'foo') # -> pass
318
- # assert_kind_of([Fixnum, NilClass], 100) # -> pass
319
- # assert_kind_of([Fixnum, NilClass], "string") # -> fail
320
- #
321
- # source://test-unit//lib/test/unit/assertions.rb#478
322
- def assert_kind_of(klass, object, message = T.unsafe(nil)); end
323
-
324
- # Passes if `pattern` =~ `string`.
325
- #
326
- # @example
327
- # assert_match(/\d+/, 'five, 6, seven')
328
- #
329
- # source://test-unit//lib/test/unit/assertions.rb#601
330
- def assert_match(pattern, string, message = T.unsafe(nil)); end
331
-
332
- # Passes if `object`.nil?.
333
- #
334
- # @example
335
- # assert_nil [1, 2].uniq!
336
- #
337
- # source://test-unit//lib/test/unit/assertions.rb#462
338
- def assert_nil(object, message = T.unsafe(nil)); end
339
-
340
- # Passes if `regexp` !~ `string`
341
- #
342
- # @deprecated Use {#assert_not_match} instead.
343
- # @example
344
- # assert_no_match(/two/, 'one 2 three') # -> pass
345
- # assert_no_match(/three/, 'one 2 three') # -> fail
346
- #
347
- # source://test-unit//lib/test/unit/assertions.rb#798
348
- def assert_no_match(regexp, string, message = T.unsafe(nil)); end
349
-
350
- # Passes if !`object`.const_defined?(`constant_name`)
351
- #
352
- # @example
353
- # assert_not_const_defined(Object, :Nonexistent) # -> pass
354
- # assert_not_const_defined(Test, :Unit) # -> fail
355
- #
356
- # source://test-unit//lib/test/unit/assertions.rb#1519
357
- def assert_not_const_defined(object, constant_name, message = T.unsafe(nil)); end
358
-
359
- # Passes if `object` is not empty.
360
- #
361
- # @example
362
- # assert_not_empty(" ") # -> pass
363
- # assert_not_empty([nil]) # -> pass
364
- # assert_not_empty({1 => 2}) # -> pass
365
- # assert_not_empty("") # -> fail
366
- # assert_not_empty([]) # -> fail
367
- # assert_not_empty({}) # -> fail
368
- #
369
- # source://test-unit//lib/test/unit/assertions.rb#1755
370
- def assert_not_empty(object, message = T.unsafe(nil)); end
371
-
372
- # Passes if `expected` != `actual`
373
- #
374
- # @example
375
- # assert_not_equal 'some string', 5
376
- #
377
- # source://test-unit//lib/test/unit/assertions.rb#740
378
- def assert_not_equal(expected, actual, message = T.unsafe(nil)); end
379
-
380
- # Passes if `expected_float` and `actual_float` are
381
- # not equal within `delta` tolerance.
382
- #
383
- # @example
384
- # assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00002) # -> pass
385
- # assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00001) # -> fail
386
- #
387
- # source://test-unit//lib/test/unit/assertions.rb#971
388
- def assert_not_in_delta(expected_float, actual_float, delta = T.unsafe(nil), message = T.unsafe(nil)); end
389
-
390
- # Passes if `expected_float` and `actual_float` are
391
- # not equal within `epsilon` relative error of
392
- # `expected_float`.
393
- #
394
- # @example
395
- # assert_not_in_epsilon(10000.0, 9900.0, 0.1) # -> fail
396
- # assert_not_in_epsilon(10000.0, 9899.0, 0.1) # -> pass
397
- #
398
- # source://test-unit//lib/test/unit/assertions.rb#1150
399
- def assert_not_in_epsilon(expected_float, actual_float, epsilon = T.unsafe(nil), message = T.unsafe(nil)); end
400
-
401
- # Passes if `collection` doesn't include `object`.
402
- #
403
- # @example
404
- # assert_not_include([1, 10], 5) # -> pass
405
- # assert_not_include(1..10, 20) # -> pass
406
- # assert_not_include([1, 10], 1) # -> fail
407
- # assert_not_include(1..10, 5) # -> fail
408
- #
409
- # source://test-unit//lib/test/unit/assertions.rb#1698
410
- def assert_not_include(collection, object, message = T.unsafe(nil)); end
411
-
412
- # Passes if `collection` doesn't include `object`.
413
- # Just for minitest compatibility. :<
414
- #
415
- # @example
416
- # assert_not_include([1, 10], 5) # -> pass
417
- # assert_not_include(1..10, 20) # -> pass
418
- # assert_not_include([1, 10], 1) # -> fail
419
- # assert_not_include(1..10, 5) # -> fail
420
- # @since 3.0.0
421
- #
422
- # source://test-unit//lib/test/unit/assertions.rb#1698
423
- def assert_not_includes(collection, object, message = T.unsafe(nil)); end
424
-
425
- # Passes if `object`.instance_of?(`klass`) does not hold.
426
- # When `klass` is an array of classes, it passes if no class
427
- # satisfies +object.instance_of?(class).
428
- #
429
- # @example
430
- # assert_not_instance_of(String, 100) # -> pass
431
- # assert_not_instance_of([Fixnum, NilClass], '100') # -> pass
432
- # assert_not_instance_of([Numeric, NilClass], 100) # -> fail
433
- # @since 3.0.0
434
- #
435
- # source://test-unit//lib/test/unit/assertions.rb#427
436
- def assert_not_instance_of(klass, object, message = T.unsafe(nil)); end
437
-
438
- # Passes if `object`.kind_of?(`klass`) does not hold.
439
- # When `klass` is an array of classes or modules, it passes only if all
440
- # classes (and modules) do not satisfy +object.kind_of?(class_or_module).
441
- #
442
- # @example
443
- # assert_not_kind_of(Fixnum, 'foo') # -> pass
444
- # assert_not_kind_of([Fixnum, NilClass], '0') # -> pass
445
- # assert_not_kind_of([Fixnum, NilClass], 100) # -> fail
446
- # @since 3.0.0
447
- #
448
- # source://test-unit//lib/test/unit/assertions.rb#516
449
- def assert_not_kind_of(klass, object, message = T.unsafe(nil)); end
450
-
451
- # Passes if `regexp` !~ `string`
452
- #
453
- # @example
454
- # assert_not_match(/two/, 'one 2 three') # -> pass
455
- # assert_not_match(/three/, 'one 2 three') # -> fail
456
- #
457
- # source://test-unit//lib/test/unit/assertions.rb#775
458
- def assert_not_match(pattern, string, message = T.unsafe(nil)); end
459
-
460
- # Passes if ! `object` .nil?
461
- #
462
- # @example
463
- # assert_not_nil '1 two 3'.sub!(/two/, '2')
464
- #
465
- # source://test-unit//lib/test/unit/assertions.rb#757
466
- def assert_not_nil(object, message = T.unsafe(nil)); end
467
-
468
- # Compares the `object1` with `object2` using `operator`.
469
- #
470
- # Passes if object1.__send__(operator, object2) is false or nil.
471
- #
472
- # @example
473
- # assert_not_operator(5, :<, 4) # => pass
474
- # assert_not_operator(5, :>, 4) # => fail
475
- # @since 3.0.0
476
- #
477
- # source://test-unit//lib/test/unit/assertions.rb#658
478
- def assert_not_operator(object1, operator, object2, message = T.unsafe(nil)); end
479
-
480
- # Passes if `object`.`predicate` is false or nil.
481
- #
482
- # @example
483
- # assert_not_predicate([1], :empty?) # -> pass
484
- # assert_not_predicate([], :empty?) # -> fail
485
- #
486
- # source://test-unit//lib/test/unit/assertions.rb#1558
487
- def assert_not_predicate(object, predicate, message = T.unsafe(nil)); end
488
-
489
- # Passes if `object` does not .respond_to? `method`.
490
- #
491
- # @example
492
- # assert_not_respond_to('bugbear', :nonexistence) # -> pass
493
- # assert_not_respond_to('bugbear', :size) # -> fail
494
- #
495
- # source://test-unit//lib/test/unit/assertions.rb#574
496
- def assert_not_respond_to(object, method, message = T.unsafe(nil)); end
497
-
498
- # Passes if ! `actual` .equal? `expected`
499
- #
500
- # @example
501
- # assert_not_same Object.new, Object.new
502
- #
503
- # source://test-unit//lib/test/unit/assertions.rb#720
504
- def assert_not_same(expected, actual, message = T.unsafe(nil)); end
505
-
506
- # Passes if the method `__send__` returns false or nil.
507
- #
508
- # `send_array` is composed of:
509
- # * A receiver
510
- # * A method
511
- # * Arguments to the method
512
- #
513
- # @example
514
- # assert_not_send([[1, 2], :member?, 1]) # -> fail
515
- # assert_not_send([[1, 2], :member?, 4]) # -> pass
516
- #
517
- # source://test-unit//lib/test/unit/assertions.rb#1323
518
- def assert_not_send(send_array, message = T.unsafe(nil)); end
519
-
520
- # @overload assert_nothing_leaked_memory
521
- # @since 3.4.5
522
- #
523
- # source://test-unit//lib/test/unit/assertions.rb#1871
524
- def assert_nothing_leaked_memory(max_increasable_size, target = T.unsafe(nil), message = T.unsafe(nil)); end
525
-
526
- # Passes if block does not raise an exception.
527
- #
528
- # @example
529
- # assert_nothing_raised do
530
- # [1, 2].uniq
531
- # end
532
- #
533
- # source://test-unit//lib/test/unit/assertions.rb#683
534
- def assert_nothing_raised(*args); end
535
-
536
- # Passes if block does not throw anything.
537
- #
538
- # @example
539
- # assert_nothing_thrown do
540
- # [1, 2].uniq
541
- # end
542
- #
543
- # source://test-unit//lib/test/unit/assertions.rb#903
544
- def assert_nothing_thrown(message = T.unsafe(nil), &proc); end
545
-
546
- # Compares the `object1` with `object2` using `operator`.
547
- #
548
- # Passes if object1.__send__(operator, object2) is not false nor nil.
549
- #
550
- # @example
551
- # assert_operator 5, :>=, 4
552
- #
553
- # source://test-unit//lib/test/unit/assertions.rb#635
554
- def assert_operator(object1, operator, object2, message = T.unsafe(nil)); end
555
-
556
- # Passes if `path` exists.
557
- #
558
- # @example
559
- # assert_path_exist("/tmp") # -> pass
560
- # assert_path_exist("/bin/sh") # -> pass
561
- # assert_path_exist("/nonexistent") # -> fail
562
- #
563
- # source://test-unit//lib/test/unit/assertions.rb#1634
564
- def assert_path_exist(path, message = T.unsafe(nil)); end
565
-
566
- # Passes if `path` doesn't exist.
567
- #
568
- # @example
569
- # assert_path_not_exist("/nonexistent") # -> pass
570
- # assert_path_not_exist("/tmp") # -> fail
571
- # assert_path_not_exist("/bin/sh") # -> fail
572
- #
573
- # source://test-unit//lib/test/unit/assertions.rb#1652
574
- def assert_path_not_exist(path, message = T.unsafe(nil)); end
575
-
576
- # Passes if `object`.`predicate` is not false nor nil.
577
- #
578
- # @example
579
- # assert_predicate([], :empty?) # -> pass
580
- # assert_predicate([1], :empty?) # -> fail
581
- #
582
- # source://test-unit//lib/test/unit/assertions.rb#1536
583
- def assert_predicate(object, predicate, message = T.unsafe(nil)); end
584
-
585
- # Passes if the block raises one of the expected
586
- # exceptions. When an expected exception is an Exception
587
- # object, passes if expected_exception == actual_exception.
588
- #
589
- # @example
590
- # assert_raise(RuntimeError, LoadError) do
591
- # raise 'Boom!!!'
592
- # end # -> pass
593
- #
594
- # assert_raise do
595
- # raise Exception, 'Any exception should be raised!!!'
596
- # end # -> pass
597
- #
598
- # assert_raise(RuntimeError.new("XXX")) {raise "XXX"} # -> pass
599
- # assert_raise(MyError.new("XXX")) {raise "XXX"} # -> fail
600
- # assert_raise(RuntimeError.new("ZZZ")) {raise "XXX"} # -> fail
601
- #
602
- # source://test-unit//lib/test/unit/assertions.rb#269
603
- def assert_raise(*args, &block); end
604
-
605
- # Passes if the block raises one of the given
606
- # exceptions or sub exceptions of the given exceptions.
607
- #
608
- # @example
609
- # assert_raise_kind_of(SystemCallError) do
610
- # raise Errno::EACCES
611
- # end
612
- #
613
- # source://test-unit//lib/test/unit/assertions.rb#366
614
- def assert_raise_kind_of(*args, &block); end
615
-
616
- # Passes if an exception is raised in block and its
617
- # message is `expected`.
618
- #
619
- # @example
620
- # assert_raise_message("exception") {raise "exception"} # -> pass
621
- # assert_raise_message(/exc/i) {raise "exception"} # -> pass
622
- # assert_raise_message("exception") {raise "EXCEPTION"} # -> fail
623
- # assert_raise_message("exception") {} # -> fail
624
- #
625
- # source://test-unit//lib/test/unit/assertions.rb#1464
626
- def assert_raise_message(expected, message = T.unsafe(nil)); end
627
-
628
- # Passes if the block raises `expected_exception` with
629
- # `expected_message`. `expected_message` can be a `String` or
630
- # `Regexp`.
631
- #
632
- # @example Pass pattern: String
633
- # assert_raise_with_message(RuntimeError, "Boom!!!") do
634
- # raise "Boom!!!"
635
- # end # -> pass
636
- # @example Pass pattern: Regexp
637
- # assert_raise_with_message(RuntimeError, /!!!/) do
638
- # raise "Boom!!!"
639
- # end # -> pass
640
- # @example Failure pattern: Exception class isn't matched
641
- # assert_raise_with_message(RuntimeError, "Boom!!!") do
642
- # raise ArgumentError, "Boom!!!"
643
- # end # -> failure
644
- # @example Failure pattern: Exception message isn't matched
645
- # assert_raise_with_message(RuntimeError, "Boom!!!") do
646
- # raise "Hello"
647
- # end # -> failure
648
- # @since 3.4.3
649
- #
650
- # source://test-unit//lib/test/unit/assertions.rb#318
651
- def assert_raise_with_message(expected_exception_class, expected_message, message = T.unsafe(nil), &block); end
652
-
653
- # Passes if the block raises one of the expected
654
- # exceptions. When an expected exception is an Exception
655
- # object, passes if expected_exception == actual_exception.
656
- # Just for minitest compatibility. :<
657
- #
658
- # @example
659
- # assert_raise(RuntimeError, LoadError) do
660
- # raise 'Boom!!!'
661
- # end # -> pass
662
- #
663
- # assert_raise do
664
- # raise Exception, 'Any exception should be raised!!!'
665
- # end # -> pass
666
- #
667
- # assert_raise(RuntimeError.new("XXX")) {raise "XXX"} # -> pass
668
- # assert_raise(MyError.new("XXX")) {raise "XXX"} # -> fail
669
- # assert_raise(RuntimeError.new("ZZZ")) {raise "XXX"} # -> fail
670
- #
671
- # source://test-unit//lib/test/unit/assertions.rb#269
672
- def assert_raises(*args, &block); end
673
-
674
- # Passes if `object` .respond_to? `method`
675
- #
676
- # @example
677
- # assert_respond_to 'bugbear', :slice
678
- #
679
- # source://test-unit//lib/test/unit/assertions.rb#551
680
- def assert_respond_to(object, method, message = T.unsafe(nil)); end
681
-
682
- # Passes if `actual` .equal? `expected` (i.e. they are the same
683
- # instance).
684
- #
685
- # @example
686
- # o = Object.new
687
- # assert_same o, o
688
- #
689
- # source://test-unit//lib/test/unit/assertions.rb#618
690
- def assert_same(expected, actual, message = T.unsafe(nil)); end
691
-
692
- # Passes if the method `__send__` returns not false nor nil.
693
- #
694
- # `send_array` is composed of:
695
- # * A receiver
696
- # * A method
697
- # * Arguments to the method
698
- #
699
- # @example
700
- # assert_send([[1, 2], :member?, 1]) # -> pass
701
- # assert_send([[1, 2], :member?, 4]) # -> fail
702
- #
703
- # source://test-unit//lib/test/unit/assertions.rb#1283
704
- def assert_send(send_array, message = T.unsafe(nil)); end
705
-
706
- # Passes if the block throws `expected_object`
707
- #
708
- # @example
709
- # assert_throw(:done) do
710
- # throw(:done)
711
- # end
712
- #
713
- # source://test-unit//lib/test/unit/assertions.rb#857
714
- def assert_throw(expected_object, message = T.unsafe(nil), &proc); end
715
-
716
- # Passes if the block throws `expected_object`
717
- # Just for minitest compatibility. :<
718
- #
719
- # @example
720
- # assert_throw(:done) do
721
- # throw(:done)
722
- # end
723
- # @since 2.5.3
724
- #
725
- # source://test-unit//lib/test/unit/assertions.rb#857
726
- def assert_throws(expected_object, message = T.unsafe(nil), &proc); end
727
-
728
- # Passes if `actual` is true.
729
- #
730
- # @example
731
- # assert_true(true) # -> pass
732
- # assert_true(:true) # -> fail
733
- #
734
- # source://test-unit//lib/test/unit/assertions.rb#1374
735
- def assert_true(actual, message = T.unsafe(nil)); end
736
-
737
- # Builds a failure message. `user_message` is added before the
738
- # `template` and `arguments` replaces the '?'s positionally in
739
- # the template.
740
- #
741
- # source://test-unit//lib/test/unit/assertions.rb#1904
742
- def build_message(user_message, template = T.unsafe(nil), *arguments); end
743
-
744
- # Flunk always fails.
745
- #
746
- # @example
747
- # flunk 'Not done testing yet.'
748
- #
749
- # source://test-unit//lib/test/unit/assertions.rb#711
750
- def flunk(message = T.unsafe(nil)); end
751
-
752
- # Asserts that `object` is false or nil.
753
- #
754
- # @example Pass patterns
755
- # refute(false) # => pass
756
- # refute(nil) # => pass
757
- # @example Failure patterns
758
- # refute(true) # => failure
759
- # refute("string") # => failure
760
- # @note Just for minitest compatibility. :<
761
- # @param object [Object] The object to be asserted.
762
- # @return [void]
763
- # @since 2.5.3
764
- #
765
- # source://test-unit//lib/test/unit/assertions.rb#191
766
- def refute(object, message = T.unsafe(nil)); end
767
-
768
- # Passes if `object` is not empty.
769
- # Just for minitest compatibility. :<
770
- #
771
- # @example
772
- # assert_not_empty(" ") # -> pass
773
- # assert_not_empty([nil]) # -> pass
774
- # assert_not_empty({1 => 2}) # -> pass
775
- # assert_not_empty("") # -> fail
776
- # assert_not_empty([]) # -> fail
777
- # assert_not_empty({}) # -> fail
778
- # @since 3.0.0
779
- #
780
- # source://test-unit//lib/test/unit/assertions.rb#1755
781
- def refute_empty(object, message = T.unsafe(nil)); end
782
-
783
- # Passes if `expected` != `actual`
784
- # Just for minitest compatibility. :<
785
- #
786
- # @example
787
- # assert_not_equal 'some string', 5
788
- # @since 2.5.3
789
- #
790
- # source://test-unit//lib/test/unit/assertions.rb#740
791
- def refute_equal(expected, actual, message = T.unsafe(nil)); end
792
-
793
- # Passes if `expected_float` and `actual_float` are
794
- # not equal within `delta` tolerance.
795
- # Just for minitest compatibility. :<
796
- #
797
- # @example
798
- # assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00002) # -> pass
799
- # assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00001) # -> fail
800
- # @since 2.5.3
801
- #
802
- # source://test-unit//lib/test/unit/assertions.rb#971
803
- def refute_in_delta(expected_float, actual_float, delta = T.unsafe(nil), message = T.unsafe(nil)); end
804
-
805
- # Passes if `expected_float` and `actual_float` are
806
- # not equal within `epsilon` relative error of
807
- # `expected_float`.
808
- # Just for minitest compatibility. :<
809
- #
810
- # @example
811
- # assert_not_in_epsilon(10000.0, 9900.0, 0.1) # -> fail
812
- # assert_not_in_epsilon(10000.0, 9899.0, 0.1) # -> pass
813
- # @since 3.0.0
814
- #
815
- # source://test-unit//lib/test/unit/assertions.rb#1150
816
- def refute_in_epsilon(expected_float, actual_float, epsilon = T.unsafe(nil), message = T.unsafe(nil)); end
817
-
818
- # Passes if `collection` doesn't include `object`.
819
- # Just for minitest compatibility. :<
820
- #
821
- # @example
822
- # assert_not_include([1, 10], 5) # -> pass
823
- # assert_not_include(1..10, 20) # -> pass
824
- # assert_not_include([1, 10], 1) # -> fail
825
- # assert_not_include(1..10, 5) # -> fail
826
- # @since 3.0.0
827
- #
828
- # source://test-unit//lib/test/unit/assertions.rb#1698
829
- def refute_includes(collection, object, message = T.unsafe(nil)); end
830
-
831
- # Passes if `object`.instance_of?(`klass`) does not hold.
832
- # When `klass` is an array of classes, it passes if no class
833
- # satisfies +object.instance_of?(class).
834
- # Just for minitest compatibility. :<
835
- #
836
- # @example
837
- # assert_not_instance_of(String, 100) # -> pass
838
- # assert_not_instance_of([Fixnum, NilClass], '100') # -> pass
839
- # assert_not_instance_of([Numeric, NilClass], 100) # -> fail
840
- # @since 3.0.0
841
- # @since 3.0.0
842
- #
843
- # source://test-unit//lib/test/unit/assertions.rb#427
844
- def refute_instance_of(klass, object, message = T.unsafe(nil)); end
845
-
846
- # Passes if `object`.kind_of?(`klass`) does not hold.
847
- # When `klass` is an array of classes or modules, it passes only if all
848
- # classes (and modules) do not satisfy +object.kind_of?(class_or_module).
849
- # Just for minitest compatibility. :<
850
- #
851
- # @example
852
- # assert_not_kind_of(Fixnum, 'foo') # -> pass
853
- # assert_not_kind_of([Fixnum, NilClass], '0') # -> pass
854
- # assert_not_kind_of([Fixnum, NilClass], 100) # -> fail
855
- # @since 3.0.0
856
- # @since 3.0.0
857
- #
858
- # source://test-unit//lib/test/unit/assertions.rb#516
859
- def refute_kind_of(klass, object, message = T.unsafe(nil)); end
860
-
861
- # Passes if `regexp` !~ `string`
862
- # Just for minitest compatibility. :<
863
- #
864
- # @example
865
- # assert_not_match(/two/, 'one 2 three') # -> pass
866
- # assert_not_match(/three/, 'one 2 three') # -> fail
867
- # @since 2.5.3
868
- #
869
- # source://test-unit//lib/test/unit/assertions.rb#775
870
- def refute_match(pattern, string, message = T.unsafe(nil)); end
871
-
872
- # Passes if ! `object` .nil?
873
- # Just for minitest compatibility. :<
874
- #
875
- # @example
876
- # assert_not_nil '1 two 3'.sub!(/two/, '2')
877
- # @since 2.5.3
878
- #
879
- # source://test-unit//lib/test/unit/assertions.rb#757
880
- def refute_nil(object, message = T.unsafe(nil)); end
881
-
882
- # Compares the `object1` with `object2` using `operator`.
883
- #
884
- # Passes if object1.__send__(operator, object2) is false or nil.
885
- # Just for minitest compatibility. :<
886
- #
887
- # @example
888
- # assert_not_operator(5, :<, 4) # => pass
889
- # assert_not_operator(5, :>, 4) # => fail
890
- # @since 3.0.0
891
- # @since 3.0.0
892
- #
893
- # source://test-unit//lib/test/unit/assertions.rb#658
894
- def refute_operator(object1, operator, object2, message = T.unsafe(nil)); end
895
-
896
- # Passes if `object`.`predicate` is false or nil.
897
- # Just for minitest compatibility. :<
898
- #
899
- # @example
900
- # assert_not_predicate([1], :empty?) # -> pass
901
- # assert_not_predicate([], :empty?) # -> fail
902
- # @since 3.0.0
903
- #
904
- # source://test-unit//lib/test/unit/assertions.rb#1558
905
- def refute_predicate(object, predicate, message = T.unsafe(nil)); end
906
-
907
- # Passes if `object` does not .respond_to? `method`.
908
- # Just for minitest compatibility. :<
909
- #
910
- # @example
911
- # assert_not_respond_to('bugbear', :nonexistence) # -> pass
912
- # assert_not_respond_to('bugbear', :size) # -> fail
913
- # @since 2.5.3
914
- #
915
- # source://test-unit//lib/test/unit/assertions.rb#574
916
- def refute_respond_to(object, method, message = T.unsafe(nil)); end
917
-
918
- # Passes if ! `actual` .equal? `expected`
919
- # Just for minitest compatibility. :<
920
- #
921
- # @example
922
- # assert_not_same Object.new, Object.new
923
- # @since 2.5.3
924
- #
925
- # source://test-unit//lib/test/unit/assertions.rb#720
926
- def refute_same(expected, actual, message = T.unsafe(nil)); end
927
-
928
- private
929
-
930
- # source://test-unit//lib/test/unit/assertions.rb#1028
931
- def _assert_in_delta_message(expected_float, normalized_expected, actual_float, normalized_actual, delta, normalized_delta, message, options = T.unsafe(nil)); end
932
-
933
- # source://test-unit//lib/test/unit/assertions.rb#1012
934
- def _assert_in_delta_validate_arguments(expected_float, actual_float, delta); end
935
-
936
- # source://test-unit//lib/test/unit/assertions.rb#1216
937
- def _assert_in_epsilon_message(expected_float, normalized_expected, actual_float, normalized_actual, epsilon, normalized_epsilon, delta, message, options = T.unsafe(nil)); end
938
-
939
- # source://test-unit//lib/test/unit/assertions.rb#1200
940
- def _assert_in_epsilon_validate_arguments(expected_float, actual_float, epsilon); end
941
-
942
- # source://test-unit//lib/test/unit/assertions.rb#1944
943
- def _assert_raise(assert_expected_exception, *args, &block); end
944
-
945
- # source://test-unit//lib/test/unit/assertions.rb#1973
946
- def _set_failed_information(failure, expected, actual); end
947
-
948
- # source://test-unit//lib/test/unit/assertions.rb#1910
949
- def _wrap_assertion(&block); end
950
-
951
- class << self
952
- # Select whether or not to use the pretty-printer. If this option is set
953
- # to false before any assertions are made, pp.rb will not be required.
954
- #
955
- # source://test-unit//lib/test/unit/assertions.rb#1939
956
- def use_pp=(value); end
957
- end
958
- end
959
-
960
- # source://test-unit//lib/test/unit/assertions.rb#2393
961
- class Test::Unit::Assertions::AssertExceptionHelper
962
- # @return [AssertExceptionHelper] a new instance of AssertExceptionHelper
963
- #
964
- # source://test-unit//lib/test/unit/assertions.rb#2432
965
- def initialize(test_case, expected_exceptions); end
966
-
967
- # @return [Boolean]
968
- #
969
- # source://test-unit//lib/test/unit/assertions.rb#2454
970
- def expected?(actual_exception, equality = T.unsafe(nil)); end
971
-
972
- # source://test-unit//lib/test/unit/assertions.rb#2439
973
- def expected_exceptions; end
974
-
975
- private
976
-
977
- # @return [Boolean]
978
- #
979
- # source://test-unit//lib/test/unit/assertions.rb#2498
980
- def exception_class?(exception_type); end
981
-
982
- # @return [Boolean]
983
- #
984
- # source://test-unit//lib/test/unit/assertions.rb#2488
985
- def exception_object?(exception_type); end
986
-
987
- # @return [Boolean]
988
- #
989
- # source://test-unit//lib/test/unit/assertions.rb#2508
990
- def expected_class?(actual_exception, equality); end
991
-
992
- # @return [Boolean]
993
- #
994
- # source://test-unit//lib/test/unit/assertions.rb#2514
995
- def expected_module?(actual_exception); end
996
-
997
- # @return [Boolean]
998
- #
999
- # source://test-unit//lib/test/unit/assertions.rb#2520
1000
- def expected_object?(actual_exception); end
1001
-
1002
- # source://test-unit//lib/test/unit/assertions.rb#2527
1003
- def fallback_exception_object_equal(expected_object, actual_exception); end
1004
-
1005
- # source://test-unit//lib/test/unit/assertions.rb#2462
1006
- def split_expected_exceptions(expected_exceptions); end
1007
- end
1008
-
1009
- # source://test-unit//lib/test/unit/assertions.rb#2394
1010
- class Test::Unit::Assertions::AssertExceptionHelper::WrappedException
1011
- # @return [WrappedException] a new instance of WrappedException
1012
- #
1013
- # source://test-unit//lib/test/unit/assertions.rb#2396
1014
- def initialize(exception); end
1015
-
1016
- # Returns the value of attribute exception.
1017
- #
1018
- # source://test-unit//lib/test/unit/assertions.rb#2395
1019
- def exception; end
1020
-
1021
- # source://test-unit//lib/test/unit/assertions.rb#2400
1022
- def inspect; end
1023
-
1024
- # source://test-unit//lib/test/unit/assertions.rb#2415
1025
- def method_missing(name, *args, &block); end
1026
-
1027
- private
1028
-
1029
- # @return [Boolean]
1030
- #
1031
- # source://test-unit//lib/test/unit/assertions.rb#2420
1032
- def default_inspect?; end
1033
- end
1034
-
1035
- # source://test-unit//lib/test/unit/assertions.rb#1980
1036
- class Test::Unit::Assertions::AssertionMessage
1037
- include ::Test::Unit::Util::BacktraceFilter
1038
-
1039
- # @return [AssertionMessage] a new instance of AssertionMessage
1040
- #
1041
- # source://test-unit//lib/test/unit/assertions.rb#2355
1042
- def initialize(user_message, template_string, parameters); end
1043
-
1044
- # source://test-unit//lib/test/unit/assertions.rb#2361
1045
- def convert(object); end
1046
-
1047
- # source://test-unit//lib/test/unit/assertions.rb#2365
1048
- def template; end
1049
-
1050
- # source://test-unit//lib/test/unit/assertions.rb#2376
1051
- def to_s; end
1052
-
1053
- # source://test-unit//lib/test/unit/assertions.rb#2369
1054
- def user_message; end
1055
-
1056
- private
1057
-
1058
- # source://test-unit//lib/test/unit/assertions.rb#2388
1059
- def add_period(string); end
1060
-
1061
- class << self
1062
- # source://test-unit//lib/test/unit/assertions.rb#2071
1063
- def convert(object); end
1064
-
1065
- # source://test-unit//lib/test/unit/assertions.rb#2048
1066
- def delayed_diff(from, to); end
1067
-
1068
- # source://test-unit//lib/test/unit/assertions.rb#1989
1069
- def delayed_literal(&block); end
1070
-
1071
- # @return [Boolean]
1072
- #
1073
- # source://test-unit//lib/test/unit/assertions.rb#2017
1074
- def diff_target_string?(string); end
1075
-
1076
- # source://test-unit//lib/test/unit/assertions.rb#2025
1077
- def ensure_diffable_string(string); end
1078
-
1079
- # source://test-unit//lib/test/unit/assertions.rb#1985
1080
- def literal(value); end
1081
-
1082
- # source://test-unit//lib/test/unit/assertions.rb#1998
1083
- def max_diff_target_string_size; end
1084
-
1085
- # source://test-unit//lib/test/unit/assertions.rb#2013
1086
- def max_diff_target_string_size=(size); end
1087
-
1088
- # source://test-unit//lib/test/unit/assertions.rb#1993
1089
- def maybe_container(value, &formatter); end
1090
-
1091
- # source://test-unit//lib/test/unit/assertions.rb#2033
1092
- def prepare_for_diff(from, to); end
1093
-
1094
- # Returns the value of attribute use_pp.
1095
- #
1096
- # source://test-unit//lib/test/unit/assertions.rb#1983
1097
- def use_pp; end
1098
-
1099
- # Sets the attribute use_pp
1100
- #
1101
- # @param value the value to set the attribute use_pp to.
1102
- #
1103
- # source://test-unit//lib/test/unit/assertions.rb#1983
1104
- def use_pp=(_arg0); end
1105
- end
1106
- end
1107
-
1108
- # source://test-unit//lib/test/unit/assertions.rb#2235
1109
- class Test::Unit::Assertions::AssertionMessage::ArrayInspector
1110
- # @return [ArrayInspector] a new instance of ArrayInspector
1111
- #
1112
- # source://test-unit//lib/test/unit/assertions.rb#2244
1113
- def initialize(array, inspected_objects); end
1114
-
1115
- # source://test-unit//lib/test/unit/assertions.rb#2267
1116
- def each(&block); end
1117
-
1118
- # source://test-unit//lib/test/unit/assertions.rb#2251
1119
- def inspect; end
1120
-
1121
- # source://test-unit//lib/test/unit/assertions.rb#2255
1122
- def pretty_print(q); end
1123
-
1124
- # source://test-unit//lib/test/unit/assertions.rb#2263
1125
- def pretty_print_cycle(q); end
1126
-
1127
- class << self
1128
- # @return [Boolean]
1129
- #
1130
- # source://test-unit//lib/test/unit/assertions.rb#2239
1131
- def target?(object); end
1132
- end
1133
- end
1134
-
1135
- # source://test-unit//lib/test/unit/assertions.rb#2282
1136
- class Test::Unit::Assertions::AssertionMessage::DelayedLiteral
1137
- # @return [DelayedLiteral] a new instance of DelayedLiteral
1138
- #
1139
- # source://test-unit//lib/test/unit/assertions.rb#2283
1140
- def initialize(value); end
1141
-
1142
- # source://test-unit//lib/test/unit/assertions.rb#2287
1143
- def inspect; end
1144
- end
1145
-
1146
- # source://test-unit//lib/test/unit/assertions.rb#2181
1147
- class Test::Unit::Assertions::AssertionMessage::HashInspector
1148
- # @return [HashInspector] a new instance of HashInspector
1149
- #
1150
- # source://test-unit//lib/test/unit/assertions.rb#2190
1151
- def initialize(hash, inspected_objects); end
1152
-
1153
- # source://test-unit//lib/test/unit/assertions.rb#2223
1154
- def each_pair; end
1155
-
1156
- # source://test-unit//lib/test/unit/assertions.rb#2200
1157
- def inspect; end
1158
-
1159
- # source://test-unit//lib/test/unit/assertions.rb#2204
1160
- def pretty_print(q); end
1161
-
1162
- # source://test-unit//lib/test/unit/assertions.rb#2219
1163
- def pretty_print_cycle(q); end
1164
-
1165
- class << self
1166
- # @return [Boolean]
1167
- #
1168
- # source://test-unit//lib/test/unit/assertions.rb#2185
1169
- def target?(object); end
1170
- end
1171
- end
1172
-
1173
- # source://test-unit//lib/test/unit/assertions.rb#2091
1174
- class Test::Unit::Assertions::AssertionMessage::Inspector
1175
- include ::Comparable
1176
-
1177
- # @return [Inspector] a new instance of Inspector
1178
- #
1179
- # source://test-unit//lib/test/unit/assertions.rb#2115
1180
- def initialize(object, inspected_objects = T.unsafe(nil)); end
1181
-
1182
- # source://test-unit//lib/test/unit/assertions.rb#2135
1183
- def <=>(other); end
1184
-
1185
- # source://test-unit//lib/test/unit/assertions.rb#2123
1186
- def inspect; end
1187
-
1188
- def native_inspect; end
1189
-
1190
- # Returns the value of attribute object.
1191
- #
1192
- # source://test-unit//lib/test/unit/assertions.rb#2114
1193
- def object; end
1194
-
1195
- # source://test-unit//lib/test/unit/assertions.rb#2127
1196
- def pretty_print(q); end
1197
-
1198
- # source://test-unit//lib/test/unit/assertions.rb#2131
1199
- def pretty_print_cycle(q); end
1200
-
1201
- private
1202
-
1203
- # source://test-unit//lib/test/unit/assertions.rb#2144
1204
- def inspect_target; end
1205
-
1206
- class << self
1207
- # source://test-unit//lib/test/unit/assertions.rb#2095
1208
- def cached_new(object, inspected_objects); end
1209
-
1210
- # source://test-unit//lib/test/unit/assertions.rb#2101
1211
- def inspector_classes; end
1212
-
1213
- # source://test-unit//lib/test/unit/assertions.rb#2105
1214
- def register_inspector_class(inspector_class); end
1215
-
1216
- # source://test-unit//lib/test/unit/assertions.rb#2109
1217
- def unregister_inspector_class(inspector_class); end
1218
- end
1219
- end
1220
-
1221
- # source://test-unit//lib/test/unit/assertions.rb#2272
1222
- class Test::Unit::Assertions::AssertionMessage::Literal
1223
- # @return [Literal] a new instance of Literal
1224
- #
1225
- # source://test-unit//lib/test/unit/assertions.rb#2273
1226
- def initialize(value); end
1227
-
1228
- # source://test-unit//lib/test/unit/assertions.rb#2277
1229
- def inspect; end
1230
- end
1231
-
1232
- # source://test-unit//lib/test/unit/assertions.rb#2292
1233
- class Test::Unit::Assertions::AssertionMessage::MaybeContainer
1234
- # @return [MaybeContainer] a new instance of MaybeContainer
1235
- #
1236
- # source://test-unit//lib/test/unit/assertions.rb#2293
1237
- def initialize(value, &formatter); end
1238
-
1239
- # source://test-unit//lib/test/unit/assertions.rb#2298
1240
- def inspect; end
1241
- end
1242
-
1243
- # source://test-unit//lib/test/unit/assertions.rb#2154
1244
- class Test::Unit::Assertions::AssertionMessage::NumericInspector
1245
- # @return [NumericInspector] a new instance of NumericInspector
1246
- #
1247
- # source://test-unit//lib/test/unit/assertions.rb#2163
1248
- def initialize(numeric, inspected_objects); end
1249
-
1250
- # source://test-unit//lib/test/unit/assertions.rb#2168
1251
- def inspect; end
1252
-
1253
- # source://test-unit//lib/test/unit/assertions.rb#2172
1254
- def pretty_print(q); end
1255
-
1256
- # source://test-unit//lib/test/unit/assertions.rb#2176
1257
- def pretty_print_cycle(q); end
1258
-
1259
- class << self
1260
- # @return [Boolean]
1261
- #
1262
- # source://test-unit//lib/test/unit/assertions.rb#2158
1263
- def target?(object); end
1264
- end
1265
- end
1266
-
1267
- # source://test-unit//lib/test/unit/assertions.rb#2310
1268
- class Test::Unit::Assertions::AssertionMessage::Template
1269
- # @return [Template] a new instance of Template
1270
- #
1271
- # source://test-unit//lib/test/unit/assertions.rb#2318
1272
- def initialize(parts); end
1273
-
1274
- # Returns the value of attribute count.
1275
- #
1276
- # source://test-unit//lib/test/unit/assertions.rb#2316
1277
- def count; end
1278
-
1279
- # source://test-unit//lib/test/unit/assertions.rb#2323
1280
- def result(parameters); end
1281
-
1282
- private
1283
-
1284
- # source://test-unit//lib/test/unit/assertions.rb#2344
1285
- def concatenatable(text, encoding); end
1286
-
1287
- class << self
1288
- # source://test-unit//lib/test/unit/assertions.rb#2311
1289
- def create(string); end
1290
- end
1291
- end
1292
-
1293
- # @private
1294
- #
1295
- # source://test-unit//lib/test/unit/assertions.rb#66
1296
- Test::Unit::Assertions::NOT_SPECIFIED = T.let(T.unsafe(nil), Object)
1297
-
1298
- # @private
1299
- #
1300
- # source://test-unit//lib/test/unit/assertions.rb#808
1301
- class Test::Unit::Assertions::ThrowTagExtractor
1302
- # @return [ThrowTagExtractor] a new instance of ThrowTagExtractor
1303
- #
1304
- # source://test-unit//lib/test/unit/assertions.rb#817
1305
- def initialize(error); end
1306
-
1307
- # source://test-unit//lib/test/unit/assertions.rb#821
1308
- def extract_tag; end
1309
-
1310
- private
1311
-
1312
- # source://test-unit//lib/test/unit/assertions.rb#836
1313
- def normalize_tag(tag); end
1314
- end
1315
-
1316
- # source://test-unit//lib/test/unit/assertions.rb#811
1317
- Test::Unit::Assertions::ThrowTagExtractor::UncaughtThrowPatterns = T.let(T.unsafe(nil), Hash)
1318
-
1319
- # source://test-unit//lib/test/unit/attribute.rb#3
1320
- module Test::Unit::Attribute
1321
- mixes_in_class_methods ::Test::Unit::Attribute::BaseClassMethods
1322
- mixes_in_class_methods ::Test::Unit::Attribute::ClassMethods
1323
-
1324
- # source://test-unit//lib/test/unit/attribute.rb#223
1325
- def [](name); end
1326
-
1327
- # source://test-unit//lib/test/unit/attribute.rb#219
1328
- def attributes; end
1329
-
1330
- class << self
1331
- # @private
1332
- #
1333
- # source://test-unit//lib/test/unit/attribute.rb#25
1334
- def included(base); end
1335
- end
1336
- end
1337
-
1338
- # source://test-unit//lib/test/unit/attribute.rb#31
1339
- module Test::Unit::Attribute::BaseClassMethods
1340
- # source://test-unit//lib/test/unit/attribute.rb#32
1341
- def attributes_table; end
1342
- end
1343
-
1344
- # source://test-unit//lib/test/unit/attribute.rb#37
1345
- module Test::Unit::Attribute::ClassMethods
1346
- # Set an attribute to test methods.
1347
- #
1348
- # @overload attribute
1349
- # @overload attribute
1350
- # @overload attribute
1351
- # @overload attribute
1352
- #
1353
- # source://test-unit//lib/test/unit/attribute.rb#120
1354
- def attribute(name, value, options = T.unsafe(nil), *method_names); end
1355
-
1356
- # source://test-unit//lib/test/unit/attribute.rb#214
1357
- def attribute_observers(attribute_name); end
1358
-
1359
- # source://test-unit//lib/test/unit/attribute.rb#165
1360
- def attributes(method_name); end
1361
-
1362
- # source://test-unit//lib/test/unit/attribute.rb#142
1363
- def attributes_table; end
1364
-
1365
- # source://test-unit//lib/test/unit/attribute.rb#138
1366
- def current_attribute(name); end
1367
-
1368
- # source://test-unit//lib/test/unit/attribute.rb#134
1369
- def current_attributes; end
1370
-
1371
- # source://test-unit//lib/test/unit/attribute.rb#182
1372
- def find_attribute(method_name, name, options = T.unsafe(nil)); end
1373
-
1374
- # source://test-unit//lib/test/unit/attribute.rb#38
1375
- def method_added(name); end
1376
-
1377
- # source://test-unit//lib/test/unit/attribute.rb#208
1378
- def register_attribute_observer(attribute_name, observer = T.unsafe(nil), &block); end
1379
-
1380
- # source://test-unit//lib/test/unit/attribute.rb#147
1381
- def set_attributes(method_name, new_attributes); end
1382
- end
1383
-
1384
- # source://test-unit//lib/test/unit/attribute.rb#4
1385
- class Test::Unit::Attribute::StringifyKeyHash < ::Hash
1386
- # source://test-unit//lib/test/unit/attribute.rb#15
1387
- def [](key); end
1388
-
1389
- # source://test-unit//lib/test/unit/attribute.rb#19
1390
- def []=(key, value); end
1391
-
1392
- # @return [Boolean]
1393
- #
1394
- # source://test-unit//lib/test/unit/attribute.rb#11
1395
- def key?(key); end
1396
-
1397
- class << self
1398
- # source://test-unit//lib/test/unit/attribute.rb#6
1399
- def stringify(object); end
1400
- end
1401
- end
1402
-
1403
- # source://test-unit//lib/test/unit/attribute-matcher.rb#3
1404
- class Test::Unit::AttributeMatcher
1405
- # @return [AttributeMatcher] a new instance of AttributeMatcher
1406
- #
1407
- # source://test-unit//lib/test/unit/attribute-matcher.rb#4
1408
- def initialize(test); end
1409
-
1410
- # @return [Boolean]
1411
- #
1412
- # source://test-unit//lib/test/unit/attribute-matcher.rb#8
1413
- def match?(expression); end
1414
-
1415
- # source://test-unit//lib/test/unit/attribute-matcher.rb#17
1416
- def method_missing(name, *args); end
1417
- end
1418
-
1419
- # source://test-unit//lib/test/unit/autorunner.rb#11
1420
- class Test::Unit::AutoRunner
1421
- # @return [AutoRunner] a new instance of AutoRunner
1422
- # @yield [_self]
1423
- # @yieldparam _self [Test::Unit::AutoRunner] the object that the method was called on
1424
- #
1425
- # source://test-unit//lib/test/unit/autorunner.rb#150
1426
- def initialize(standalone); end
1427
-
1428
- # Returns the value of attribute base.
1429
- #
1430
- # source://test-unit//lib/test/unit/autorunner.rb#144
1431
- def base; end
1432
-
1433
- # Sets the attribute base
1434
- #
1435
- # @param value the value to set the attribute base to.
1436
- #
1437
- # source://test-unit//lib/test/unit/autorunner.rb#144
1438
- def base=(_arg0); end
1439
-
1440
- # Sets the attribute collector
1441
- #
1442
- # @param value the value to set the attribute collector to.
1443
- #
1444
- # source://test-unit//lib/test/unit/autorunner.rb#148
1445
- def collector=(_arg0); end
1446
-
1447
- # Returns the value of attribute color_scheme.
1448
- #
1449
- # source://test-unit//lib/test/unit/autorunner.rb#145
1450
- def color_scheme; end
1451
-
1452
- # Sets the attribute color_scheme
1453
- #
1454
- # @param value the value to set the attribute color_scheme to.
1455
- #
1456
- # source://test-unit//lib/test/unit/autorunner.rb#145
1457
- def color_scheme=(_arg0); end
1458
-
1459
- # Sets the attribute debug_on_failure
1460
- #
1461
- # @param value the value to set the attribute debug_on_failure to.
1462
- #
1463
- # source://test-unit//lib/test/unit/autorunner.rb#147
1464
- def debug_on_failure=(_arg0); end
1465
-
1466
- # @return [Boolean]
1467
- #
1468
- # source://test-unit//lib/test/unit/autorunner.rb#177
1469
- def debug_on_failure?; end
1470
-
1471
- # Returns the value of attribute default_test_paths.
1472
- #
1473
- # source://test-unit//lib/test/unit/autorunner.rb#143
1474
- def default_test_paths; end
1475
-
1476
- # Sets the attribute default_test_paths
1477
- #
1478
- # @param value the value to set the attribute default_test_paths to.
1479
- #
1480
- # source://test-unit//lib/test/unit/autorunner.rb#143
1481
- def default_test_paths=(_arg0); end
1482
-
1483
- # Returns the value of attribute exclude.
1484
- #
1485
- # source://test-unit//lib/test/unit/autorunner.rb#144
1486
- def exclude; end
1487
-
1488
- # Sets the attribute exclude
1489
- #
1490
- # @param value the value to set the attribute exclude to.
1491
- #
1492
- # source://test-unit//lib/test/unit/autorunner.rb#144
1493
- def exclude=(_arg0); end
1494
-
1495
- # Returns the value of attribute filters.
1496
- #
1497
- # source://test-unit//lib/test/unit/autorunner.rb#142
1498
- def filters; end
1499
-
1500
- # Sets the attribute filters
1501
- #
1502
- # @param value the value to set the attribute filters to.
1503
- #
1504
- # source://test-unit//lib/test/unit/autorunner.rb#142
1505
- def filters=(_arg0); end
1506
-
1507
- # source://test-unit//lib/test/unit/autorunner.rb#426
1508
- def keyword_display(keywords); end
1509
-
1510
- # Returns the value of attribute listeners.
1511
- #
1512
- # source://test-unit//lib/test/unit/autorunner.rb#145
1513
- def listeners; end
1514
-
1515
- # Sets the attribute listeners
1516
- #
1517
- # @param value the value to set the attribute listeners to.
1518
- #
1519
- # source://test-unit//lib/test/unit/autorunner.rb#145
1520
- def listeners=(_arg0); end
1521
-
1522
- # source://test-unit//lib/test/unit/autorunner.rb#462
1523
- def load_config(file); end
1524
-
1525
- # source://test-unit//lib/test/unit/autorunner.rb#199
1526
- def options; end
1527
-
1528
- # Returns the value of attribute pattern.
1529
- #
1530
- # source://test-unit//lib/test/unit/autorunner.rb#144
1531
- def pattern; end
1532
-
1533
- # Sets the attribute pattern
1534
- #
1535
- # @param value the value to set the attribute pattern to.
1536
- #
1537
- # source://test-unit//lib/test/unit/autorunner.rb#144
1538
- def pattern=(_arg0); end
1539
-
1540
- # source://test-unit//lib/test/unit/autorunner.rb#181
1541
- def prepare; end
1542
-
1543
- # source://test-unit//lib/test/unit/autorunner.rb#187
1544
- def process_args(args = T.unsafe(nil)); end
1545
-
1546
- # source://test-unit//lib/test/unit/autorunner.rb#444
1547
- def run; end
1548
-
1549
- # Sets the attribute runner
1550
- #
1551
- # @param value the value to set the attribute runner to.
1552
- #
1553
- # source://test-unit//lib/test/unit/autorunner.rb#148
1554
- def runner=(_arg0); end
1555
-
1556
- # Returns the value of attribute runner_options.
1557
- #
1558
- # source://test-unit//lib/test/unit/autorunner.rb#141
1559
- def runner_options; end
1560
-
1561
- # Sets the attribute stop_on_failure
1562
- #
1563
- # @param value the value to set the attribute stop_on_failure to.
1564
- #
1565
- # source://test-unit//lib/test/unit/autorunner.rb#146
1566
- def stop_on_failure=(_arg0); end
1567
-
1568
- # @return [Boolean]
1569
- #
1570
- # source://test-unit//lib/test/unit/autorunner.rb#173
1571
- def stop_on_failure?; end
1572
-
1573
- # Returns the value of attribute suite.
1574
- #
1575
- # source://test-unit//lib/test/unit/autorunner.rb#141
1576
- def suite; end
1577
-
1578
- # Returns the value of attribute to_run.
1579
- #
1580
- # source://test-unit//lib/test/unit/autorunner.rb#142
1581
- def to_run; end
1582
-
1583
- # Sets the attribute to_run
1584
- #
1585
- # @param value the value to set the attribute to_run to.
1586
- #
1587
- # source://test-unit//lib/test/unit/autorunner.rb#142
1588
- def to_run=(_arg0); end
1589
-
1590
- # Returns the value of attribute workdir.
1591
- #
1592
- # source://test-unit//lib/test/unit/autorunner.rb#144
1593
- def workdir; end
1594
-
1595
- # Sets the attribute workdir
1596
- #
1597
- # @param value the value to set the attribute workdir to.
1598
- #
1599
- # source://test-unit//lib/test/unit/autorunner.rb#144
1600
- def workdir=(_arg0); end
1601
-
1602
- private
1603
-
1604
- # source://test-unit//lib/test/unit/autorunner.rb#560
1605
- def add_location_filter(path, line); end
1606
-
1607
- # source://test-unit//lib/test/unit/autorunner.rb#551
1608
- def add_test_path(path); end
1609
-
1610
- # source://test-unit//lib/test/unit/autorunner.rb#510
1611
- def change_work_directory(&block); end
1612
-
1613
- # source://test-unit//lib/test/unit/autorunner.rb#495
1614
- def default_collector; end
1615
-
1616
- # source://test-unit//lib/test/unit/autorunner.rb#485
1617
- def default_runner; end
1618
-
1619
- # source://test-unit//lib/test/unit/autorunner.rb#499
1620
- def global_config_file; end
1621
-
1622
- # source://test-unit//lib/test/unit/autorunner.rb#505
1623
- def load_global_config; end
1624
-
1625
- # source://test-unit//lib/test/unit/autorunner.rb#543
1626
- def match_test_case_name(test, pattern); end
1627
-
1628
- # source://test-unit//lib/test/unit/autorunner.rb#533
1629
- def match_test_name(test, pattern); end
1630
-
1631
- # source://test-unit//lib/test/unit/autorunner.rb#518
1632
- def prepare_name(name); end
1633
-
1634
- class << self
1635
- # source://test-unit//lib/test/unit/autorunner.rb#43
1636
- def collector(id); end
1637
-
1638
- # source://test-unit//lib/test/unit/autorunner.rb#29
1639
- def default_runner; end
1640
-
1641
- # source://test-unit//lib/test/unit/autorunner.rb#33
1642
- def default_runner=(id); end
1643
-
1644
- # source://test-unit//lib/test/unit/autorunner.rb#82
1645
- def need_auto_run=(need); end
1646
-
1647
- # @return [Boolean]
1648
- #
1649
- # source://test-unit//lib/test/unit/autorunner.rb#78
1650
- def need_auto_run?; end
1651
-
1652
- # source://test-unit//lib/test/unit/autorunner.rb#56
1653
- def prepare(hook = T.unsafe(nil), &block); end
1654
-
1655
- # source://test-unit//lib/test/unit/autorunner.rb#37
1656
- def register_collector(id, collector_builder = T.unsafe(nil), &block); end
1657
-
1658
- # source://test-unit//lib/test/unit/autorunner.rb#47
1659
- def register_color_scheme(id, scheme); end
1660
-
1661
- # source://test-unit//lib/test/unit/autorunner.rb#18
1662
- def register_runner(id, runner_builder = T.unsafe(nil), &block); end
1663
-
1664
- # source://test-unit//lib/test/unit/autorunner.rb#61
1665
- def run(force_standalone = T.unsafe(nil), default_dir = T.unsafe(nil), argv = T.unsafe(nil), &block); end
1666
-
1667
- # source://test-unit//lib/test/unit/autorunner.rb#24
1668
- def runner(id); end
1669
-
1670
- # source://test-unit//lib/test/unit/autorunner.rb#51
1671
- def setup_option(option_builder = T.unsafe(nil), &block); end
1672
-
1673
- # @return [Boolean]
1674
- #
1675
- # source://test-unit//lib/test/unit/autorunner.rb#69
1676
- def standalone?; end
1677
- end
1678
- end
1679
-
1680
- # source://test-unit//lib/test/unit/autorunner.rb#14
1681
- Test::Unit::AutoRunner::ADDITIONAL_OPTIONS = T.let(T.unsafe(nil), Array)
1682
-
1683
- # source://test-unit//lib/test/unit/autorunner.rb#13
1684
- Test::Unit::AutoRunner::COLLECTORS = T.let(T.unsafe(nil), Hash)
1685
-
1686
- # source://test-unit//lib/test/unit/autorunner.rb#15
1687
- Test::Unit::AutoRunner::PREPARE_HOOKS = T.let(T.unsafe(nil), Array)
1688
-
1689
- # source://test-unit//lib/test/unit/autorunner.rb#12
1690
- Test::Unit::AutoRunner::RUNNERS = T.let(T.unsafe(nil), Hash)
1691
-
1692
- # source://test-unit//lib/test/unit/autorunner.rb#568
1693
- class Test::Unit::AutoRunner::StopOnFailureListener
1694
- # source://test-unit//lib/test/unit/autorunner.rb#569
1695
- def attach_to_mediator(mediator); end
1696
- end
1697
-
1698
- # source://test-unit//lib/test/unit/auto-runner-loader.rb#5
1699
- module Test::Unit::AutoRunnerLoader
1700
- class << self
1701
- # source://test-unit//lib/test/unit/auto-runner-loader.rb#8
1702
- def check(test_case, method_name); end
1703
- end
1704
- end
1705
-
1706
- # source://test-unit//lib/test/unit/color.rb#3
1707
- class Test::Unit::Color
1708
- # @return [Color] a new instance of Color
1709
- #
1710
- # source://test-unit//lib/test/unit/color.rb#28
1711
- def initialize(name, options = T.unsafe(nil)); end
1712
-
1713
- # source://test-unit//lib/test/unit/color.rb#104
1714
- def +(other); end
1715
-
1716
- # source://test-unit//lib/test/unit/color.rb#69
1717
- def ==(other); end
1718
-
1719
- # @return [Boolean]
1720
- #
1721
- # source://test-unit//lib/test/unit/color.rb#49
1722
- def background?; end
1723
-
1724
- # @return [Boolean]
1725
- #
1726
- # source://test-unit//lib/test/unit/color.rb#57
1727
- def bold?; end
1728
-
1729
- # source://test-unit//lib/test/unit/color.rb#100
1730
- def escape_sequence; end
1731
-
1732
- # @return [Boolean]
1733
- #
1734
- # source://test-unit//lib/test/unit/color.rb#45
1735
- def foreground?; end
1736
-
1737
- # @return [Boolean]
1738
- #
1739
- # source://test-unit//lib/test/unit/color.rb#53
1740
- def intensity?; end
1741
-
1742
- # @return [Boolean]
1743
- #
1744
- # source://test-unit//lib/test/unit/color.rb#61
1745
- def italic?; end
1746
-
1747
- # Returns the value of attribute name.
1748
- #
1749
- # source://test-unit//lib/test/unit/color.rb#27
1750
- def name; end
1751
-
1752
- # source://test-unit//lib/test/unit/color.rb#77
1753
- def sequence; end
1754
-
1755
- # @return [Boolean]
1756
- #
1757
- # source://test-unit//lib/test/unit/color.rb#65
1758
- def underline?; end
1759
-
1760
- class << self
1761
- # source://test-unit//lib/test/unit/color.rb#11
1762
- def parse_256_color(string); end
1763
- end
1764
- end
1765
-
1766
- # source://test-unit//lib/test/unit/color.rb#4
1767
- class Test::Unit::Color::Error < ::StandardError; end
1768
-
1769
- # source://test-unit//lib/test/unit/color.rb#24
1770
- Test::Unit::Color::NAMES = T.let(T.unsafe(nil), Array)
1771
-
1772
- # source://test-unit//lib/test/unit/color.rb#7
1773
- class Test::Unit::Color::ParseError < ::Test::Unit::Color::Error; end
1774
-
1775
- # source://test-unit//lib/test/unit/color-scheme.rb#5
1776
- class Test::Unit::ColorScheme
1777
- include ::Enumerable
1778
-
1779
- # @return [ColorScheme] a new instance of ColorScheme
1780
- #
1781
- # source://test-unit//lib/test/unit/color-scheme.rb#178
1782
- def initialize(scheme_spec); end
1783
-
1784
- # source://test-unit//lib/test/unit/color-scheme.rb#185
1785
- def [](name); end
1786
-
1787
- # source://test-unit//lib/test/unit/color-scheme.rb#189
1788
- def []=(name, color_spec); end
1789
-
1790
- # source://test-unit//lib/test/unit/color-scheme.rb#193
1791
- def each(&block); end
1792
-
1793
- # source://test-unit//lib/test/unit/color-scheme.rb#197
1794
- def to_hash; end
1795
-
1796
- private
1797
-
1798
- # source://test-unit//lib/test/unit/color-scheme.rb#206
1799
- def make_color(color_spec); end
1800
-
1801
- class << self
1802
- # source://test-unit//lib/test/unit/color-scheme.rb#112
1803
- def [](id); end
1804
-
1805
- # source://test-unit//lib/test/unit/color-scheme.rb#116
1806
- def []=(id, scheme_or_spec); end
1807
-
1808
- # source://test-unit//lib/test/unit/color-scheme.rb#108
1809
- def all; end
1810
-
1811
- # source://test-unit//lib/test/unit/color-scheme.rb#125
1812
- def available_colors; end
1813
-
1814
- # source://test-unit//lib/test/unit/color-scheme.rb#25
1815
- def default; end
1816
-
1817
- # source://test-unit//lib/test/unit/color-scheme.rb#71
1818
- def default_for_256_colors; end
1819
-
1820
- # source://test-unit//lib/test/unit/color-scheme.rb#34
1821
- def default_for_8_colors; end
1822
-
1823
- private
1824
-
1825
- # source://test-unit//lib/test/unit/color-scheme.rb#149
1826
- def guess_available_colors_from_colorterm_env; end
1827
-
1828
- # source://test-unit//lib/test/unit/color-scheme.rb#169
1829
- def guess_available_colors_from_github_actions_env; end
1830
-
1831
- # source://test-unit//lib/test/unit/color-scheme.rb#158
1832
- def guess_available_colors_from_term_env; end
1833
-
1834
- # source://test-unit//lib/test/unit/color-scheme.rb#134
1835
- def guess_available_colors_from_vte_version_env; end
1836
- end
1837
- end
1838
-
1839
- # source://test-unit//lib/test/unit/color-scheme.rb#8
1840
- Test::Unit::ColorScheme::TERM_256 = T.let(T.unsafe(nil), Regexp)
1841
-
1842
- # source://test-unit//lib/test/unit/data.rb#5
1843
- module Test::Unit::Data
1844
- mixes_in_class_methods ::Test::Unit::Data::ClassMethods
1845
-
1846
- class << self
1847
- # @private
1848
- #
1849
- # source://test-unit//lib/test/unit/data.rb#7
1850
- def included(base); end
1851
- end
1852
- end
1853
-
1854
- # source://test-unit//lib/test/unit/data.rb#12
1855
- module Test::Unit::Data::ClassMethods
1856
- # This method provides Data-Driven-Test functionality.
1857
- #
1858
- # Define test data in the test code.
1859
- #
1860
- # @overload data
1861
- # @overload data
1862
- # @overload data
1863
- # @overload data
1864
- # @overload data
1865
- #
1866
- # source://test-unit//lib/test/unit/data.rb#129
1867
- def data(*arguments, &block); end
1868
-
1869
- # This method provides Data-Driven-Test functionality.
1870
- #
1871
- # Load test data from the file. This is shorthand to load
1872
- # test data from file. If you want to load complex file, you
1873
- # can use {#data} with block.
1874
- #
1875
- # @example Load data from CSV file
1876
- # load_data("/path/to/test-data.csv")
1877
- # def test_empty?(data)
1878
- # assert_equal(data["expected"], data["target"].empty?)
1879
- # end
1880
- # @param file_name [String] full path to test data file.
1881
- # File format is automatically detected from filename extension.
1882
- # @raise [ArgumentError] if `file_name` is not supported file format.
1883
- # @see Loader#load
1884
- #
1885
- # source://test-unit//lib/test/unit/data.rb#199
1886
- def load_data(file_name); end
1887
- end
1888
-
1889
- # source://test-unit//lib/test/unit/data.rb#204
1890
- class Test::Unit::Data::ClassMethods::Loader
1891
- # @api private
1892
- # @return [Loader] a new instance of Loader
1893
- #
1894
- # source://test-unit//lib/test/unit/data.rb#206
1895
- def initialize(test_case); end
1896
-
1897
- # Load data from file.
1898
- #
1899
- # @api private
1900
- # @param file_name [String] full path to test data file.
1901
- # File format is automatically detected from filename extension.
1902
- # @raise [ArgumentError] if `file_name` is not supported file format.
1903
- # @see #load_csv
1904
- # @see #load_tsv
1905
- #
1906
- # source://test-unit//lib/test/unit/data.rb#218
1907
- def load(file_name); end
1908
-
1909
- # Load data from CSV file.
1910
- #
1911
- # There are 2 types of CSV file as following examples.
1912
- # First, there is a header on first row and it's first column is "label".
1913
- # Another, there is no header in the file.
1914
- #
1915
- # @api private
1916
- # @example Load data from CSV file with header
1917
- # # test-data.csv:
1918
- # # label,expected,target
1919
- # # empty string,true,""
1920
- # # plain string,false,hello
1921
- # #
1922
- # load_data("/path/to/test-data.csv")
1923
- # def test_empty?(data)
1924
- # assert_equal(data["expected"], data["target"].empty?)
1925
- # end
1926
- # @example Load data from CSV file without header
1927
- # # test-data-without-header.csv:
1928
- # # empty string,true,""
1929
- # # plain string,false,hello
1930
- # #
1931
- # load_data("/path/to/test-data-without-header.csv")
1932
- # def test_empty?(data)
1933
- # expected, target = data
1934
- # assert_equal(expected, target.empty?)
1935
- # end
1936
- #
1937
- # source://test-unit//lib/test/unit/data.rb#258
1938
- def load_csv(file_name); end
1939
-
1940
- # Load data from TSV file.
1941
- #
1942
- # There are 2 types of TSV file as following examples.
1943
- # First, there is a header on first row and it's first column is "label".
1944
- # Another, there is no header in the file.
1945
- #
1946
- # @api private
1947
- # @example Load data from TSV file with header
1948
- # # test-data.tsv:
1949
- # # label expected target
1950
- # # empty string true ""
1951
- # # plain string false hello
1952
- # #
1953
- # load_data("/path/to/test-data.tsv")
1954
- # def test_empty?(data)
1955
- # assert_equal(data["expected"], data["target"].empty?)
1956
- # end
1957
- # @example Load data from TSV file without header
1958
- # # test-data-without-header.tsv:
1959
- # # empty string true ""
1960
- # # plain string false hello
1961
- # #
1962
- # load_data("/path/to/test-data-without-header.tsv")
1963
- # def test_empty?(data)
1964
- # expected, target = data
1965
- # assert_equal(expected, target.empty?)
1966
- # end
1967
- #
1968
- # source://test-unit//lib/test/unit/data.rb#304
1969
- def load_tsv(file_name); end
1970
-
1971
- private
1972
-
1973
- # source://test-unit//lib/test/unit/data.rb#339
1974
- def normalize_value(value); end
1975
-
1976
- # source://test-unit//lib/test/unit/data.rb#353
1977
- def set_test_data(header, row); end
1978
- end
1979
-
1980
- # source://test-unit//lib/test/unit/data-sets.rb#3
1981
- class Test::Unit::DataSets
1982
- # @return [DataSets] a new instance of DataSets
1983
- #
1984
- # source://test-unit//lib/test/unit/data-sets.rb#4
1985
- def initialize; end
1986
-
1987
- # source://test-unit//lib/test/unit/data-sets.rb#21
1988
- def <<(data_set); end
1989
-
1990
- # source://test-unit//lib/test/unit/data-sets.rb#66
1991
- def ==(other); end
1992
-
1993
- # source://test-unit//lib/test/unit/data-sets.rb#10
1994
- def add(data_set, options = T.unsafe(nil)); end
1995
-
1996
- # source://test-unit//lib/test/unit/data-sets.rb#42
1997
- def each; end
1998
-
1999
- # @return [Boolean]
2000
- #
2001
- # source://test-unit//lib/test/unit/data-sets.rb#72
2002
- def eql?(other); end
2003
-
2004
- # source://test-unit//lib/test/unit/data-sets.rb#76
2005
- def hash; end
2006
-
2007
- # @return [Boolean]
2008
- #
2009
- # source://test-unit//lib/test/unit/data-sets.rb#25
2010
- def have_keep?; end
2011
-
2012
- # source://test-unit//lib/test/unit/data-sets.rb#32
2013
- def keep; end
2014
-
2015
- private
2016
-
2017
- # source://test-unit//lib/test/unit/data-sets.rb#81
2018
- def each_data_set(&block); end
2019
-
2020
- # source://test-unit//lib/test/unit/data-sets.rb#87
2021
- def each_pattern(variables); end
2022
-
2023
- # source://test-unit//lib/test/unit/data-sets.rb#106
2024
- def each_raw_pattern(variables, &block); end
2025
- end
2026
-
2027
- # source://test-unit//lib/test/unit/diff.rb#11
2028
- module Test::Unit::Diff
2029
- private
2030
-
2031
- # source://test-unit//lib/test/unit/diff.rb#724
2032
- def diff(differ_class, from, to, options = T.unsafe(nil)); end
2033
-
2034
- # source://test-unit//lib/test/unit/diff.rb#706
2035
- def fold(string); end
2036
-
2037
- # source://test-unit//lib/test/unit/diff.rb#712
2038
- def folded_readable(from, to, options = T.unsafe(nil)); end
2039
-
2040
- # source://test-unit//lib/test/unit/diff.rb#702
2041
- def need_fold?(diff); end
2042
-
2043
- # source://test-unit//lib/test/unit/diff.rb#716
2044
- def readable(from, to, options = T.unsafe(nil)); end
2045
-
2046
- # source://test-unit//lib/test/unit/diff.rb#720
2047
- def unified(from, to, options = T.unsafe(nil)); end
2048
-
2049
- class << self
2050
- # source://test-unit//lib/test/unit/diff.rb#724
2051
- def diff(differ_class, from, to, options = T.unsafe(nil)); end
2052
-
2053
- # source://test-unit//lib/test/unit/diff.rb#706
2054
- def fold(string); end
2055
-
2056
- # source://test-unit//lib/test/unit/diff.rb#712
2057
- def folded_readable(from, to, options = T.unsafe(nil)); end
2058
-
2059
- # @return [Boolean]
2060
- #
2061
- # source://test-unit//lib/test/unit/diff.rb#702
2062
- def need_fold?(diff); end
2063
-
2064
- # source://test-unit//lib/test/unit/diff.rb#716
2065
- def readable(from, to, options = T.unsafe(nil)); end
2066
-
2067
- # source://test-unit//lib/test/unit/diff.rb#720
2068
- def unified(from, to, options = T.unsafe(nil)); end
2069
- end
2070
- end
2071
-
2072
- # source://test-unit//lib/test/unit/diff.rb#263
2073
- class Test::Unit::Diff::Differ
2074
- # @return [Differ] a new instance of Differ
2075
- #
2076
- # source://test-unit//lib/test/unit/diff.rb#264
2077
- def initialize(from, to); end
2078
-
2079
- private
2080
-
2081
- # source://test-unit//lib/test/unit/diff.rb#270
2082
- def tag(mark, contents); end
2083
- end
2084
-
2085
- # source://test-unit//lib/test/unit/diff.rb#412
2086
- class Test::Unit::Diff::ReadableDiffer < ::Test::Unit::Diff::Differ
2087
- # source://test-unit//lib/test/unit/diff.rb#413
2088
- def diff(options = T.unsafe(nil)); end
2089
-
2090
- private
2091
-
2092
- # source://test-unit//lib/test/unit/diff.rb#528
2093
- def _diff_lines(from_start, from_end, to_start, to_end); end
2094
-
2095
- # source://test-unit//lib/test/unit/diff.rb#550
2096
- def compute_width(line, start, _end); end
2097
-
2098
- # source://test-unit//lib/test/unit/diff.rb#446
2099
- def cut_off_ratio; end
2100
-
2101
- # source://test-unit//lib/test/unit/diff.rb#442
2102
- def default_ratio; end
2103
-
2104
- # source://test-unit//lib/test/unit/diff.rb#570
2105
- def diff_line(from_line, to_line); end
2106
-
2107
- # source://test-unit//lib/test/unit/diff.rb#500
2108
- def diff_lines(from_start, from_end, to_start, to_end); end
2109
-
2110
- # source://test-unit//lib/test/unit/diff.rb#472
2111
- def find_diff_line_info(from_start, from_end, to_start, to_end); end
2112
-
2113
- # source://test-unit//lib/test/unit/diff.rb#595
2114
- def format_diff_point(from_line, to_line, from_tags, to_tags); end
2115
-
2116
- # source://test-unit//lib/test/unit/diff.rb#540
2117
- def line_operations(from_line, to_line); end
2118
-
2119
- # source://test-unit//lib/test/unit/diff.rb#613
2120
- def n_leading_characters(string, character); end
2121
-
2122
- # source://test-unit//lib/test/unit/diff.rb#433
2123
- def operations; end
2124
-
2125
- # @return [Boolean]
2126
- #
2127
- # source://test-unit//lib/test/unit/diff.rb#621
2128
- def space_character?(character); end
2129
-
2130
- # source://test-unit//lib/test/unit/diff.rb#450
2131
- def tag(mark, contents); end
2132
-
2133
- # source://test-unit//lib/test/unit/diff.rb#456
2134
- def tag_deleted(contents); end
2135
-
2136
- # source://test-unit//lib/test/unit/diff.rb#468
2137
- def tag_difference(contents); end
2138
-
2139
- # source://test-unit//lib/test/unit/diff.rb#464
2140
- def tag_equal(contents); end
2141
-
2142
- # source://test-unit//lib/test/unit/diff.rb#460
2143
- def tag_inserted(contents); end
2144
- end
2145
-
2146
- # source://test-unit//lib/test/unit/diff.rb#12
2147
- class Test::Unit::Diff::SequenceMatcher
2148
- # @return [SequenceMatcher] a new instance of SequenceMatcher
2149
- #
2150
- # source://test-unit//lib/test/unit/diff.rb#13
2151
- def initialize(from, to, &junk_predicate); end
2152
-
2153
- # source://test-unit//lib/test/unit/diff.rb#34
2154
- def blocks; end
2155
-
2156
- # source://test-unit//lib/test/unit/diff.rb#42
2157
- def grouped_operations(context_size = T.unsafe(nil)); end
2158
-
2159
- # source://test-unit//lib/test/unit/diff.rb#20
2160
- def longest_match(from_start, from_end, to_start, to_end); end
2161
-
2162
- # source://test-unit//lib/test/unit/diff.rb#38
2163
- def operations; end
2164
-
2165
- # source://test-unit//lib/test/unit/diff.rb#69
2166
- def ratio; end
2167
-
2168
- private
2169
-
2170
- # source://test-unit//lib/test/unit/diff.rb#117
2171
- def adjust_best_info_with_junk_predicate(should_junk, best_info, from_start, from_end, to_start, to_end); end
2172
-
2173
- # source://test-unit//lib/test/unit/diff.rb#173
2174
- def compute_blocks; end
2175
-
2176
- # source://test-unit//lib/test/unit/diff.rb#147
2177
- def compute_matches; end
2178
-
2179
- # source://test-unit//lib/test/unit/diff.rb#197
2180
- def compute_operations; end
2181
-
2182
- # source://test-unit//lib/test/unit/diff.rb#219
2183
- def compute_ratio; end
2184
-
2185
- # source://test-unit//lib/test/unit/diff.rb#229
2186
- def determine_tag(from_index, to_index, match_from_index, match_to_index); end
2187
-
2188
- # source://test-unit//lib/test/unit/diff.rb#242
2189
- def expand_edge_equal_operations!(_operations, context_size); end
2190
-
2191
- # source://test-unit//lib/test/unit/diff.rb#97
2192
- def find_best_match_position(from_start, from_end, to_start, to_end); end
2193
-
2194
- # source://test-unit//lib/test/unit/diff.rb#143
2195
- def matches; end
2196
-
2197
- # source://test-unit//lib/test/unit/diff.rb#74
2198
- def update_to_indexes; end
2199
- end
2200
-
2201
- # source://test-unit//lib/test/unit/diff.rb#275
2202
- class Test::Unit::Diff::UTF8Line
2203
- # @return [UTF8Line] a new instance of UTF8Line
2204
- #
2205
- # source://test-unit//lib/test/unit/diff.rb#373
2206
- def initialize(line); end
2207
-
2208
- # source://test-unit//lib/test/unit/diff.rb#378
2209
- def [](*args); end
2210
-
2211
- # source://test-unit//lib/test/unit/diff.rb#399
2212
- def compute_width(start, _end); end
2213
-
2214
- # source://test-unit//lib/test/unit/diff.rb#387
2215
- def each(&block); end
2216
-
2217
- # source://test-unit//lib/test/unit/diff.rb#391
2218
- def size; end
2219
-
2220
- # source://test-unit//lib/test/unit/diff.rb#395
2221
- def to_s; end
2222
-
2223
- class << self
2224
- # @return [Boolean]
2225
- #
2226
- # source://test-unit//lib/test/unit/diff.rb#348
2227
- def wide_character?(character); end
2228
-
2229
- private
2230
-
2231
- # source://test-unit//lib/test/unit/diff.rb#354
2232
- def binary_search_ranges(character, ranges); end
2233
- end
2234
- end
2235
-
2236
- # source://test-unit//lib/test/unit/diff.rb#626
2237
- class Test::Unit::Diff::UnifiedDiffer < ::Test::Unit::Diff::Differ
2238
- # source://test-unit//lib/test/unit/diff.rb#627
2239
- def diff(options = T.unsafe(nil)); end
2240
-
2241
- private
2242
-
2243
- # @return [Boolean]
2244
- #
2245
- # source://test-unit//lib/test/unit/diff.rb#696
2246
- def define_line?(line); end
2247
-
2248
- # source://test-unit//lib/test/unit/diff.rb#682
2249
- def find_interesting_line(from_start, to_start, predicate); end
2250
-
2251
- # source://test-unit//lib/test/unit/diff.rb#666
2252
- def format_summary(operations, show_context); end
2253
-
2254
- # @return [Boolean]
2255
- #
2256
- # source://test-unit//lib/test/unit/diff.rb#657
2257
- def same_content?(groups); end
2258
- end
2259
-
2260
- # Encapsulates an error in a test. Created by
2261
- # Test::Unit::TestCase when it rescues an exception thrown
2262
- # during the processing of a test.
2263
- #
2264
- # source://test-unit//lib/test/unit/error.rb#15
2265
- class Test::Unit::Error
2266
- include ::Test::Unit::Util::BacktraceFilter
2267
-
2268
- # Creates a new Error with the given test_name and
2269
- # exception.
2270
- #
2271
- # @return [Error] a new instance of Error
2272
- #
2273
- # source://test-unit//lib/test/unit/error.rb#26
2274
- def initialize(test_name, exception, options = T.unsafe(nil)); end
2275
-
2276
- # Deprecated
2277
- #
2278
- # source://test-unit//lib/test/unit/error.rb#57
2279
- def backtrace; end
2280
-
2281
- # @return [Boolean]
2282
- #
2283
- # source://test-unit//lib/test/unit/error.rb#67
2284
- def critical?; end
2285
-
2286
- # Returns the value of attribute exception.
2287
- #
2288
- # source://test-unit//lib/test/unit/error.rb#18
2289
- def exception; end
2290
-
2291
- # source://test-unit//lib/test/unit/error.rb#37
2292
- def label; end
2293
-
2294
- # source://test-unit//lib/test/unit/error.rb#57
2295
- def location; end
2296
-
2297
- # Returns a verbose version of the error description.
2298
- #
2299
- # source://test-unit//lib/test/unit/error.rb#52
2300
- def long_display; end
2301
-
2302
- # Returns the message associated with the error.
2303
- #
2304
- # source://test-unit//lib/test/unit/error.rb#42
2305
- def message; end
2306
-
2307
- # Returns the value of attribute method_name.
2308
- #
2309
- # source://test-unit//lib/test/unit/error.rb#19
2310
- def method_name; end
2311
-
2312
- # Returns a brief version of the error description.
2313
- #
2314
- # source://test-unit//lib/test/unit/error.rb#47
2315
- def short_display; end
2316
-
2317
- # Returns a single character representation of an error.
2318
- #
2319
- # source://test-unit//lib/test/unit/error.rb#33
2320
- def single_character_display; end
2321
-
2322
- # Returns the value of attribute test_name.
2323
- #
2324
- # source://test-unit//lib/test/unit/error.rb#18
2325
- def test_name; end
2326
-
2327
- # Overridden to return long_display.
2328
- #
2329
- # source://test-unit//lib/test/unit/error.rb#63
2330
- def to_s; end
2331
- end
2332
-
2333
- # source://test-unit//lib/test/unit/error.rb#22
2334
- Test::Unit::Error::LABEL = T.let(T.unsafe(nil), String)
2335
-
2336
- # source://test-unit//lib/test/unit/error.rb#21
2337
- Test::Unit::Error::SINGLE_CHARACTER = T.let(T.unsafe(nil), String)
2338
-
2339
- # source://test-unit//lib/test/unit/error.rb#72
2340
- module Test::Unit::ErrorHandler
2341
- private
2342
-
2343
- # source://test-unit//lib/test/unit/error.rb#119
2344
- def add_error(exception); end
2345
-
2346
- # source://test-unit//lib/test/unit/error.rb#89
2347
- def handle_all_exception(exception); end
2348
-
2349
- # @return [Boolean]
2350
- #
2351
- # source://test-unit//lib/test/unit/error.rb#97
2352
- def pass_through_exception?(exception); end
2353
-
2354
- class << self
2355
- # @private
2356
- #
2357
- # source://test-unit//lib/test/unit/error.rb#74
2358
- def included(base); end
2359
- end
2360
- end
2361
-
2362
- # source://test-unit//lib/test/unit/error.rb#79
2363
- Test::Unit::ErrorHandler::NOT_PASS_THROUGH_EXCEPTIONS = T.let(T.unsafe(nil), Array)
2364
-
2365
- # source://test-unit//lib/test/unit/error.rb#80
2366
- Test::Unit::ErrorHandler::NOT_PASS_THROUGH_EXCEPTION_NAMES = T.let(T.unsafe(nil), Array)
2367
-
2368
- # source://test-unit//lib/test/unit/error.rb#81
2369
- Test::Unit::ErrorHandler::PASS_THROUGH_EXCEPTIONS = T.let(T.unsafe(nil), Array)
2370
-
2371
- # source://test-unit//lib/test/unit/error.rb#87
2372
- Test::Unit::ErrorHandler::PASS_THROUGH_EXCEPTION_NAMES = T.let(T.unsafe(nil), Array)
2373
-
2374
- # source://test-unit//lib/test/unit/exception-handler.rb#3
2375
- module Test::Unit::ExceptionHandler
2376
- mixes_in_class_methods ::Test::Unit::ExceptionHandler::ClassMethods
2377
-
2378
- class << self
2379
- # source://test-unit//lib/test/unit/exception-handler.rb#6
2380
- def exception_handlers; end
2381
-
2382
- # @private
2383
- #
2384
- # source://test-unit//lib/test/unit/exception-handler.rb#10
2385
- def included(base); end
2386
- end
2387
- end
2388
-
2389
- # source://test-unit//lib/test/unit/exception-handler.rb#24
2390
- module Test::Unit::ExceptionHandler::ClassMethods
2391
- # This is a public API for developers who extend test-unit.
2392
- #
2393
- # @overload exception_handler
2394
- # @overload exception_handler
2395
- #
2396
- # source://test-unit//lib/test/unit/exception-handler.rb#52
2397
- def exception_handler(*method_name_or_handlers, &block); end
2398
-
2399
- # source://test-unit//lib/test/unit/exception-handler.rb#25
2400
- def exception_handlers; end
2401
-
2402
- # source://test-unit//lib/test/unit/exception-handler.rb#68
2403
- def unregister_exception_handler(*method_name_or_handlers); end
2404
- end
2405
-
2406
- # Encapsulates a test failure. Created by Test::Unit::TestCase
2407
- # when an assertion fails.
2408
- #
2409
- # source://test-unit//lib/test/unit/failure.rb#12
2410
- class Test::Unit::Failure
2411
- # Creates a new Failure with the given location and
2412
- # message.
2413
- #
2414
- # @return [Failure] a new instance of Failure
2415
- #
2416
- # source://test-unit//lib/test/unit/failure.rb#23
2417
- def initialize(test_name, location, message, options = T.unsafe(nil)); end
2418
-
2419
- # Returns the value of attribute actual.
2420
- #
2421
- # source://test-unit//lib/test/unit/failure.rb#15
2422
- def actual; end
2423
-
2424
- # @return [Boolean]
2425
- #
2426
- # source://test-unit//lib/test/unit/failure.rb#65
2427
- def critical?; end
2428
-
2429
- # source://test-unit//lib/test/unit/failure.rb#69
2430
- def diff; end
2431
-
2432
- # Returns the value of attribute expected.
2433
- #
2434
- # source://test-unit//lib/test/unit/failure.rb#15
2435
- def expected; end
2436
-
2437
- # Returns the value of attribute inspected_actual.
2438
- #
2439
- # source://test-unit//lib/test/unit/failure.rb#16
2440
- def inspected_actual; end
2441
-
2442
- # Returns the value of attribute inspected_expected.
2443
- #
2444
- # source://test-unit//lib/test/unit/failure.rb#16
2445
- def inspected_expected; end
2446
-
2447
- # source://test-unit//lib/test/unit/failure.rb#41
2448
- def label; end
2449
-
2450
- # Returns the value of attribute location.
2451
- #
2452
- # source://test-unit//lib/test/unit/failure.rb#13
2453
- def location; end
2454
-
2455
- # Returns a verbose version of the error description.
2456
- #
2457
- # source://test-unit//lib/test/unit/failure.rb#51
2458
- def long_display; end
2459
-
2460
- # Returns the value of attribute message.
2461
- #
2462
- # source://test-unit//lib/test/unit/failure.rb#13
2463
- def message; end
2464
-
2465
- # Returns the value of attribute method_name.
2466
- #
2467
- # source://test-unit//lib/test/unit/failure.rb#14
2468
- def method_name; end
2469
-
2470
- # Returns a brief version of the error description.
2471
- #
2472
- # source://test-unit//lib/test/unit/failure.rb#46
2473
- def short_display; end
2474
-
2475
- # Returns a single character representation of a failure.
2476
- #
2477
- # source://test-unit//lib/test/unit/failure.rb#37
2478
- def single_character_display; end
2479
-
2480
- # Returns the value of attribute source_location.
2481
- #
2482
- # source://test-unit//lib/test/unit/failure.rb#14
2483
- def source_location; end
2484
-
2485
- # Returns the value of attribute test_name.
2486
- #
2487
- # source://test-unit//lib/test/unit/failure.rb#13
2488
- def test_name; end
2489
-
2490
- # Overridden to return long_display.
2491
- #
2492
- # source://test-unit//lib/test/unit/failure.rb#61
2493
- def to_s; end
2494
-
2495
- # Returns the value of attribute user_message.
2496
- #
2497
- # source://test-unit//lib/test/unit/failure.rb#15
2498
- def user_message; end
2499
-
2500
- private
2501
-
2502
- # source://test-unit//lib/test/unit/failure.rb#74
2503
- def compute_diff; end
2504
- end
2505
-
2506
- # source://test-unit//lib/test/unit/failure.rb#19
2507
- Test::Unit::Failure::LABEL = T.let(T.unsafe(nil), String)
2508
-
2509
- # source://test-unit//lib/test/unit/failure.rb#18
2510
- Test::Unit::Failure::SINGLE_CHARACTER = T.let(T.unsafe(nil), String)
2511
-
2512
- # source://test-unit//lib/test/unit/failure.rb#79
2513
- module Test::Unit::FailureHandler
2514
- # Report a failure.
2515
- #
2516
- # This is a public API for developers who extend test-unit.
2517
- #
2518
- # @option options
2519
- # @option options
2520
- # @option options
2521
- # @option options
2522
- # @option options
2523
- # @option options
2524
- # @option options
2525
- # @param message [String] The description about the failure.
2526
- # @param backtrace [Array<String>] The backtrace for the failure.
2527
- # @param options [Hash] a customizable set of options
2528
- # @return [void]
2529
- #
2530
- # source://test-unit//lib/test/unit/failure.rb#112
2531
- def add_failure(message, backtrace, options = T.unsafe(nil)); end
2532
-
2533
- private
2534
-
2535
- # source://test-unit//lib/test/unit/failure.rb#123
2536
- def handle_assertion_failed_error(exception); end
2537
-
2538
- class << self
2539
- # @private
2540
- #
2541
- # source://test-unit//lib/test/unit/failure.rb#81
2542
- def included(base); end
2543
- end
2544
- end
2545
-
2546
- # source://test-unit//lib/test/unit/fixture.rb#3
2547
- module Test::Unit::Fixture
2548
- mixes_in_class_methods ::Test::Unit::Fixture::ClassMethods
2549
-
2550
- private
2551
-
2552
- # source://test-unit//lib/test/unit/fixture.rb#265
2553
- def create_fixtures_runner(fixtures, options, &block); end
2554
-
2555
- # source://test-unit//lib/test/unit/fixture.rb#295
2556
- def run_cleanup; end
2557
-
2558
- # source://test-unit//lib/test/unit/fixture.rb#249
2559
- def run_fixture(type, options = T.unsafe(nil), &block); end
2560
-
2561
- # source://test-unit//lib/test/unit/fixture.rb#281
2562
- def run_fixture_callback(method_name, options, &block); end
2563
-
2564
- # source://test-unit//lib/test/unit/fixture.rb#291
2565
- def run_setup(&block); end
2566
-
2567
- # source://test-unit//lib/test/unit/fixture.rb#299
2568
- def run_teardown; end
2569
-
2570
- class << self
2571
- # @private
2572
- #
2573
- # source://test-unit//lib/test/unit/fixture.rb#5
2574
- def included(base); end
2575
- end
2576
- end
2577
-
2578
- # source://test-unit//lib/test/unit/fixture.rb#205
2579
- module Test::Unit::Fixture::ClassMethods
2580
- # source://test-unit//lib/test/unit/fixture.rb#218
2581
- def cleanup(*method_names, &callback); end
2582
-
2583
- # source://test-unit//lib/test/unit/fixture.rb#206
2584
- def fixture; end
2585
-
2586
- # source://test-unit//lib/test/unit/fixture.rb#210
2587
- def setup(*method_names, &callback); end
2588
-
2589
- # source://test-unit//lib/test/unit/fixture.rb#226
2590
- def teardown(*method_names, &callback); end
2591
-
2592
- # source://test-unit//lib/test/unit/fixture.rb#222
2593
- def unregister_cleanup(*method_names_or_callbacks); end
2594
-
2595
- # source://test-unit//lib/test/unit/fixture.rb#214
2596
- def unregister_setup(*method_names_or_callbacks); end
2597
-
2598
- # source://test-unit//lib/test/unit/fixture.rb#230
2599
- def unregister_teardown(*method_names_or_callbacks); end
2600
-
2601
- private
2602
-
2603
- # source://test-unit//lib/test/unit/fixture.rb#235
2604
- def register_fixture(fixture, *method_names, &callback); end
2605
-
2606
- # source://test-unit//lib/test/unit/fixture.rb#243
2607
- def unregister_fixture(fixture, *method_names_or_callbacks); end
2608
- end
2609
-
2610
- # source://test-unit//lib/test/unit/fixture.rb#21
2611
- class Test::Unit::Fixture::Fixture
2612
- # @return [Fixture] a new instance of Fixture
2613
- #
2614
- # source://test-unit//lib/test/unit/fixture.rb#25
2615
- def initialize(test_case); end
2616
-
2617
- # source://test-unit//lib/test/unit/fixture.rb#34
2618
- def [](type); end
2619
-
2620
- # source://test-unit//lib/test/unit/fixture.rb#49
2621
- def after_callbacks(type); end
2622
-
2623
- # source://test-unit//lib/test/unit/fixture.rb#45
2624
- def before_callbacks(type); end
2625
-
2626
- # Returns the value of attribute cleanup.
2627
- #
2628
- # source://test-unit//lib/test/unit/fixture.rb#23
2629
- def cleanup; end
2630
-
2631
- # Returns the value of attribute setup.
2632
- #
2633
- # source://test-unit//lib/test/unit/fixture.rb#22
2634
- def setup; end
2635
-
2636
- # Returns the value of attribute teardown.
2637
- #
2638
- # source://test-unit//lib/test/unit/fixture.rb#24
2639
- def teardown; end
2640
-
2641
- private
2642
-
2643
- # source://test-unit//lib/test/unit/fixture.rb#69
2644
- def collect_after_callbacks(type); end
2645
-
2646
- # source://test-unit//lib/test/unit/fixture.rb#58
2647
- def collect_before_callbacks(type); end
2648
-
2649
- # source://test-unit//lib/test/unit/fixture.rb#80
2650
- def collect_target_test_cases; end
2651
-
2652
- # source://test-unit//lib/test/unit/fixture.rb#89
2653
- def merge_callbacks(prepend_callbacks, append_callbacks); end
2654
-
2655
- # source://test-unit//lib/test/unit/fixture.rb#54
2656
- def target_test_cases; end
2657
- end
2658
-
2659
- # source://test-unit//lib/test/unit/fixture.rb#101
2660
- class Test::Unit::Fixture::HookPoint
2661
- # @return [HookPoint] a new instance of HookPoint
2662
- #
2663
- # source://test-unit//lib/test/unit/fixture.rb#102
2664
- def initialize(test_case, type, default_options); end
2665
-
2666
- # source://test-unit//lib/test/unit/fixture.rb#168
2667
- def after_append_callbacks; end
2668
-
2669
- # source://test-unit//lib/test/unit/fixture.rb#164
2670
- def after_prepend_callbacks; end
2671
-
2672
- # source://test-unit//lib/test/unit/fixture.rb#160
2673
- def before_append_callbacks; end
2674
-
2675
- # source://test-unit//lib/test/unit/fixture.rb#156
2676
- def before_prepend_callbacks; end
2677
-
2678
- # source://test-unit//lib/test/unit/fixture.rb#114
2679
- def register(method_name_or_callback, options = T.unsafe(nil)); end
2680
-
2681
- # source://test-unit//lib/test/unit/fixture.rb#146
2682
- def unregister(method_name_or_callback); end
2683
-
2684
- private
2685
-
2686
- # source://test-unit//lib/test/unit/fixture.rb#186
2687
- def add_callback(method_name_or_callback, before_how, after_how); end
2688
-
2689
- # source://test-unit//lib/test/unit/fixture.rb#182
2690
- def callback_method_name(callback); end
2691
-
2692
- # @return [Boolean]
2693
- #
2694
- # source://test-unit//lib/test/unit/fixture.rb#173
2695
- def valid_register_options?(options); end
2696
- end
2697
-
2698
- # source://test-unit//lib/test/unit/color.rb#109
2699
- class Test::Unit::MixColor
2700
- # @return [MixColor] a new instance of MixColor
2701
- #
2702
- # source://test-unit//lib/test/unit/color.rb#111
2703
- def initialize(colors); end
2704
-
2705
- # source://test-unit//lib/test/unit/color.rb#125
2706
- def +(other); end
2707
-
2708
- # source://test-unit//lib/test/unit/color.rb#129
2709
- def ==(other); end
2710
-
2711
- # Returns the value of attribute colors.
2712
- #
2713
- # source://test-unit//lib/test/unit/color.rb#110
2714
- def colors; end
2715
-
2716
- # source://test-unit//lib/test/unit/color.rb#121
2717
- def escape_sequence; end
2718
-
2719
- # source://test-unit//lib/test/unit/color.rb#115
2720
- def sequence; end
2721
- end
2722
-
2723
- # source://test-unit//lib/test/unit/notification.rb#5
2724
- class Test::Unit::Notification
2725
- include ::Test::Unit::Util::BacktraceFilter
2726
-
2727
- # Creates a new Notification with the given location and
2728
- # message.
2729
- #
2730
- # @return [Notification] a new instance of Notification
2731
- #
2732
- # source://test-unit//lib/test/unit/notification.rb#15
2733
- def initialize(test_name, location, message, options = T.unsafe(nil)); end
2734
-
2735
- # @return [Boolean]
2736
- #
2737
- # source://test-unit//lib/test/unit/notification.rb#47
2738
- def critical?; end
2739
-
2740
- # source://test-unit//lib/test/unit/notification.rb#27
2741
- def label; end
2742
-
2743
- # Returns the value of attribute location.
2744
- #
2745
- # source://test-unit//lib/test/unit/notification.rb#7
2746
- def location; end
2747
-
2748
- # Returns a verbose version of the error description.
2749
- #
2750
- # source://test-unit//lib/test/unit/notification.rb#37
2751
- def long_display; end
2752
-
2753
- # Returns the value of attribute message.
2754
- #
2755
- # source://test-unit//lib/test/unit/notification.rb#7
2756
- def message; end
2757
-
2758
- # Returns the value of attribute method_name.
2759
- #
2760
- # source://test-unit//lib/test/unit/notification.rb#8
2761
- def method_name; end
2762
-
2763
- # Returns a brief version of the error description.
2764
- #
2765
- # source://test-unit//lib/test/unit/notification.rb#32
2766
- def short_display; end
2767
-
2768
- # Returns a single character representation of a notification.
2769
- #
2770
- # source://test-unit//lib/test/unit/notification.rb#23
2771
- def single_character_display; end
2772
-
2773
- # Returns the value of attribute test_name.
2774
- #
2775
- # source://test-unit//lib/test/unit/notification.rb#7
2776
- def test_name; end
2777
-
2778
- # Overridden to return long_display.
2779
- #
2780
- # source://test-unit//lib/test/unit/notification.rb#43
2781
- def to_s; end
2782
- end
2783
-
2784
- # source://test-unit//lib/test/unit/notification.rb#11
2785
- Test::Unit::Notification::LABEL = T.let(T.unsafe(nil), String)
2786
-
2787
- # source://test-unit//lib/test/unit/notification.rb#10
2788
- Test::Unit::Notification::SINGLE_CHARACTER = T.let(T.unsafe(nil), String)
2789
-
2790
- # source://test-unit//lib/test/unit/notification.rb#92
2791
- module Test::Unit::NotificationHandler
2792
- private
2793
-
2794
- # source://test-unit//lib/test/unit/notification.rb#100
2795
- def handle_notified_error(exception); end
2796
-
2797
- class << self
2798
- # @private
2799
- #
2800
- # source://test-unit//lib/test/unit/notification.rb#94
2801
- def included(base); end
2802
- end
2803
- end
2804
-
2805
- # source://test-unit//lib/test/unit/notification.rb#52
2806
- class Test::Unit::NotifiedError < ::StandardError; end
2807
-
2808
- # source://test-unit//lib/test/unit/omission.rb#5
2809
- class Test::Unit::Omission
2810
- include ::Test::Unit::Util::BacktraceFilter
2811
-
2812
- # Creates a new Omission with the given location and
2813
- # message.
2814
- #
2815
- # @return [Omission] a new instance of Omission
2816
- #
2817
- # source://test-unit//lib/test/unit/omission.rb#15
2818
- def initialize(test_name, location, message, options = T.unsafe(nil)); end
2819
-
2820
- # @return [Boolean]
2821
- #
2822
- # source://test-unit//lib/test/unit/omission.rb#47
2823
- def critical?; end
2824
-
2825
- # source://test-unit//lib/test/unit/omission.rb#27
2826
- def label; end
2827
-
2828
- # Returns the value of attribute location.
2829
- #
2830
- # source://test-unit//lib/test/unit/omission.rb#7
2831
- def location; end
2832
-
2833
- # Returns a verbose version of the error description.
2834
- #
2835
- # source://test-unit//lib/test/unit/omission.rb#37
2836
- def long_display; end
2837
-
2838
- # Returns the value of attribute message.
2839
- #
2840
- # source://test-unit//lib/test/unit/omission.rb#7
2841
- def message; end
2842
-
2843
- # Returns the value of attribute method_name.
2844
- #
2845
- # source://test-unit//lib/test/unit/omission.rb#8
2846
- def method_name; end
2847
-
2848
- # Returns a brief version of the error description.
2849
- #
2850
- # source://test-unit//lib/test/unit/omission.rb#32
2851
- def short_display; end
2852
-
2853
- # Returns a single character representation of a omission.
2854
- #
2855
- # source://test-unit//lib/test/unit/omission.rb#23
2856
- def single_character_display; end
2857
-
2858
- # Returns the value of attribute test_name.
2859
- #
2860
- # source://test-unit//lib/test/unit/omission.rb#7
2861
- def test_name; end
2862
-
2863
- # Overridden to return long_display.
2864
- #
2865
- # source://test-unit//lib/test/unit/omission.rb#43
2866
- def to_s; end
2867
- end
2868
-
2869
- # source://test-unit//lib/test/unit/omission.rb#11
2870
- Test::Unit::Omission::LABEL = T.let(T.unsafe(nil), String)
2871
-
2872
- # source://test-unit//lib/test/unit/omission.rb#10
2873
- Test::Unit::Omission::SINGLE_CHARACTER = T.let(T.unsafe(nil), String)
2874
-
2875
- # source://test-unit//lib/test/unit/omission.rb#151
2876
- module Test::Unit::OmissionHandler
2877
- private
2878
-
2879
- # source://test-unit//lib/test/unit/omission.rb#159
2880
- def handle_omitted_error(exception); end
2881
-
2882
- class << self
2883
- # @private
2884
- #
2885
- # source://test-unit//lib/test/unit/omission.rb#153
2886
- def included(base); end
2887
- end
2888
- end
2889
-
2890
- # source://test-unit//lib/test/unit/omission.rb#52
2891
- class Test::Unit::OmittedError < ::StandardError; end
2892
-
2893
- # source://test-unit//lib/test/unit/pending.rb#52
2894
- class Test::Unit::PendedError < ::StandardError; end
2895
-
2896
- # source://test-unit//lib/test/unit/pending.rb#5
2897
- class Test::Unit::Pending
2898
- include ::Test::Unit::Util::BacktraceFilter
2899
-
2900
- # Creates a new Pending with the given location and
2901
- # message.
2902
- #
2903
- # @return [Pending] a new instance of Pending
2904
- #
2905
- # source://test-unit//lib/test/unit/pending.rb#15
2906
- def initialize(test_name, location, message, options = T.unsafe(nil)); end
2907
-
2908
- # @return [Boolean]
2909
- #
2910
- # source://test-unit//lib/test/unit/pending.rb#47
2911
- def critical?; end
2912
-
2913
- # source://test-unit//lib/test/unit/pending.rb#27
2914
- def label; end
2915
-
2916
- # Returns the value of attribute location.
2917
- #
2918
- # source://test-unit//lib/test/unit/pending.rb#7
2919
- def location; end
2920
-
2921
- # Returns a verbose version of the error description.
2922
- #
2923
- # source://test-unit//lib/test/unit/pending.rb#37
2924
- def long_display; end
2925
-
2926
- # Returns the value of attribute message.
2927
- #
2928
- # source://test-unit//lib/test/unit/pending.rb#7
2929
- def message; end
2930
-
2931
- # Returns the value of attribute method_name.
2932
- #
2933
- # source://test-unit//lib/test/unit/pending.rb#8
2934
- def method_name; end
2935
-
2936
- # Returns a brief version of the error description.
2937
- #
2938
- # source://test-unit//lib/test/unit/pending.rb#32
2939
- def short_display; end
2940
-
2941
- # Returns a single character representation of a pending.
2942
- #
2943
- # source://test-unit//lib/test/unit/pending.rb#23
2944
- def single_character_display; end
2945
-
2946
- # Returns the value of attribute test_name.
2947
- #
2948
- # source://test-unit//lib/test/unit/pending.rb#7
2949
- def test_name; end
2950
-
2951
- # Overridden to return long_display.
2952
- #
2953
- # source://test-unit//lib/test/unit/pending.rb#43
2954
- def to_s; end
2955
- end
2956
-
2957
- # source://test-unit//lib/test/unit/pending.rb#11
2958
- Test::Unit::Pending::LABEL = T.let(T.unsafe(nil), String)
2959
-
2960
- # source://test-unit//lib/test/unit/pending.rb#10
2961
- Test::Unit::Pending::SINGLE_CHARACTER = T.let(T.unsafe(nil), String)
2962
-
2963
- # source://test-unit//lib/test/unit/pending.rb#108
2964
- module Test::Unit::PendingHandler
2965
- private
2966
-
2967
- # source://test-unit//lib/test/unit/pending.rb#116
2968
- def handle_pended_error(exception); end
2969
-
2970
- class << self
2971
- # @private
2972
- #
2973
- # source://test-unit//lib/test/unit/pending.rb#110
2974
- def included(base); end
2975
- end
2976
- end
2977
-
2978
- # source://test-unit//lib/test/unit/priority.rb#3
2979
- module Test::Unit::Priority
2980
- mixes_in_class_methods ::Test::Unit::Priority::ClassMethods
2981
-
2982
- # source://test-unit//lib/test/unit/priority.rb#183
2983
- def priority_setup; end
2984
-
2985
- # source://test-unit//lib/test/unit/priority.rb#188
2986
- def priority_teardown; end
2987
-
2988
- class << self
2989
- # source://test-unit//lib/test/unit/priority.rb#38
2990
- def available_values; end
2991
-
2992
- # source://test-unit//lib/test/unit/priority.rb#30
2993
- def default; end
2994
-
2995
- # source://test-unit//lib/test/unit/priority.rb#34
2996
- def default=(default); end
2997
-
2998
- # source://test-unit//lib/test/unit/priority.rb#25
2999
- def disable; end
3000
-
3001
- # source://test-unit//lib/test/unit/priority.rb#19
3002
- def enable; end
3003
-
3004
- # @return [Boolean]
3005
- #
3006
- # source://test-unit//lib/test/unit/priority.rb#15
3007
- def enabled?; end
3008
-
3009
- # @private
3010
- #
3011
- # source://test-unit//lib/test/unit/priority.rb#5
3012
- def included(base); end
3013
- end
3014
- end
3015
-
3016
- # source://test-unit//lib/test/unit/priority.rb#43
3017
- class Test::Unit::Priority::Checker
3018
- # @return [Checker] a new instance of Checker
3019
- #
3020
- # source://test-unit//lib/test/unit/priority.rb#97
3021
- def initialize(test); end
3022
-
3023
- # @return [Boolean]
3024
- #
3025
- # source://test-unit//lib/test/unit/priority.rb#113
3026
- def need_to_run?; end
3027
-
3028
- # source://test-unit//lib/test/unit/priority.rb#101
3029
- def setup; end
3030
-
3031
- # source://test-unit//lib/test/unit/priority.rb#105
3032
- def teardown; end
3033
-
3034
- # Returns the value of attribute test.
3035
- #
3036
- # source://test-unit//lib/test/unit/priority.rb#96
3037
- def test; end
3038
-
3039
- private
3040
-
3041
- # source://test-unit//lib/test/unit/priority.rb#148
3042
- def escape_class_name(class_name); end
3043
-
3044
- # source://test-unit//lib/test/unit/priority.rb#156
3045
- def escape_name(name); end
3046
-
3047
- # source://test-unit//lib/test/unit/priority.rb#152
3048
- def escaped_method_name; end
3049
-
3050
- # source://test-unit//lib/test/unit/priority.rb#144
3051
- def passed_file; end
3052
-
3053
- # @return [Boolean]
3054
- #
3055
- # source://test-unit//lib/test/unit/priority.rb#118
3056
- def previous_test_success?; end
3057
-
3058
- # @raise [Errno::EACCES]
3059
- #
3060
- # source://test-unit//lib/test/unit/priority.rb#122
3061
- def result_dir; end
3062
-
3063
- class << self
3064
- # source://test-unit//lib/test/unit/priority.rb#59
3065
- def available_priorities; end
3066
-
3067
- # @return [Boolean]
3068
- #
3069
- # source://test-unit//lib/test/unit/priority.rb#45
3070
- def have_priority?(name); end
3071
-
3072
- # @return [Boolean]
3073
- #
3074
- # source://test-unit//lib/test/unit/priority.rb#50
3075
- def need_to_run?(test); end
3076
-
3077
- # @return [Boolean]
3078
- #
3079
- # source://test-unit//lib/test/unit/priority.rb#74
3080
- def run_priority_high?(test); end
3081
-
3082
- # @return [Boolean]
3083
- #
3084
- # source://test-unit//lib/test/unit/priority.rb#70
3085
- def run_priority_important?(test); end
3086
-
3087
- # @return [Boolean]
3088
- #
3089
- # source://test-unit//lib/test/unit/priority.rb#82
3090
- def run_priority_low?(test); end
3091
-
3092
- # @return [Boolean]
3093
- #
3094
- # source://test-unit//lib/test/unit/priority.rb#66
3095
- def run_priority_must?(test); end
3096
-
3097
- # @return [Boolean]
3098
- #
3099
- # source://test-unit//lib/test/unit/priority.rb#86
3100
- def run_priority_never?(test); end
3101
-
3102
- # @return [Boolean]
3103
- #
3104
- # source://test-unit//lib/test/unit/priority.rb#78
3105
- def run_priority_normal?(test); end
3106
-
3107
- private
3108
-
3109
- # source://test-unit//lib/test/unit/priority.rb#91
3110
- def priority_check_method_name(priority_name); end
3111
- end
3112
- end
3113
-
3114
- # source://test-unit//lib/test/unit/priority.rb#174
3115
- module Test::Unit::Priority::ClassMethods
3116
- # source://test-unit//lib/test/unit/priority.rb#175
3117
- def priority(name, *tests); end
3118
- end
3119
-
3120
- # Ties everything together. If you subclass and add your own
3121
- # test methods, it takes care of making them into tests and
3122
- # wrapping those tests into a suite. It also does the
3123
- # nitty-gritty of actually running an individual test and
3124
- # collecting its results into a Test::Unit::TestResult object.
3125
- #
3126
- # You can run two hooks before/after a TestCase run.
3127
- #
3128
- # Example:
3129
- #
3130
- # class TestMyClass < Test::Unit::TestCase
3131
- # class << self
3132
- # def startup
3133
- # ...
3134
- # end
3135
- #
3136
- # def shutdown
3137
- # ...
3138
- # end
3139
- # end
3140
- #
3141
- # def setup
3142
- # ...
3143
- # end
3144
- #
3145
- # def cleanup
3146
- # ...
3147
- # end
3148
- #
3149
- # def teardown
3150
- # ...
3151
- # end
3152
- #
3153
- # def test_my_method1
3154
- # ...
3155
- # end
3156
- #
3157
- # def test_my_method2
3158
- # ...
3159
- # end
3160
- # end
3161
- #
3162
- # Here is a call order:
3163
- #
3164
- # 1. startup
3165
- # 1. setup
3166
- # 1. test_my_method1
3167
- # 1. cleanup
3168
- # 1. teardown
3169
- # 1. setup
3170
- # 1. test_my_method2
3171
- # 1. cleanup
3172
- # 1. teardown
3173
- # 1. shutdown
3174
- #
3175
- # You can set an attribute to each test.
3176
- #
3177
- # Example:
3178
- #
3179
- # class TestMyClass < Test::Unit::TestCase
3180
- # attribute :speed, :fast
3181
- # def test_my_fast_method
3182
- # # You can get the attribute via `self[]`
3183
- # self[:speed] # => :fast
3184
- # ...
3185
- # end
3186
- #
3187
- # attribute :speed, :slow
3188
- # def test_my_slow_method
3189
- # self[:speed] # => :slow
3190
- # ...
3191
- # end
3192
- # end
3193
- #
3194
- # source://test-unit//lib/test/unit/testcase.rb#104
3195
- class Test::Unit::TestCase
3196
- include ::Test::Unit::Attribute
3197
- include ::Test::Unit::Fixture
3198
- include ::Test::Unit::ExceptionHandler
3199
- include ::Test::Unit::ErrorHandler
3200
- include ::Test::Unit::FailureHandler
3201
- include ::Test::Unit::TestCasePendingSupport
3202
- include ::Test::Unit::PendingHandler
3203
- include ::Test::Unit::TestCaseOmissionSupport
3204
- include ::Test::Unit::OmissionHandler
3205
- include ::Test::Unit::TestCaseNotificationSupport
3206
- include ::Test::Unit::NotificationHandler
3207
- include ::Test::Unit::Priority
3208
- include ::Test::Unit::Data
3209
- include ::Test::Unit::Assertions
3210
- include ::Test::Unit::Util::BacktraceFilter
3211
- include ::Test::Unit::Util::Output
3212
- extend ::Test::Unit::Attribute::BaseClassMethods
3213
- extend ::Test::Unit::Attribute::ClassMethods
3214
- extend ::Test::Unit::Fixture::ClassMethods
3215
- extend ::Test::Unit::ExceptionHandler::ClassMethods
3216
- extend ::Test::Unit::Priority::ClassMethods
3217
- extend ::Test::Unit::Data::ClassMethods
3218
-
3219
- # Creates a new instance of the fixture for running the
3220
- # test represented by test_method_name.
3221
- #
3222
- # @return [TestCase] a new instance of TestCase
3223
- #
3224
- # source://test-unit//lib/test/unit/testcase.rb#528
3225
- def initialize(test_method_name); end
3226
-
3227
- # It's handy to be able to compare TestCase instances.
3228
- #
3229
- # source://test-unit//lib/test/unit/testcase.rb#794
3230
- def ==(other); end
3231
-
3232
- # Notify that the test is passed. Normally, it is not needed
3233
- # because #run calls it automatically. If you want to override
3234
- # #run, it is not a good idea. Please contact test-unit
3235
- # developers. We will help you without your custom #run. For
3236
- # example, we may add a new hook in #run.
3237
- #
3238
- # This is a public API for developers who extend test-unit.
3239
- #
3240
- # @return [void]
3241
- #
3242
- # source://test-unit//lib/test/unit/testcase.rb#843
3243
- def add_pass; end
3244
-
3245
- # Assigns test data to the test. It is used in internal.
3246
- #
3247
- # source://test-unit//lib/test/unit/testcase.rb#534
3248
- def assign_test_data(label, data); end
3249
-
3250
- # Called after every test method runs but the test
3251
- # method isn't marked as 'passed'. Can be used to
3252
- # clean up and/or verify tested condition.
3253
- # e.g. Can be used to verify mock.
3254
- #
3255
- # You can add additional cleanup tasks by the following
3256
- # code:
3257
- #
3258
- # class TestMyClass < Test::Unit::TestCase
3259
- # def cleanup
3260
- # ...
3261
- # end
3262
- #
3263
- # cleanup
3264
- # def my_cleanup1
3265
- # ...
3266
- # end
3267
- #
3268
- # cleanup do
3269
- # ... # cleanup callback1
3270
- # end
3271
- #
3272
- # cleanup
3273
- # def my_cleanup2
3274
- # ...
3275
- # end
3276
- #
3277
- # cleanup do
3278
- # ... # cleanup callback2
3279
- # end
3280
- #
3281
- # def test_my_class
3282
- # ...
3283
- # end
3284
- # end
3285
- #
3286
- # Here is a call order:
3287
- #
3288
- # * test_my_class
3289
- # * cleanup callback2
3290
- # * my_cleanup2
3291
- # * cleanup callback1
3292
- # * my_cleanup1
3293
- # * cleanup
3294
- #
3295
- # source://test-unit//lib/test/unit/testcase.rb#691
3296
- def cleanup; end
3297
-
3298
- # Returns test data for the test. If the test isn't associated
3299
- # with any test data, it returns `nil`.
3300
- #
3301
- # source://test-unit//lib/test/unit/testcase.rb#756
3302
- def data; end
3303
-
3304
- # Returns a label of test data for the test. If the
3305
- # test isn't associated with any test data, it returns
3306
- # `nil`.
3307
- #
3308
- # source://test-unit//lib/test/unit/testcase.rb#750
3309
- def data_label; end
3310
-
3311
- # source://test-unit//lib/test/unit/testcase.rb#739
3312
- def default_test; end
3313
-
3314
- # Returns a description for the test. A description
3315
- # will be associated by Test::Unit::TestCase.test or
3316
- # Test::Unit::TestCase.description.
3317
- #
3318
- # Returns a name for the test for no description test.
3319
- #
3320
- # source://test-unit//lib/test/unit/testcase.rb#784
3321
- def description; end
3322
-
3323
- # Returns elapsed time for the test was ran.
3324
- #
3325
- # source://test-unit//lib/test/unit/testcase.rb#807
3326
- def elapsed_time; end
3327
-
3328
- # Returns whether the test is interrupted.
3329
- #
3330
- # @return [Boolean]
3331
- #
3332
- # source://test-unit//lib/test/unit/testcase.rb#812
3333
- def interrupted?; end
3334
-
3335
- # Returns a human-readable name for the specific test that this
3336
- # instance of TestCase represents.
3337
- #
3338
- # `#local_name` doesn't include class name. `#name` includes
3339
- # class name.
3340
- #
3341
- # source://test-unit//lib/test/unit/testcase.rb#771
3342
- def local_name; end
3343
-
3344
- # Returns the value of attribute method_name.
3345
- #
3346
- # source://test-unit//lib/test/unit/testcase.rb#524
3347
- def method_name; end
3348
-
3349
- # Returns a human-readable name for the specific test that
3350
- # this instance of TestCase represents.
3351
- #
3352
- # source://test-unit//lib/test/unit/testcase.rb#762
3353
- def name; end
3354
-
3355
- # Returns whether this individual test passed or
3356
- # not. Primarily for use in teardown so that artifacts
3357
- # can be left behind if the test fails.
3358
- #
3359
- # @return [Boolean]
3360
- #
3361
- # source://test-unit//lib/test/unit/testcase.rb#819
3362
- def passed?; end
3363
-
3364
- # Notify that a problem is occurred in the test. It means that
3365
- # the test is a failed test. If any failed tests exist in test
3366
- # suites, the test process exits with failure exit status.
3367
- #
3368
- # This is a public API for developers who extend test-unit.
3369
- #
3370
- # @return [void]
3371
- #
3372
- # source://test-unit//lib/test/unit/testcase.rb#830
3373
- def problem_occurred; end
3374
-
3375
- # Runs the individual test method represented by this
3376
- # instance of the fixture, collecting statistics, failures
3377
- # and errors in result.
3378
- #
3379
- # source://test-unit//lib/test/unit/testcase.rb#555
3380
- def run(result); end
3381
-
3382
- # Called before every test method runs. Can be used
3383
- # to set up fixture information.
3384
- #
3385
- # You can add additional setup tasks by the following
3386
- # code:
3387
- #
3388
- # class TestMyClass < Test::Unit::TestCase
3389
- # def setup
3390
- # ...
3391
- # end
3392
- #
3393
- # setup
3394
- # def my_setup1
3395
- # ...
3396
- # end
3397
- #
3398
- # setup do
3399
- # ... # setup callback1
3400
- # end
3401
- #
3402
- # setup
3403
- # def my_setup2
3404
- # ...
3405
- # end
3406
- #
3407
- # setup do
3408
- # ... # setup callback2
3409
- # end
3410
- #
3411
- # def test_my_class
3412
- # ...
3413
- # end
3414
- # end
3415
- #
3416
- # Here is a call order:
3417
- #
3418
- # * setup
3419
- # * my_setup1
3420
- # * setup callback1
3421
- # * my_setup2
3422
- # * setup callback2
3423
- # * test_my_class
3424
- #
3425
- # source://test-unit//lib/test/unit/testcase.rb#644
3426
- def setup; end
3427
-
3428
- # source://test-unit//lib/test/unit/testcase.rb#743
3429
- def size; end
3430
-
3431
- # Returns a Time at the test was started.
3432
- #
3433
- # source://test-unit//lib/test/unit/testcase.rb#802
3434
- def start_time; end
3435
-
3436
- # Called after every test method runs. Can be used to tear
3437
- # down fixture information.
3438
- #
3439
- # You can add additional teardown tasks by the following
3440
- # code:
3441
- #
3442
- # class TestMyClass < Test::Unit::TestCase
3443
- # def teardown
3444
- # ...
3445
- # end
3446
- #
3447
- # teardown
3448
- # def my_teardown1
3449
- # ...
3450
- # end
3451
- #
3452
- # teardown do
3453
- # ... # teardown callback1
3454
- # end
3455
- #
3456
- # teardown
3457
- # def my_teardown2
3458
- # ...
3459
- # end
3460
- #
3461
- # teardown do
3462
- # ... # teardown callback2
3463
- # end
3464
- #
3465
- # def test_my_class
3466
- # ...
3467
- # end
3468
- # end
3469
- #
3470
- # Here is a call order:
3471
- #
3472
- # * test_my_class
3473
- # * teardown callback2
3474
- # * my_teardown2
3475
- # * teardown callback1
3476
- # * my_teardown1
3477
- # * teardown
3478
- #
3479
- # source://test-unit//lib/test/unit/testcase.rb#736
3480
- def teardown; end
3481
-
3482
- # Overridden to return #name.
3483
- #
3484
- # source://test-unit//lib/test/unit/testcase.rb#789
3485
- def to_s; end
3486
-
3487
- # Returns the test is valid test. It is used in internal.
3488
- #
3489
- # @return [Boolean]
3490
- #
3491
- # source://test-unit//lib/test/unit/testcase.rb#539
3492
- def valid?; end
3493
-
3494
- private
3495
-
3496
- # source://test-unit//lib/test/unit/testcase.rb#887
3497
- def add_assertion; end
3498
-
3499
- # source://test-unit//lib/test/unit/testcase.rb#848
3500
- def current_result; end
3501
-
3502
- # source://test-unit//lib/test/unit/testcase.rb#875
3503
- def handle_exception(exception); end
3504
-
3505
- # source://test-unit//lib/test/unit/testcase.rb#852
3506
- def run_test; end
3507
-
3508
- class << self
3509
- # source://test-unit//lib/test/unit/testcase.rb#173
3510
- def added_method_names; end
3511
-
3512
- # Describes a test.
3513
- #
3514
- # The following example associates "register a
3515
- # normal user" description with "test_register"
3516
- # test.
3517
- #
3518
- # description "register a normal user"
3519
- # def test_register
3520
- # ...
3521
- # end
3522
- #
3523
- # source://test-unit//lib/test/unit/testcase.rb#349
3524
- def description(value, target = T.unsafe(nil)); end
3525
-
3526
- # source://test-unit//lib/test/unit/testcase.rb#441
3527
- def find_locations(query); end
3528
-
3529
- # source://test-unit//lib/test/unit/testcase.rb#133
3530
- def include(*modules, &block); end
3531
-
3532
- # source://test-unit//lib/test/unit/testcase.rb#128
3533
- def inherited(sub_class); end
3534
-
3535
- # source://test-unit//lib/test/unit/testcase.rb#144
3536
- def method_added(name); end
3537
-
3538
- # Declares that the following test uses Ractor.
3539
- #
3540
- # Tests that use Ractor are executed at the end. Because multi
3541
- # Ractor mode is enabled in the current process and it's not
3542
- # disabled even when only one Ractor is running after running
3543
- # a test that uses Ractor on Ruby 3.0. It will be solved in
3544
- # the future.
3545
- #
3546
- # This is implemented by setting the `:ractor` attribute of
3547
- # the test to `true`.
3548
- #
3549
- # @example Declares that test_do_something_with_ractor uses Ractor
3550
- #
3551
- # ractor
3552
- # def test_do_something_with_ractor
3553
- # Ractor.new do
3554
- # # ...
3555
- # end
3556
- # end
3557
- # @param options [Hash] See {Attribute::ClassMethods#attribute}
3558
- # for details.
3559
- # @return [void]
3560
- # @since 3.4.6
3561
- #
3562
- # source://test-unit//lib/test/unit/testcase.rb#380
3563
- def ractor(options = T.unsafe(nil)); end
3564
-
3565
- # Called after every test case runs. Can be used to tear
3566
- # down fixture information used in test case scope.
3567
- #
3568
- # Here is an example test case:
3569
- #
3570
- # class TestMyClass < Test::Unit::TestCase
3571
- # class << self
3572
- # def shutdown
3573
- # ...
3574
- # end
3575
- # end
3576
- #
3577
- # def teardown
3578
- # ...
3579
- # end
3580
- #
3581
- # def test_my_class1
3582
- # ...
3583
- # end
3584
- #
3585
- # def test_my_class2
3586
- # ...
3587
- # end
3588
- # end
3589
- #
3590
- # Here is a call order:
3591
- #
3592
- # * test_my_class1 (or test_my_class2)
3593
- # * teardown
3594
- # * test_my_class2 (or test_my_class1)
3595
- # * teardown
3596
- # * shutdown
3597
- #
3598
- # Note that you should not assume test order. Tests
3599
- # should be worked in any order.
3600
- #
3601
- # source://test-unit//lib/test/unit/testcase.rb#259
3602
- def shutdown; end
3603
-
3604
- # Called before every test case runs. Can be used
3605
- # to set up fixture information used in test case
3606
- # scope.
3607
- #
3608
- # Here is an example test case:
3609
- #
3610
- # class TestMyClass < Test::Unit::TestCase
3611
- # class << self
3612
- # def startup
3613
- # ...
3614
- # end
3615
- # end
3616
- #
3617
- # def setup
3618
- # ...
3619
- # end
3620
- #
3621
- # def test_my_class1
3622
- # ...
3623
- # end
3624
- #
3625
- # def test_my_class2
3626
- # ...
3627
- # end
3628
- # end
3629
- #
3630
- # Here is a call order:
3631
- #
3632
- # * startup
3633
- # * setup
3634
- # * test_my_class1 (or test_my_class2)
3635
- # * setup
3636
- # * test_my_class2 (or test_my_class1)
3637
- #
3638
- # Note that you should not assume test order. Tests
3639
- # should be worked in any order.
3640
- #
3641
- # source://test-unit//lib/test/unit/testcase.rb#221
3642
- def startup; end
3643
-
3644
- # Defines a sub test case.
3645
- #
3646
- # This is a syntax sugar. The both of the following codes are
3647
- # the same in meaning:
3648
- #
3649
- # Standard:
3650
- #
3651
- # class TestParent < Test::Unit::TestCase
3652
- # class TestChild < self
3653
- # def test_in_child
3654
- # end
3655
- # end
3656
- # end
3657
- #
3658
- # Syntax sugar:
3659
- #
3660
- # class TestParent < Test::Unit::TestCase
3661
- # sub_test_case("TestChild") do
3662
- # def test_in_child
3663
- # end
3664
- # end
3665
- # end
3666
- #
3667
- # The difference of them are the following:
3668
- #
3669
- # * Test case created by {sub_test_case} is an anonymous class.
3670
- # So you can't refer the test case by name.
3671
- # * The class name of class style must follow
3672
- # constant naming rule in Ruby. But the name of test case
3673
- # created by {sub_test_case} doesn't need to follow the rule.
3674
- # For example, you can use a space in name such as "child test".
3675
- #
3676
- # @param name [String] The name of newly created sub test case.
3677
- # @return [Test::Unit::TestCase] Created sub test case class.
3678
- # @yield The block is evaluated under the newly created sub test
3679
- # case class context.
3680
- #
3681
- # source://test-unit//lib/test/unit/testcase.rb#421
3682
- def sub_test_case(name, &block); end
3683
-
3684
- # Rolls up all of the test* methods in the fixture into
3685
- # one suite, creating a new instance of the fixture for
3686
- # each method.
3687
- #
3688
- # source://test-unit//lib/test/unit/testcase.rb#180
3689
- def suite; end
3690
-
3691
- # Defines a test in declarative syntax or marks
3692
- # following method as a test method.
3693
- #
3694
- # In declarative syntax usage, the following two
3695
- # test definitions are the almost same:
3696
- #
3697
- # description "register user"
3698
- # def test_register_user
3699
- # ...
3700
- # end
3701
- #
3702
- # test "register user" do
3703
- # ...
3704
- # end
3705
- #
3706
- # In test method mark usage, the "my_test_method" is
3707
- # treated as a test method:
3708
- #
3709
- # test
3710
- # def my_test_method
3711
- # assert_equal("call me", ...)
3712
- # end
3713
- #
3714
- # source://test-unit//lib/test/unit/testcase.rb#312
3715
- def test(*test_description_or_targets, &block); end
3716
-
3717
- # Checks whether a test that is matched the query is
3718
- # defined.
3719
- #
3720
- # @option query
3721
- # @option query
3722
- # @option query
3723
- # @param query [Hash] a customizable set of options
3724
- # @return [Boolean]
3725
- #
3726
- # source://test-unit//lib/test/unit/testcase.rb#436
3727
- def test_defined?(query); end
3728
-
3729
- # Returns the current test order. This returns
3730
- # `:alphabetic` by default.
3731
- #
3732
- # source://test-unit//lib/test/unit/testcase.rb#266
3733
- def test_order; end
3734
-
3735
- # Sets the current test order.
3736
- #
3737
- # Here are the available _order_:
3738
- #
3739
- # :alphabetic
3740
- # : Default. Tests are sorted in alphabetic order.
3741
- #
3742
- # :random
3743
- # : Tests are sorted in random order.
3744
- #
3745
- # :defined
3746
- # : Tests are sorted in defined order.
3747
- #
3748
- # source://test-unit//lib/test/unit/testcase.rb#286
3749
- def test_order=(order); end
3750
-
3751
- private
3752
-
3753
- # @private
3754
- #
3755
- # source://test-unit//lib/test/unit/testcase.rb#482
3756
- def add_method_location(location); end
3757
-
3758
- # @private
3759
- #
3760
- # source://test-unit//lib/test/unit/testcase.rb#477
3761
- def method_locations; end
3762
-
3763
- # @private
3764
- #
3765
- # source://test-unit//lib/test/unit/testcase.rb#513
3766
- def sub_test_case_class(name); end
3767
-
3768
- # @private
3769
- #
3770
- # source://test-unit//lib/test/unit/testcase.rb#489
3771
- def target_method_locations(path); end
3772
- end
3773
- end
3774
-
3775
- # source://test-unit//lib/test/unit/testcase.rb#125
3776
- Test::Unit::TestCase::AVAILABLE_ORDERS = T.let(T.unsafe(nil), Array)
3777
-
3778
- # source://test-unit//lib/test/unit/testcase.rb#124
3779
- Test::Unit::TestCase::DESCENDANTS = T.let(T.unsafe(nil), Array)
3780
-
3781
- # source://test-unit//lib/test/unit/testcase.rb#120
3782
- Test::Unit::TestCase::FINISHED = T.let(T.unsafe(nil), String)
3783
-
3784
- # source://test-unit//lib/test/unit/testcase.rb#122
3785
- Test::Unit::TestCase::FINISHED_OBJECT = T.let(T.unsafe(nil), String)
3786
-
3787
- # source://test-unit//lib/test/unit/testcase.rb#891
3788
- class Test::Unit::TestCase::InternalData
3789
- # @return [InternalData] a new instance of InternalData
3790
- #
3791
- # source://test-unit//lib/test/unit/testcase.rb#894
3792
- def initialize; end
3793
-
3794
- # source://test-unit//lib/test/unit/testcase.rb#911
3795
- def assign_test_data(label, data); end
3796
-
3797
- # Returns the value of attribute elapsed_time.
3798
- #
3799
- # source://test-unit//lib/test/unit/testcase.rb#892
3800
- def elapsed_time; end
3801
-
3802
- # @return [Boolean]
3803
- #
3804
- # source://test-unit//lib/test/unit/testcase.rb#916
3805
- def have_test_data?; end
3806
-
3807
- # source://test-unit//lib/test/unit/testcase.rb#932
3808
- def interrupted; end
3809
-
3810
- # @return [Boolean]
3811
- #
3812
- # source://test-unit//lib/test/unit/testcase.rb#907
3813
- def interrupted?; end
3814
-
3815
- # @return [Boolean]
3816
- #
3817
- # source://test-unit//lib/test/unit/testcase.rb#903
3818
- def passed?; end
3819
-
3820
- # source://test-unit//lib/test/unit/testcase.rb#928
3821
- def problem_occurred; end
3822
-
3823
- # Returns the value of attribute start_time.
3824
- #
3825
- # source://test-unit//lib/test/unit/testcase.rb#892
3826
- def start_time; end
3827
-
3828
- # Returns the value of attribute test_data.
3829
- #
3830
- # source://test-unit//lib/test/unit/testcase.rb#893
3831
- def test_data; end
3832
-
3833
- # Returns the value of attribute test_data_label.
3834
- #
3835
- # source://test-unit//lib/test/unit/testcase.rb#893
3836
- def test_data_label; end
3837
-
3838
- # source://test-unit//lib/test/unit/testcase.rb#924
3839
- def test_finished; end
3840
-
3841
- # source://test-unit//lib/test/unit/testcase.rb#920
3842
- def test_started; end
3843
- end
3844
-
3845
- # source://test-unit//lib/test/unit/testcase.rb#119
3846
- Test::Unit::TestCase::STARTED = T.let(T.unsafe(nil), String)
3847
-
3848
- # source://test-unit//lib/test/unit/testcase.rb#121
3849
- Test::Unit::TestCase::STARTED_OBJECT = T.let(T.unsafe(nil), String)
3850
-
3851
- # source://test-unit//lib/test/unit/notification.rb#56
3852
- module Test::Unit::TestCaseNotificationSupport
3853
- include ::Test::Unit::NotificationHandler
3854
-
3855
- # Notify some information.
3856
- #
3857
- # Example:
3858
- #
3859
- # def test_notification
3860
- # notify("I'm here!")
3861
- # # Reached here
3862
- # notify("Special!") if special_case?
3863
- # # Reached here too
3864
- # end
3865
- #
3866
- # options:
3867
- #
3868
- # :backtrace override backtrace.
3869
- #
3870
- # source://test-unit//lib/test/unit/notification.rb#79
3871
- def notify(message, options = T.unsafe(nil), &block); end
3872
-
3873
- private
3874
-
3875
- # source://test-unit//lib/test/unit/notification.rb#87
3876
- def add_notification(notification); end
3877
-
3878
- class << self
3879
- # @private
3880
- #
3881
- # source://test-unit//lib/test/unit/notification.rb#58
3882
- def included(base); end
3883
- end
3884
- end
3885
-
3886
- # source://test-unit//lib/test/unit/omission.rb#56
3887
- module Test::Unit::TestCaseOmissionSupport
3888
- include ::Test::Unit::OmissionHandler
3889
-
3890
- # Omit the test or part of the test.
3891
- #
3892
- # Example:
3893
- #
3894
- # def test_omission
3895
- # omit
3896
- # # Not reached here
3897
- # end
3898
- #
3899
- # def test_omission_with_here
3900
- # omit do
3901
- # # Not ran here
3902
- # end
3903
- # # Reached here
3904
- # end
3905
- #
3906
- # source://test-unit//lib/test/unit/omission.rb#80
3907
- def omit(message = T.unsafe(nil), &block); end
3908
-
3909
- # Omit the test or part of the test if _condition_ is
3910
- # true.
3911
- #
3912
- # Example:
3913
- #
3914
- # def test_omission
3915
- # omit_if("".empty?)
3916
- # # Not reached here
3917
- # end
3918
- #
3919
- # def test_omission_with_here
3920
- # omit_if(true) do
3921
- # # Not ran here
3922
- # end
3923
- # omit_if(false) do
3924
- # # Reached here
3925
- # end
3926
- # # Reached here too
3927
- # end
3928
- #
3929
- # source://test-unit//lib/test/unit/omission.rb#110
3930
- def omit_if(condition, *args, &block); end
3931
-
3932
- # Omit the test or part of the test if _condition_ is
3933
- # not true.
3934
- #
3935
- # Example:
3936
- #
3937
- # def test_omission
3938
- # omit_unless("string".empty?)
3939
- # # Not reached here
3940
- # end
3941
- #
3942
- # def test_omission_with_here
3943
- # omit_unless(true) do
3944
- # # Reached here
3945
- # end
3946
- # omit_unless(false) do
3947
- # # Not ran here
3948
- # end
3949
- # # Reached here too
3950
- # end
3951
- #
3952
- # source://test-unit//lib/test/unit/omission.rb#137
3953
- def omit_unless(condition, *args, &block); end
3954
-
3955
- private
3956
-
3957
- # source://test-unit//lib/test/unit/omission.rb#146
3958
- def add_omission(omission); end
3959
-
3960
- class << self
3961
- # @private
3962
- #
3963
- # source://test-unit//lib/test/unit/omission.rb#58
3964
- def included(base); end
3965
- end
3966
- end
3967
-
3968
- # source://test-unit//lib/test/unit/pending.rb#56
3969
- module Test::Unit::TestCasePendingSupport
3970
- include ::Test::Unit::PendingHandler
3971
-
3972
- # Marks the test or part of the test is pending.
3973
- #
3974
- # Example:
3975
- #
3976
- # def test_pending
3977
- # pend
3978
- # # Not reached here
3979
- # end
3980
- #
3981
- # def test_pending_with_here
3982
- # pend do
3983
- # # Ran here
3984
- # # Fails if the block doesn't raise any error.
3985
- # # Because it means the block is passed unexpectedly.
3986
- # end
3987
- # # Reached here
3988
- # end
3989
- #
3990
- # source://test-unit//lib/test/unit/pending.rb#82
3991
- def pend(message = T.unsafe(nil), &block); end
3992
-
3993
- private
3994
-
3995
- # source://test-unit//lib/test/unit/pending.rb#102
3996
- def add_pending(pending); end
3997
-
3998
- class << self
3999
- # @private
4000
- #
4001
- # source://test-unit//lib/test/unit/pending.rb#58
4002
- def included(base); end
4003
- end
4004
- end
4005
-
4006
- # source://test-unit//lib/test/unit/error.rb#125
4007
- module Test::Unit::TestResultErrorSupport
4008
- # Records a Test::Unit::Error.
4009
- #
4010
- # source://test-unit//lib/test/unit/error.rb#129
4011
- def add_error(error); end
4012
-
4013
- # Returns the number of errors this TestResult has
4014
- # recorded.
4015
- #
4016
- # source://test-unit//lib/test/unit/error.rb#137
4017
- def error_count; end
4018
-
4019
- # @return [Boolean]
4020
- #
4021
- # source://test-unit//lib/test/unit/error.rb#141
4022
- def error_occurred?; end
4023
-
4024
- # Returns the value of attribute errors.
4025
- #
4026
- # source://test-unit//lib/test/unit/error.rb#126
4027
- def errors; end
4028
-
4029
- private
4030
-
4031
- # source://test-unit//lib/test/unit/error.rb#153
4032
- def error_summary; end
4033
-
4034
- # source://test-unit//lib/test/unit/error.rb#146
4035
- def initialize_containers; end
4036
- end
4037
-
4038
- # source://test-unit//lib/test/unit/failure.rb#136
4039
- module Test::Unit::TestResultFailureSupport
4040
- # Records a Test::Unit::Failure.
4041
- #
4042
- # source://test-unit//lib/test/unit/failure.rb#140
4043
- def add_failure(failure); end
4044
-
4045
- # Returns the number of failures this TestResult has
4046
- # recorded.
4047
- #
4048
- # source://test-unit//lib/test/unit/failure.rb#148
4049
- def failure_count; end
4050
-
4051
- # @return [Boolean]
4052
- #
4053
- # source://test-unit//lib/test/unit/failure.rb#152
4054
- def failure_occurred?; end
4055
-
4056
- # Returns the value of attribute failures.
4057
- #
4058
- # source://test-unit//lib/test/unit/failure.rb#137
4059
- def failures; end
4060
-
4061
- private
4062
-
4063
- # source://test-unit//lib/test/unit/failure.rb#164
4064
- def failure_summary; end
4065
-
4066
- # source://test-unit//lib/test/unit/failure.rb#157
4067
- def initialize_containers; end
4068
- end
4069
-
4070
- # source://test-unit//lib/test/unit/notification.rb#110
4071
- module Test::Unit::TestResultNotificationSupport
4072
- # Records a Test::Unit::Notification.
4073
- #
4074
- # source://test-unit//lib/test/unit/notification.rb#114
4075
- def add_notification(notification); end
4076
-
4077
- # Returns the number of notifications this TestResult has
4078
- # recorded.
4079
- #
4080
- # source://test-unit//lib/test/unit/notification.rb#122
4081
- def notification_count; end
4082
-
4083
- # Returns the value of attribute notifications.
4084
- #
4085
- # source://test-unit//lib/test/unit/notification.rb#111
4086
- def notifications; end
4087
-
4088
- private
4089
-
4090
- # source://test-unit//lib/test/unit/notification.rb#127
4091
- def initialize_containers; end
4092
-
4093
- # source://test-unit//lib/test/unit/notification.rb#133
4094
- def notification_summary; end
4095
- end
4096
-
4097
- # source://test-unit//lib/test/unit/omission.rb#170
4098
- module Test::Unit::TestResultOmissionSupport
4099
- # Records a Test::Unit::Omission.
4100
- #
4101
- # source://test-unit//lib/test/unit/omission.rb#174
4102
- def add_omission(omission); end
4103
-
4104
- # Returns the number of omissions this TestResult has
4105
- # recorded.
4106
- #
4107
- # source://test-unit//lib/test/unit/omission.rb#182
4108
- def omission_count; end
4109
-
4110
- # Returns the value of attribute omissions.
4111
- #
4112
- # source://test-unit//lib/test/unit/omission.rb#171
4113
- def omissions; end
4114
-
4115
- private
4116
-
4117
- # source://test-unit//lib/test/unit/omission.rb#187
4118
- def initialize_containers; end
4119
-
4120
- # source://test-unit//lib/test/unit/omission.rb#193
4121
- def omission_summary; end
4122
- end
4123
-
4124
- # source://test-unit//lib/test/unit/pending.rb#127
4125
- module Test::Unit::TestResultPendingSupport
4126
- # Records a Test::Unit::Pending.
4127
- #
4128
- # source://test-unit//lib/test/unit/pending.rb#131
4129
- def add_pending(pending); end
4130
-
4131
- # Returns the number of pendings this TestResult has
4132
- # recorded.
4133
- #
4134
- # source://test-unit//lib/test/unit/pending.rb#139
4135
- def pending_count; end
4136
-
4137
- # Returns the value of attribute pendings.
4138
- #
4139
- # source://test-unit//lib/test/unit/pending.rb#128
4140
- def pendings; end
4141
-
4142
- private
4143
-
4144
- # source://test-unit//lib/test/unit/pending.rb#144
4145
- def initialize_containers; end
4146
-
4147
- # source://test-unit//lib/test/unit/pending.rb#150
4148
- def pending_summary; end
4149
- end
4150
-
4151
- # A collection of tests which can be #run.
4152
- #
4153
- # Note: It is easy to confuse a TestSuite instance with
4154
- # something that has a static suite method; I know because _I_
4155
- # have trouble keeping them straight. Think of something that
4156
- # has a suite method as simply providing a way to get a
4157
- # meaningful TestSuite instance.
4158
- #
4159
- # source://test-unit//lib/test/unit/testsuite.rb#20
4160
- class Test::Unit::TestSuite
4161
- # Creates a new TestSuite with the given name.
4162
- #
4163
- # @return [TestSuite] a new instance of TestSuite
4164
- #
4165
- # source://test-unit//lib/test/unit/testsuite.rb#33
4166
- def initialize(name = T.unsafe(nil), test_case = T.unsafe(nil)); end
4167
-
4168
- # Adds the test to the suite.
4169
- #
4170
- # source://test-unit//lib/test/unit/testsuite.rb#67
4171
- def <<(test); end
4172
-
4173
- # It's handy to be able to compare TestSuite instances.
4174
- #
4175
- # source://test-unit//lib/test/unit/testsuite.rb#100
4176
- def ==(other); end
4177
-
4178
- # source://test-unit//lib/test/unit/testsuite.rb#72
4179
- def delete(test); end
4180
-
4181
- # source://test-unit//lib/test/unit/testsuite.rb#76
4182
- def delete_tests(tests); end
4183
-
4184
- # Returns the value of attribute elapsed_time.
4185
- #
4186
- # source://test-unit//lib/test/unit/testsuite.rb#21
4187
- def elapsed_time; end
4188
-
4189
- # @return [Boolean]
4190
- #
4191
- # source://test-unit//lib/test/unit/testsuite.rb#89
4192
- def empty?; end
4193
-
4194
- # Returns the value of attribute name.
4195
- #
4196
- # source://test-unit//lib/test/unit/testsuite.rb#21
4197
- def name; end
4198
-
4199
- # @return [Boolean]
4200
- #
4201
- # source://test-unit//lib/test/unit/testsuite.rb#106
4202
- def passed?; end
4203
-
4204
- # Test suite that has higher priority is ran prior to
4205
- # test suites that have lower priority.
4206
- #
4207
- # source://test-unit//lib/test/unit/testsuite.rb#25
4208
- def priority; end
4209
-
4210
- # Test suite that has higher priority is ran prior to
4211
- # test suites that have lower priority.
4212
- #
4213
- # source://test-unit//lib/test/unit/testsuite.rb#25
4214
- def priority=(_arg0); end
4215
-
4216
- # Runs the tests and/or suites contained in this
4217
- # TestSuite.
4218
- #
4219
- # source://test-unit//lib/test/unit/testsuite.rb#46
4220
- def run(result, &progress_block); end
4221
-
4222
- # Returns the rolled up number of tests in this suite;
4223
- # i.e. if the suite contains other suites, it counts the
4224
- # tests within those suites, not the suites themselves.
4225
- #
4226
- # source://test-unit//lib/test/unit/testsuite.rb#83
4227
- def size; end
4228
-
4229
- # Returns the value of attribute start_time.
4230
- #
4231
- # source://test-unit//lib/test/unit/testsuite.rb#21
4232
- def start_time; end
4233
-
4234
- # Returns the value of attribute test_case.
4235
- #
4236
- # source://test-unit//lib/test/unit/testsuite.rb#21
4237
- def test_case; end
4238
-
4239
- # Returns the value of attribute tests.
4240
- #
4241
- # source://test-unit//lib/test/unit/testsuite.rb#21
4242
- def tests; end
4243
-
4244
- # Overridden to return the name given the suite at
4245
- # creation.
4246
- #
4247
- # source://test-unit//lib/test/unit/testsuite.rb#95
4248
- def to_s; end
4249
-
4250
- private
4251
-
4252
- # source://test-unit//lib/test/unit/testsuite.rb#163
4253
- def handle_exception(exception, result); end
4254
-
4255
- # source://test-unit//lib/test/unit/testsuite.rb#154
4256
- def run_shutdown(result); end
4257
-
4258
- # source://test-unit//lib/test/unit/testsuite.rb#111
4259
- def run_startup(result); end
4260
-
4261
- # source://test-unit//lib/test/unit/testsuite.rb#120
4262
- def run_test(test, result); end
4263
- end
4264
-
4265
- # source://test-unit//lib/test/unit/testsuite.rb#29
4266
- Test::Unit::TestSuite::FINISHED = T.let(T.unsafe(nil), String)
4267
-
4268
- # source://test-unit//lib/test/unit/testsuite.rb#30
4269
- Test::Unit::TestSuite::FINISHED_OBJECT = T.let(T.unsafe(nil), String)
4270
-
4271
- # source://test-unit//lib/test/unit/testsuite.rb#27
4272
- Test::Unit::TestSuite::STARTED = T.let(T.unsafe(nil), String)
4273
-
4274
- # source://test-unit//lib/test/unit/testsuite.rb#28
4275
- Test::Unit::TestSuite::STARTED_OBJECT = T.let(T.unsafe(nil), String)
4276
-
4277
- # source://test-unit//lib/test/unit/test-suite-creator.rb#12
4278
- class Test::Unit::TestSuiteCreator
4279
- # @return [TestSuiteCreator] a new instance of TestSuiteCreator
4280
- #
4281
- # source://test-unit//lib/test/unit/test-suite-creator.rb#20
4282
- def initialize(test_case); end
4283
-
4284
- # source://test-unit//lib/test/unit/test-suite-creator.rb#24
4285
- def create; end
4286
-
4287
- private
4288
-
4289
- # @yield [test]
4290
- #
4291
- # source://test-unit//lib/test/unit/test-suite-creator.rb#59
4292
- def append_test(suite, test_name); end
4293
-
4294
- # source://test-unit//lib/test/unit/test-suite-creator.rb#65
4295
- def collect_test_names; end
4296
-
4297
- # source://test-unit//lib/test/unit/test-suite-creator.rb#43
4298
- def extract_data_sets(test_name); end
4299
-
4300
- # source://test-unit//lib/test/unit/test-suite-creator.rb#77
4301
- def sort_test_names_in_alphabetic_order(test_names); end
4302
-
4303
- # source://test-unit//lib/test/unit/test-suite-creator.rb#85
4304
- def sort_test_names_in_defined_order(test_names); end
4305
-
4306
- # source://test-unit//lib/test/unit/test-suite-creator.rb#81
4307
- def sort_test_names_in_random_order(test_names); end
4308
-
4309
- class << self
4310
- # @return [Boolean]
4311
- #
4312
- # source://test-unit//lib/test/unit/test-suite-creator.rb#14
4313
- def test_method?(test_case, method_name); end
4314
- end
4315
- end
4316
-
4317
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#8
4318
- module Test::Unit::Util; end
4319
-
4320
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#9
4321
- module Test::Unit::Util::BacktraceFilter
4322
- private
4323
-
4324
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#20
4325
- def filter_backtrace(backtrace, prefix = T.unsafe(nil)); end
4326
-
4327
- class << self
4328
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#20
4329
- def filter_backtrace(backtrace, prefix = T.unsafe(nil)); end
4330
- end
4331
- end
4332
-
4333
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#14
4334
- Test::Unit::Util::BacktraceFilter::POWERASSERT_PREFIX = T.let(T.unsafe(nil), Array)
4335
-
4336
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#10
4337
- Test::Unit::Util::BacktraceFilter::TESTUNIT_FILE_SEPARATORS = T.let(T.unsafe(nil), Regexp)
4338
-
4339
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#11
4340
- Test::Unit::Util::BacktraceFilter::TESTUNIT_PREFIX = T.let(T.unsafe(nil), Array)
4341
-
4342
- # source://test-unit//lib/test/unit/util/backtracefilter.rb#12
4343
- Test::Unit::Util::BacktraceFilter::TESTUNIT_RB_FILE = T.let(T.unsafe(nil), Regexp)
4344
-
4345
- # source://test-unit//lib/test/unit/util/memory-usage.rb#4
4346
- class Test::Unit::Util::MemoryUsage
4347
- # @return [MemoryUsage] a new instance of MemoryUsage
4348
- #
4349
- # source://test-unit//lib/test/unit/util/memory-usage.rb#7
4350
- def initialize; end
4351
-
4352
- # @return [Boolean]
4353
- #
4354
- # source://test-unit//lib/test/unit/util/memory-usage.rb#13
4355
- def collected?; end
4356
-
4357
- # Returns the value of attribute physical.
4358
- #
4359
- # source://test-unit//lib/test/unit/util/memory-usage.rb#6
4360
- def physical; end
4361
-
4362
- # Returns the value of attribute virtual.
4363
- #
4364
- # source://test-unit//lib/test/unit/util/memory-usage.rb#5
4365
- def virtual; end
4366
-
4367
- private
4368
-
4369
- # source://test-unit//lib/test/unit/util/memory-usage.rb#20
4370
- def collect_data; end
4371
-
4372
- # source://test-unit//lib/test/unit/util/memory-usage.rb#24
4373
- def collect_data_proc; end
4374
- end
4375
-
4376
- # source://test-unit//lib/test/unit/util/method-owner-finder.rb#4
4377
- module Test::Unit::Util::MethodOwnerFinder
4378
- private
4379
-
4380
- # source://test-unit//lib/test/unit/util/method-owner-finder.rb#6
4381
- def find(object, method_name); end
4382
-
4383
- class << self
4384
- # source://test-unit//lib/test/unit/util/method-owner-finder.rb#6
4385
- def find(object, method_name); end
4386
- end
4387
- end
4388
-
4389
- # source://test-unit//lib/test/unit/util/output.rb#4
4390
- module Test::Unit::Util::Output
4391
- # Returns output for standard output and standard
4392
- # error as string.
4393
- #
4394
- # Example:
4395
- #
4396
- # capture_output do
4397
- # puts("stdout")
4398
- # warn("stderr")
4399
- # end # -> ["stdout\n", "stderr\n"]
4400
- #
4401
- # source://test-unit//lib/test/unit/util/output.rb#15
4402
- def capture_output; end
4403
- end