danger-packwerk 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/lib/danger-packwerk/packwerk_wrapper.rb +2 -2
  3. data/lib/danger-packwerk/version.rb +1 -1
  4. data/sorbet/config +1 -0
  5. data/sorbet/rbi/gems/actionview@7.0.4.rbi +11543 -0
  6. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +12959 -0
  7. data/sorbet/rbi/gems/addressable@2.8.1.rbi +1505 -0
  8. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  9. data/sorbet/rbi/gems/better_html@2.0.1.rbi +286 -0
  10. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  11. data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +791 -0
  12. data/sorbet/rbi/gems/claide@1.1.0.rbi +1132 -0
  13. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2256 -0
  14. data/sorbet/rbi/gems/colored2@3.1.2.rbi +130 -0
  15. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8695 -0
  16. data/sorbet/rbi/gems/cork@0.3.0.rbi +248 -0
  17. data/sorbet/rbi/gems/crass@1.0.6.rbi +436 -0
  18. data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +8 -0
  19. data/sorbet/rbi/gems/danger@9.0.0.rbi +4722 -0
  20. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +862 -0
  21. data/sorbet/rbi/gems/erubi@1.11.0.rbi +102 -0
  22. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +266 -0
  23. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +209 -0
  24. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +212 -0
  25. data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +805 -0
  26. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +221 -0
  27. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +266 -0
  28. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +216 -0
  29. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +206 -0
  30. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +212 -0
  31. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +225 -0
  32. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +222 -0
  33. data/sorbet/rbi/gems/faraday@1.10.2.rbi +1862 -0
  34. data/sorbet/rbi/gems/git@1.12.0.rbi +1936 -0
  35. data/sorbet/rbi/gems/i18n@1.12.0.rbi +1643 -0
  36. data/sorbet/rbi/gems/json@2.6.2.rbi +1418 -0
  37. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
  38. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +2168 -0
  39. data/sorbet/rbi/gems/loofah@2.19.0.rbi +646 -0
  40. data/sorbet/rbi/gems/method_source@1.0.0.rbi +199 -0
  41. data/sorbet/rbi/gems/minitest@5.16.3.rbi +997 -0
  42. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +165 -0
  43. data/sorbet/rbi/gems/nap@1.1.0.rbi +351 -0
  44. data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +8 -0
  45. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +4916 -0
  46. data/sorbet/rbi/gems/octokit@5.6.1.rbi +8939 -0
  47. data/sorbet/rbi/gems/open4@1.3.4.rbi +8 -0
  48. data/sorbet/rbi/gems/{packwerk@2.1.1.rbi → packwerk@2.2.1.rbi} +602 -51
  49. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  50. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +5988 -0
  51. data/sorbet/rbi/gems/pry@0.14.1.rbi +6969 -0
  52. data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +779 -0
  53. data/sorbet/rbi/gems/racc@1.6.0.rbi +92 -0
  54. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
  55. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +493 -0
  56. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  57. data/sorbet/rbi/gems/rake@13.0.6.rbi +1865 -0
  58. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  59. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +587 -0
  60. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1851 -0
  61. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  62. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +7725 -0
  63. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +6201 -0
  64. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +3625 -0
  65. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +1176 -0
  66. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  67. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +4193 -0
  68. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +677 -0
  69. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +37914 -0
  70. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  71. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  72. data/sorbet/rbi/gems/sawyer@0.9.2.rbi +513 -0
  73. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +326 -0
  74. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  75. data/sorbet/rbi/gems/tapioca@0.8.0.rbi +1959 -0
  76. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +438 -0
  77. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  78. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +4879 -0
  79. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +27 -0
  80. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  81. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1802 -0
  82. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +288 -0
  83. data/sorbet/rbi/gems/yard@0.9.27.rbi +12668 -0
  84. data/sorbet/rbi/todo.rbi +122 -0
  85. metadata +84 -7
  86. data/sorbet/rbi/gems/danger@8.5.0.rbi +0 -122
