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