expo_notifier 0.1.0

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