@@ -0,0 +1,997 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `minitest` gem.
5
+ # Please instead update this file by running `bin/tapioca gem minitest`.
6
+
7
+ # :include: README.rdoc
8
+ module Minitest
9
+ class << self
10
+ # Internal run method. Responsible for telling all Runnable
11
+ # sub-classes to run.
12
+ def __run(reporter, options); end
13
+
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
+ def after_run(&block); end
19
+
20
+ # Registers Minitest to run at process exit
21
+ def autorun; end
22
+
23
+ def backtrace_filter; end
24
+ def backtrace_filter=(_arg0); end
25
+ def cattr_accessor(name); end
26
+ def clock_time; end
27
+ def extensions; end
28
+ def extensions=(_arg0); end
29
+ def filter_backtrace(bt); end
30
+ def info_signal; end
31
+ def info_signal=(_arg0); end
32
+ def init_plugins(options); end
33
+ def load_plugins; end
34
+ def parallel_executor; end
35
+ def parallel_executor=(_arg0); end
36
+ def process_args(args = T.unsafe(nil)); end
37
+ def reporter; end
38
+ def reporter=(_arg0); end
39
+
40
+ # This is the top-level run method. Everything starts from here. It
41
+ # tells each Runnable sub-class to run, and each of those are
42
+ # responsible for doing whatever they do.
43
+ #
44
+ # The overall structure of a run looks like this:
45
+ #
46
+ # Minitest.autorun
47
+ # Minitest.run(args)
48
+ # Minitest.__run(reporter, options)
49
+ # Runnable.runnables.each
50
+ # runnable.run(reporter, options)
51
+ # self.runnable_methods.each
52
+ # self.run_one_method(self, runnable_method, reporter)
53
+ # Minitest.run_one_method(klass, runnable_method)
54
+ # klass.new(runnable_method).run
55
+ def run(args = T.unsafe(nil)); end
56
+
57
+ def run_one_method(klass, method_name); end
58
+ def seed; end
59
+ def seed=(_arg0); end
60
+ end
61
+ end
62
+
63
+ # Defines the API for Reporters. Subclass this and override whatever
64
+ # you want. Go nuts.
65
+ class Minitest::AbstractReporter
66
+ include ::Mutex_m
67
+
68
+ def lock; end
69
+ def locked?; end
70
+
71
+ # Did this run pass?
72
+ #
73
+ # @return [Boolean]
74
+ def passed?; end
75
+
76
+ # About to start running a test. This allows a reporter to show
77
+ # that it is starting or that we are in the middle of a test run.
78
+ def prerecord(klass, name); end
79
+
80
+ # Output and record the result of the test. Call
81
+ # {result#result_code}[rdoc-ref:Runnable#result_code] to get the
82
+ # result character string. Stores the result of the run if the run
83
+ # did not pass.
84
+ def record(result); end
85
+
86
+ # Outputs the summary of the run.
87
+ def report; end
88
+
89
+ # Starts reporting on the run.
90
+ def start; end
91
+
92
+ def synchronize(&block); end
93
+ def try_lock; end
94
+ def unlock; end
95
+ end
96
+
97
+ # Represents run failures.
98
+ class Minitest::Assertion < ::Exception
99
+ def error; end
100
+
101
+ # Where was this run before an assertion was raised?
102
+ def location; end
103
+
104
+ def result_code; end
105
+ def result_label; end
106
+ end
107
+
108
+ # Minitest Assertions. All assertion methods accept a +msg+ which is
109
+ # printed if the assertion fails.
110
+ #
111
+ # Protocol: Nearly everything here boils up to +assert+, which
112
+ # expects to be able to increment an instance accessor named
113
+ # +assertions+. This is not provided by Assertions and must be
114
+ # provided by the thing including Assertions. See Minitest::Runnable
115
+ # for an example.
116
+ module Minitest::Assertions
117
+ def _synchronize; end
118
+
119
+ # Fails unless +test+ is truthy.
120
+ def assert(test, msg = T.unsafe(nil)); end
121
+
122
+ # Fails unless +obj+ is empty.
123
+ def assert_empty(obj, msg = T.unsafe(nil)); end
124
+
125
+ # Fails unless <tt>exp == act</tt> printing the difference between
126
+ # the two, if possible.
127
+ #
128
+ # If there is no visible difference but the assertion fails, you
129
+ # should suspect that your #== is buggy, or your inspect output is
130
+ # missing crucial details. For nicer structural diffing, set
131
+ # Minitest::Test.make_my_diffs_pretty!
132
+ #
133
+ # For floats use assert_in_delta.
134
+ #
135
+ # See also: Minitest::Assertions.diff
136
+ def assert_equal(exp, act, msg = T.unsafe(nil)); end
137
+
138
+ # For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
139
+ # of each other.
140
+ #
141
+ # assert_in_delta Math::PI, (22.0 / 7.0), 0.01
142
+ def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
143
+
144
+ # For comparing Floats. Fails unless +exp+ and +act+ have a relative
145
+ # error less than +epsilon+.
146
+ def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
147
+
148
+ # Fails unless +collection+ includes +obj+.
149
+ def assert_includes(collection, obj, msg = T.unsafe(nil)); end
150
+
151
+ # Fails unless +obj+ is an instance of +cls+.
152
+ def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end
153
+
154
+ # Fails unless +obj+ is a kind of +cls+.
155
+ def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end
156
+
157
+ # Fails unless +matcher+ <tt>=~</tt> +obj+.
158
+ def assert_match(matcher, obj, msg = T.unsafe(nil)); end
159
+
160
+ # Fails unless +obj+ is nil
161
+ def assert_nil(obj, msg = T.unsafe(nil)); end
162
+
163
+ # For testing with binary operators. Eg:
164
+ #
165
+ # assert_operator 5, :<=, 4
166
+ def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
167
+
168
+ # Fails if stdout or stderr do not output the expected results.
169
+ # Pass in nil if you don't care about that streams output. Pass in
170
+ # "" if you require it to be silent. Pass in a regexp if you want
171
+ # to pattern match.
172
+ #
173
+ # assert_output(/hey/) { method_with_output }
174
+ #
175
+ # NOTE: this uses #capture_io, not #capture_subprocess_io.
176
+ #
177
+ # See also: #assert_silent
178
+ def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end
179
+
180
+ # Fails unless +path+ exists.
181
+ def assert_path_exists(path, msg = T.unsafe(nil)); end
182
+
183
+ # For testing with predicates. Eg:
184
+ #
185
+ # assert_predicate str, :empty?
186
+ #
187
+ # This is really meant for specs and is front-ended by assert_operator:
188
+ #
189
+ # str.must_be :empty?
190
+ def assert_predicate(o1, op, msg = T.unsafe(nil)); end
191
+
192
+ # Fails unless the block raises one of +exp+. Returns the
193
+ # exception matched so you can check the message, attributes, etc.
194
+ #
195
+ # +exp+ takes an optional message on the end to help explain
196
+ # failures and defaults to StandardError if no exception class is
197
+ # passed. Eg:
198
+ #
199
+ # assert_raises(CustomError) { method_with_custom_error }
200
+ #
201
+ # With custom error message:
202
+ #
203
+ # assert_raises(CustomError, 'This should have raised CustomError') { method_with_custom_error }
204
+ #
205
+ # Using the returned object:
206
+ #
207
+ # error = assert_raises(CustomError) do
208
+ # raise CustomError, 'This is really bad'
209
+ # end
210
+ #
211
+ # assert_equal 'This is really bad', error.message
212
+ def assert_raises(*exp); end
213
+
214
+ # Fails unless +obj+ responds to +meth+.
215
+ def assert_respond_to(obj, meth, msg = T.unsafe(nil)); end
216
+
217
+ # Fails unless +exp+ and +act+ are #equal?
218
+ def assert_same(exp, act, msg = T.unsafe(nil)); end
219
+
220
+ # +send_ary+ is a receiver, message and arguments.
221
+ #
222
+ # Fails unless the call returns a true value
223
+ def assert_send(send_ary, m = T.unsafe(nil)); end
224
+
225
+ # Fails if the block outputs anything to stderr or stdout.
226
+ #
227
+ # See also: #assert_output
228
+ def assert_silent; end
229
+
230
+ # Fails unless the block throws +sym+
231
+ def assert_throws(sym, msg = T.unsafe(nil)); end
232
+
233
+ # Captures $stdout and $stderr into strings:
234
+ #
235
+ # out, err = capture_io do
236
+ # puts "Some info"
237
+ # warn "You did a bad thing"
238
+ # end
239
+ #
240
+ # assert_match %r%info%, out
241
+ # assert_match %r%bad%, err
242
+ #
243
+ # NOTE: For efficiency, this method uses StringIO and does not
244
+ # capture IO for subprocesses. Use #capture_subprocess_io for
245
+ # that.
246
+ def capture_io; end
247
+
248
+ # Captures $stdout and $stderr into strings, using Tempfile to
249
+ # ensure that subprocess IO is captured as well.
250
+ #
251
+ # out, err = capture_subprocess_io do
252
+ # system "echo Some info"
253
+ # system "echo You did a bad thing 1>&2"
254
+ # end
255
+ #
256
+ # assert_match %r%info%, out
257
+ # assert_match %r%bad%, err
258
+ #
259
+ # NOTE: This method is approximately 10x slower than #capture_io so
260
+ # only use it when you need to test the output of a subprocess.
261
+ def capture_subprocess_io; end
262
+
263
+ # Returns a diff between +exp+ and +act+. If there is no known
264
+ # diff command or if it doesn't make sense to diff the output
265
+ # (single line, short output), then it simply returns a basic
266
+ # comparison between the two.
267
+ #
268
+ # See +things_to_diff+ for more info.
269
+ def diff(exp, act); end
270
+
271
+ # Returns details for exception +e+
272
+ def exception_details(e, msg); end
273
+
274
+ # Fails after a given date (in the local time zone). This allows
275
+ # you to put time-bombs in your tests if you need to keep
276
+ # something around until a later date lest you forget about it.
277
+ def fail_after(y, m, d, msg); end
278
+
279
+ # Fails with +msg+.
280
+ def flunk(msg = T.unsafe(nil)); end
281
+
282
+ # Returns a proc that will output +msg+ along with the default message.
283
+ def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end
284
+
285
+ # This returns a human-readable version of +obj+. By default
286
+ # #inspect is called. You can override this to use #pretty_inspect
287
+ # if you want.
288
+ #
289
+ # See Minitest::Test.make_my_diffs_pretty!
290
+ def mu_pp(obj); end
291
+
292
+ # This returns a diff-able more human-readable version of +obj+.
293
+ # This differs from the regular mu_pp because it expands escaped
294
+ # newlines and makes hex-values (like object_ids) generic. This
295
+ # uses mu_pp to do the first pass and then cleans it up.
296
+ def mu_pp_for_diff(obj); end
297
+
298
+ # used for counting assertions
299
+ def pass(_msg = T.unsafe(nil)); end
300
+
301
+ # Fails if +test+ is truthy.
302
+ def refute(test, msg = T.unsafe(nil)); end
303
+
304
+ # Fails if +obj+ is empty.
305
+ def refute_empty(obj, msg = T.unsafe(nil)); end
306
+
307
+ # Fails if <tt>exp == act</tt>.
308
+ #
309
+ # For floats use refute_in_delta.
310
+ def refute_equal(exp, act, msg = T.unsafe(nil)); end
311
+
312
+ # For comparing Floats. Fails if +exp+ is within +delta+ of +act+.
313
+ #
314
+ # refute_in_delta Math::PI, (22.0 / 7.0)
315
+ def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
316
+
317
+ # For comparing Floats. Fails if +exp+ and +act+ have a relative error
318
+ # less than +epsilon+.
319
+ def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
320
+
321
+ # Fails if +collection+ includes +obj+.
322
+ def refute_includes(collection, obj, msg = T.unsafe(nil)); end
323
+
324
+ # Fails if +obj+ is an instance of +cls+.
325
+ def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end
326
+
327
+ # Fails if +obj+ is a kind of +cls+.
328
+ def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end
329
+
330
+ # Fails if +matcher+ <tt>=~</tt> +obj+.
331
+ def refute_match(matcher, obj, msg = T.unsafe(nil)); end
332
+
333
+ # Fails if +obj+ is nil.
334
+ def refute_nil(obj, msg = T.unsafe(nil)); end
335
+
336
+ # Fails if +o1+ is not +op+ +o2+. Eg:
337
+ #
338
+ # refute_operator 1, :>, 2 #=> pass
339
+ # refute_operator 1, :<, 2 #=> fail
340
+ def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
341
+
342
+ # Fails if +path+ exists.
343
+ def refute_path_exists(path, msg = T.unsafe(nil)); end
344
+
345
+ # For testing with predicates.
346
+ #
347
+ # refute_predicate str, :empty?
348
+ #
349
+ # This is really meant for specs and is front-ended by refute_operator:
350
+ #
351
+ # str.wont_be :empty?
352
+ def refute_predicate(o1, op, msg = T.unsafe(nil)); end
353
+
354
+ # Fails if +obj+ responds to the message +meth+.
355
+ def refute_respond_to(obj, meth, msg = T.unsafe(nil)); end
356
+
357
+ # Fails if +exp+ is the same (by object identity) as +act+.
358
+ def refute_same(exp, act, msg = T.unsafe(nil)); end
359
+
360
+ # Skips the current run. If run in verbose-mode, the skipped run
361
+ # gets listed at the end of the run but doesn't cause a failure
362
+ # exit code.
363
+ #
364
+ # @raise [Minitest::Skip]
365
+ def skip(msg = T.unsafe(nil), bt = T.unsafe(nil)); end
366
+
367
+ # Skips the current run until a given date (in the local time
368
+ # zone). This allows you to put some fixes on hold until a later
369
+ # date, but still holds you accountable and prevents you from
370
+ # forgetting it.
371
+ def skip_until(y, m, d, msg); end
372
+
373
+ # Was this testcase skipped? Meant for #teardown.
374
+ #
375
+ # @return [Boolean]
376
+ def skipped?; end
377
+
378
+ # Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff.
379
+ #
380
+ # Criterion:
381
+ #
382
+ # 1. Strings include newlines or escaped newlines, but not both.
383
+ # 2. or: String lengths are > 30 characters.
384
+ # 3. or: Strings are equal to each other (but maybe different encodings?).
385
+ # 4. and: we found a diff executable.
386
+ def things_to_diff(exp, act); end
387
+
388
+ class << self
389
+ # Returns the diff command to use in #diff. Tries to intelligently
390
+ # figure out what diff to use.
391
+ def diff; end
392
+
393
+ # Set the diff command to use in #diff.
394
+ def diff=(o); end
395
+ end
396
+ end
397
+
398
+ Minitest::Assertions::E = T.let(T.unsafe(nil), String)
399
+ Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
400
+
401
+ # The standard backtrace filter for minitest.
402
+ #
403
+ # See Minitest.backtrace_filter=.
404
+ class Minitest::BacktraceFilter
405
+ # Filter +bt+ to something useful. Returns the whole thing if
406
+ # $DEBUG (ruby) or $MT_DEBUG (env).
407
+ def filter(bt); end
408
+ end
409
+
410
+ Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
411
+
412
+ # Dispatch to multiple reporters as one.
413
+ class Minitest::CompositeReporter < ::Minitest::AbstractReporter
414
+ # @return [CompositeReporter] a new instance of CompositeReporter
415
+ def initialize(*reporters); end
416
+
417
+ # Add another reporter to the mix.
418
+ def <<(reporter); end
419
+
420
+ def io; end
421
+
422
+ # @return [Boolean]
423
+ def passed?; end
424
+
425
+ def prerecord(klass, name); end
426
+ def record(result); end
427
+ def report; end
428
+
429
+ # The list of reporters to dispatch to.
430
+ def reporters; end
431
+
432
+ # The list of reporters to dispatch to.
433
+ def reporters=(_arg0); end
434
+
435
+ def start; end
436
+ end
437
+
438
+ # Provides a simple set of guards that you can use in your tests
439
+ # to skip execution if it is not applicable. These methods are
440
+ # mixed into Test as both instance and class methods so you
441
+ # can use them inside or outside of the test methods.
442
+ #
443
+ # def test_something_for_mri
444
+ # skip "bug 1234" if jruby?
445
+ # # ...
446
+ # end
447
+ #
448
+ # if windows? then
449
+ # # ... lots of test methods ...
450
+ # end
451
+ module Minitest::Guard
452
+ # Is this running on jruby?
453
+ #
454
+ # @return [Boolean]
455
+ def jruby?(platform = T.unsafe(nil)); end
456
+
457
+ # Is this running on maglev?
458
+ #
459
+ # @return [Boolean]
460
+ def maglev?(platform = T.unsafe(nil)); end
461
+
462
+ # Is this running on mri?
463
+ #
464
+ # @return [Boolean]
465
+ def mri?(platform = T.unsafe(nil)); end
466
+
467
+ # Is this running on macOS?
468
+ #
469
+ # @return [Boolean]
470
+ def osx?(platform = T.unsafe(nil)); end
471
+
472
+ # Is this running on rubinius?
473
+ #
474
+ # @return [Boolean]
475
+ def rubinius?(platform = T.unsafe(nil)); end
476
+
477
+ # Is this running on windows?
478
+ #
479
+ # @return [Boolean]
480
+ def windows?(platform = T.unsafe(nil)); end
481
+ end
482
+
483
+ module Minitest::Parallel; end
484
+
485
+ # The engine used to run multiple tests in parallel.
486
+ class Minitest::Parallel::Executor
487
+ # Create a parallel test executor of with +size+ workers.
488
+ #
489
+ # @return [Executor] a new instance of Executor
490
+ def initialize(size); end
491
+
492
+ # Add a job to the queue
493
+ def <<(work); end
494
+
495
+ # Shuts down the pool of workers by signalling them to quit and
496
+ # waiting for them all to finish what they're currently working
497
+ # on.
498
+ def shutdown; end
499
+
500
+ # The size of the pool of workers.
501
+ def size; end
502
+
503
+ # Start the executor
504
+ def start; end
505
+ end
506
+
507
+ module Minitest::Parallel::Test
508
+ def _synchronize; end
509
+ end
510
+
511
+ module Minitest::Parallel::Test::ClassMethods
512
+ def run_one_method(klass, method_name, reporter); end
513
+ def test_order; end
514
+ end
515
+
516
+ # A very simple reporter that prints the "dots" during the run.
517
+ #
518
+ # This is added to the top-level CompositeReporter at the start of
519
+ # the run. If you want to change the output of minitest via a
520
+ # plugin, pull this out of the composite and replace it with your
521
+ # own.
522
+ class Minitest::ProgressReporter < ::Minitest::Reporter
523
+ def prerecord(klass, name); end
524
+ def record(result); end
525
+ end
526
+
527
+ # Shared code for anything that can get passed to a Reporter. See
528
+ # Minitest::Test & Minitest::Result.
529
+ module Minitest::Reportable
530
+ # @raise [NotImplementedError]
531
+ def class_name; end
532
+
533
+ # Did this run error?
534
+ #
535
+ # @return [Boolean]
536
+ def error?; end
537
+
538
+ # The location identifier of this test. Depends on a method
539
+ # existing called class_name.
540
+ def location; end
541
+
542
+ # Did this run pass?
543
+ #
544
+ # Note: skipped runs are not considered passing, but they don't
545
+ # cause the process to exit non-zero.
546
+ #
547
+ # @return [Boolean]
548
+ def passed?; end
549
+
550
+ # Returns ".", "F", or "E" based on the result of the run.
551
+ def result_code; end
552
+
553
+ # Was this run skipped?
554
+ #
555
+ # @return [Boolean]
556
+ def skipped?; end
557
+ end
558
+
559
+ class Minitest::Reporter < ::Minitest::AbstractReporter
560
+ # @return [Reporter] a new instance of Reporter
561
+ def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
562
+
563
+ # The IO used to report.
564
+ def io; end
565
+
566
+ # The IO used to report.
567
+ def io=(_arg0); end
568
+
569
+ # Command-line options for this run.
570
+ def options; end
571
+
572
+ # Command-line options for this run.
573
+ def options=(_arg0); end
574
+ end
575
+
576
+ # This represents a test result in a clean way that can be
577
+ # marshalled over a wire. Tests can do anything they want to the
578
+ # test instance and can create conditions that cause Marshal.dump to
579
+ # blow up. By using Result.from(a_test) you can be reasonably sure
580
+ # that the test result can be marshalled.
581
+ class Minitest::Result < ::Minitest::Runnable
582
+ include ::Minitest::Reportable
583
+
584
+ def class_name; end
585
+
586
+ # The class name of the test result.
587
+ def klass; end
588
+
589
+ # The class name of the test result.
590
+ def klass=(_arg0); end
591
+
592
+ # The location of the test method.
593
+ def source_location; end
594
+
595
+ # The location of the test method.
596
+ def source_location=(_arg0); end
597
+
598
+ def to_s; end
599
+
600
+ class << self
601
+ # Create a new test result from a Runnable instance.
602
+ def from(runnable); end
603
+ end
604
+ end
605
+
606
+ # re-open
607
+ class Minitest::Runnable
608
+ # @return [Runnable] a new instance of Runnable
609
+ def initialize(name); end
610
+
611
+ # Number of assertions executed in this run.
612
+ def assertions; end
613
+
614
+ # Number of assertions executed in this run.
615
+ def assertions=(_arg0); end
616
+
617
+ def failure; end
618
+
619
+ # An assertion raised during the run, if any.
620
+ def failures; end
621
+
622
+ # An assertion raised during the run, if any.
623
+ def failures=(_arg0); end
624
+
625
+ def marshal_dump; end
626
+ def marshal_load(ary); end
627
+
628
+ # Name of the run.
629
+ def name; end
630
+
631
+ # Set the name of the run.
632
+ def name=(o); end
633
+
634
+ # Did this run pass?
635
+ #
636
+ # Note: skipped runs are not considered passing, but they don't
637
+ # cause the process to exit non-zero.
638
+ #
639
+ # @raise [NotImplementedError]
640
+ # @return [Boolean]
641
+ def passed?; end
642
+
643
+ # Returns a single character string to print based on the result
644
+ # of the run. One of <tt>"."</tt>, <tt>"F"</tt>,
645
+ # <tt>"E"</tt> or <tt>"S"</tt>.
646
+ #
647
+ # @raise [NotImplementedError]
648
+ def result_code; end
649
+
650
+ # Runs a single method. Needs to return self.
651
+ #
652
+ # @raise [NotImplementedError]
653
+ def run; end
654
+
655
+ # Was this run skipped? See #passed? for more information.
656
+ #
657
+ # @raise [NotImplementedError]
658
+ # @return [Boolean]
659
+ def skipped?; end
660
+
661
+ # The time it took to run.
662
+ def time; end
663
+
664
+ # The time it took to run.
665
+ def time=(_arg0); end
666
+
667
+ def time_it; end
668
+
669
+ class << self
670
+ def inherited(klass); end
671
+
672
+ # Returns all instance methods matching the pattern +re+.
673
+ def methods_matching(re); end
674
+
675
+ def on_signal(name, action); end
676
+ def reset; end
677
+
678
+ # Responsible for running all runnable methods in a given class,
679
+ # each in its own instance. Each instance is passed to the
680
+ # reporter to record.
681
+ def run(reporter, options = T.unsafe(nil)); end
682
+
683
+ # Runs a single method and has the reporter record the result.
684
+ # This was considered internal API but is factored out of run so
685
+ # that subclasses can specialize the running of an individual
686
+ # test. See Minitest::ParallelTest::ClassMethods for an example.
687
+ def run_one_method(klass, method_name, reporter); end
688
+
689
+ # Each subclass of Runnable is responsible for overriding this
690
+ # method to return all runnable methods. See #methods_matching.
691
+ #
692
+ # @raise [NotImplementedError]
693
+ def runnable_methods; end
694
+
695
+ # Returns all subclasses of Runnable.
696
+ def runnables; end
697
+
698
+ def with_info_handler(reporter, &block); end
699
+ end
700
+ end
701
+
702
+ Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
703
+
704
+ # Assertion raised when skipping a run.
705
+ class Minitest::Skip < ::Minitest::Assertion
706
+ def result_label; end
707
+ end
708
+
709
+ # A reporter that gathers statistics about a test run. Does not do
710
+ # any IO because meant to be used as a parent class for a reporter
711
+ # that does.
712
+ #
713
+ # If you want to create an entirely different type of output (eg,
714
+ # CI, HTML, etc), this is the place to start.
715
+ #
716
+ # Example:
717
+ #
718
+ # class JenkinsCIReporter < StatisticsReporter
719
+ # def report
720
+ # super # Needed to calculate some statistics
721
+ #
722
+ # print "<testsuite "
723
+ # print "tests='#{count}' "
724
+ # print "failures='#{failures}' "
725
+ # # Remaining XML...
726
+ # end
727
+ # end
728
+ class Minitest::StatisticsReporter < ::Minitest::Reporter
729
+ # @return [StatisticsReporter] a new instance of StatisticsReporter
730
+ def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
731
+
732
+ # Total number of assertions.
733
+ def assertions; end
734
+
735
+ # Total number of assertions.
736
+ def assertions=(_arg0); end
737
+
738
+ # Total number of test cases.
739
+ def count; end
740
+
741
+ # Total number of test cases.
742
+ def count=(_arg0); end
743
+
744
+ # Total number of tests that erred.
745
+ def errors; end
746
+
747
+ # Total number of tests that erred.
748
+ def errors=(_arg0); end
749
+
750
+ # Total number of tests that failed.
751
+ def failures; end
752
+
753
+ # Total number of tests that failed.
754
+ def failures=(_arg0); end
755
+
756
+ # @return [Boolean]
757
+ def passed?; end
758
+
759
+ def record(result); end
760
+
761
+ # Report on the tracked statistics.
762
+ def report; end
763
+
764
+ # An +Array+ of test cases that failed or were skipped.
765
+ def results; end
766
+
767
+ # An +Array+ of test cases that failed or were skipped.
768
+ def results=(_arg0); end
769
+
770
+ # Total number of tests that where skipped.
771
+ def skips; end
772
+
773
+ # Total number of tests that where skipped.
774
+ def skips=(_arg0); end
775
+
776
+ def start; end
777
+
778
+ # Time the test run started. If available, the monotonic clock is
779
+ # used and this is a +Float+, otherwise it's an instance of
780
+ # +Time+.
781
+ def start_time; end
782
+
783
+ # Time the test run started. If available, the monotonic clock is
784
+ # used and this is a +Float+, otherwise it's an instance of
785
+ # +Time+.
786
+ def start_time=(_arg0); end
787
+
788
+ # Test run time. If available, the monotonic clock is used and
789
+ # this is a +Float+, otherwise it's an instance of +Time+.
790
+ def total_time; end
791
+
792
+ # Test run time. If available, the monotonic clock is used and
793
+ # this is a +Float+, otherwise it's an instance of +Time+.
794
+ def total_time=(_arg0); end
795
+ end
796
+
797
+ # A reporter that prints the header, summary, and failure details at
798
+ # the end of the run.
799
+ #
800
+ # This is added to the top-level CompositeReporter at the start of
801
+ # the run. If you want to change the output of minitest via a
802
+ # plugin, pull this out of the composite and replace it with your
803
+ # own.
804
+ class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
805
+ def aggregated_results(io); end
806
+
807
+ # Returns the value of attribute old_sync.
808
+ def old_sync; end
809
+
810
+ # Sets the attribute old_sync
811
+ #
812
+ # @param value the value to set the attribute old_sync to.
813
+ def old_sync=(_arg0); end
814
+
815
+ def report; end
816
+
817
+ # :startdoc:
818
+ def start; end
819
+
820
+ def statistics; end
821
+ def summary; end
822
+
823
+ # :stopdoc:
824
+ def sync; end
825
+
826
+ # :stopdoc:
827
+ def sync=(_arg0); end
828
+
829
+ def to_s; end
830
+
831
+ private
832
+
833
+ def binary_string; end
834
+ end
835
+
836
+ # Subclass Test to create your own tests. Typically you'll want a
837
+ # Test subclass per implementation class.
838
+ #
839
+ # See Minitest::Assertions
840
+ class Minitest::Test < ::Minitest::Runnable
841
+ include ::Minitest::Assertions
842
+ include ::Minitest::Reportable
843
+ include ::Minitest::Test::LifecycleHooks
844
+ include ::Minitest::Guard
845
+ extend ::Minitest::Guard
846
+
847
+ # LifecycleHooks
848
+ def capture_exceptions; end
849
+
850
+ def class_name; end
851
+ def neuter_exception(e); end
852
+ def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
853
+
854
+ # Runs a single test with setup/teardown hooks.
855
+ def run; end
856
+
857
+ def sanitize_exception(e); end
858
+ def with_info_handler(&block); end
859
+
860
+ class << self
861
+ # Call this at the top of your tests when you absolutely
862
+ # positively need to have ordered tests. In doing so, you're
863
+ # admitting that you suck and your tests are weak.
864
+ def i_suck_and_my_tests_are_order_dependent!; end
865
+
866
+ # Returns the value of attribute io_lock.
867
+ def io_lock; end
868
+
869
+ # Sets the attribute io_lock
870
+ #
871
+ # @param value the value to set the attribute io_lock to.
872
+ def io_lock=(_arg0); end
873
+
874
+ # Make diffs for this Test use #pretty_inspect so that diff
875
+ # in assert_equal can have more details. NOTE: this is much slower
876
+ # than the regular inspect but much more usable for complex
877
+ # objects.
878
+ def make_my_diffs_pretty!; end
879
+
880
+ # Call this at the top of your tests when you want to run your
881
+ # tests in parallel. In doing so, you're admitting that you rule
882
+ # and your tests are awesome.
883
+ def parallelize_me!; end
884
+
885
+ # Returns all instance methods starting with "test_". Based on
886
+ # #test_order, the methods are either sorted, randomized
887
+ # (default), or run in parallel.
888
+ def runnable_methods; end
889
+
890
+ # Defines the order to run tests (:random by default). Override
891
+ # this or use a convenience method to change it for your tests.
892
+ def test_order; end
893
+ end
894
+ end
895
+
896
+ # Provides before/after hooks for setup and teardown. These are
897
+ # meant for library writers, NOT for regular test authors. See
898
+ # #before_setup for an example.
899
+ module Minitest::Test::LifecycleHooks
900
+ # Runs before every test, after setup. This hook is meant for
901
+ # libraries to extend minitest. It is not meant to be used by
902
+ # test developers.
903
+ #
904
+ # See #before_setup for an example.
905
+ def after_setup; end
906
+
907
+ # Runs after every test, after teardown. This hook is meant for
908
+ # libraries to extend minitest. It is not meant to be used by
909
+ # test developers.
910
+ #
911
+ # See #before_setup for an example.
912
+ def after_teardown; end
913
+
914
+ # Runs before every test, before setup. This hook is meant for
915
+ # libraries to extend minitest. It is not meant to be used by
916
+ # test developers.
917
+ #
918
+ # As a simplistic example:
919
+ #
920
+ # module MyMinitestPlugin
921
+ # def before_setup
922
+ # super
923
+ # # ... stuff to do before setup is run
924
+ # end
925
+ #
926
+ # def after_setup
927
+ # # ... stuff to do after setup is run
928
+ # super
929
+ # end
930
+ #
931
+ # def before_teardown
932
+ # super
933
+ # # ... stuff to do before teardown is run
934
+ # end
935
+ #
936
+ # def after_teardown
937
+ # # ... stuff to do after teardown is run
938
+ # super
939
+ # end
940
+ # end
941
+ #
942
+ # class MiniTest::Test
943
+ # include MyMinitestPlugin
944
+ # end
945
+ def before_setup; end
946
+
947
+ # Runs after every test, before teardown. This hook is meant for
948
+ # libraries to extend minitest. It is not meant to be used by
949
+ # test developers.
950
+ #
951
+ # See #before_setup for an example.
952
+ def before_teardown; end
953
+
954
+ # Runs before every test. Use this to set up before each test
955
+ # run.
956
+ def setup; end
957
+
958
+ # Runs after every test. Use this to clean up after each test
959
+ # run.
960
+ def teardown; end
961
+ end
962
+
963
+ Minitest::Test::PASSTHROUGH_EXCEPTIONS = T.let(T.unsafe(nil), Array)
964
+ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
965
+
966
+ # Assertion wrapping an unexpected error that was raised during a run.
967
+ class Minitest::UnexpectedError < ::Minitest::Assertion
968
+ # @return [UnexpectedError] a new instance of UnexpectedError
969
+ def initialize(error); end
970
+
971
+ def backtrace; end
972
+
973
+ # TODO: figure out how to use `cause` instead
974
+ def error; end
975
+
976
+ # TODO: figure out how to use `cause` instead
977
+ def error=(_arg0); end
978
+
979
+ def message; end
980
+ def result_label; end
981
+ end
982
+
983
+ class Minitest::Unit
984
+ class << self
985
+ def after_tests(&b); end
986
+ def autorun; end
987
+ end
988
+ end
989
+
990
+ class Minitest::Unit::TestCase < ::Minitest::Test
991
+ class << self
992
+ def inherited(klass); end
993
+ end
994
+ end
995
+
996
+ Minitest::Unit::VERSION = T.let(T.unsafe(nil), String)
997
+ Minitest::VERSION = T.let(T.unsafe(nil), String)