mootool 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -0
  3. data/Gemfile +1 -0
  4. data/Gemfile.lock +71 -67
  5. data/lib/mootool/command.rb +1 -0
  6. data/lib/mootool/controller_base.rb +1 -0
  7. data/lib/mootool/controllers/dwarf.rb +2 -1
  8. data/lib/mootool/controllers/dyld_linker.rb +1 -0
  9. data/lib/mootool/controllers/dyld_shared_cache.rb +1 -0
  10. data/lib/mootool/controllers/fat_binary.rb +1 -0
  11. data/lib/mootool/controllers/kernel_collection.rb +4 -3
  12. data/lib/mootool/controllers/sections.rb +1 -0
  13. data/lib/mootool/core_extensions.rb +3 -3
  14. data/lib/mootool/models/decompressor.rb +5 -2
  15. data/lib/mootool/models/device_tree.rb +5 -3
  16. data/lib/mootool/models/img4.rb +2 -1
  17. data/lib/mootool/models/ipsw.rb +5 -1
  18. data/lib/mootool/version.rb +2 -1
  19. data/lib/mootool.rb +1 -0
  20. data/sorbet/config +1 -1
  21. data/sorbet/rbi/annotations/.gitattributes +1 -0
  22. data/sorbet/rbi/annotations/rainbow.rbi +2 -2
  23. data/sorbet/rbi/gems/.gitattributes +1 -0
  24. data/sorbet/rbi/gems/ast@2.4.2.rbi +48 -82
  25. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +107 -153
  26. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +192 -332
  27. data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
  28. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  29. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +166 -276
  30. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.6.3.rbi} +119 -228
  31. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  32. data/sorbet/rbi/gems/lzfse@0.0.2.rbi +55 -0
  33. data/sorbet/rbi/gems/lzss@0.1.rbi +8 -0
  34. data/sorbet/rbi/gems/netrc@0.11.0.rbi +52 -80
  35. data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.60.0.rbi} +534 -887
  36. data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
  37. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +5451 -0
  38. data/sorbet/rbi/gems/{plist@3.6.0.rbi → plist@3.7.0.rbi} +125 -3
  39. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  40. data/sorbet/rbi/gems/prism@0.17.1.rbi +27700 -0
  41. data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
  42. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +141 -191
  43. data/sorbet/rbi/gems/rake@13.1.0.rbi +2887 -0
  44. data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.4.rbi} +979 -1676
  45. data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +3749 -0
  46. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.2.6.rbi} +811 -1268
  47. data/sorbet/rbi/gems/{rspec-core@3.11.0.rbi → rspec-core@3.12.2.rbi} +2662 -4722
  48. data/sorbet/rbi/gems/{rspec-expectations@3.11.0.rbi → rspec-expectations@3.12.3.rbi} +1557 -2608
  49. data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5306 -0
  50. data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
  51. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  52. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7090 -0
  53. data/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi +1125 -0
  54. data/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi +878 -0
  55. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +88 -173
  56. data/sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi +7997 -0
  57. data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56813 -0
  58. data/sorbet/rbi/gems/ruby-lzma@0.4.3.rbi +19 -0
  59. data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +899 -1237
  60. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  61. data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +808 -1275
  62. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
  63. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
  64. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  65. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  66. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  67. data/sorbet/rbi/gems/tapioca@0.11.12.rbi +3507 -0
  68. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  69. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  70. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.34.rbi} +4531 -7160
  71. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +24 -72
  72. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +385 -1697
  73. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +7 -30
  74. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +1 -3
  75. data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
  76. data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +35 -0
  77. data/sorbet/tapioca/require.rb +13 -1
  78. metadata +47 -35
  79. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  80. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  81. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -353
  82. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6198
  83. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
  84. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -3587
  85. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3927
  86. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -6506
  87. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -2040
  88. data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -120
  89. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7990
  90. data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +0 -7604
  91. data/sorbet/rbi/gems/rubocop@1.35.0.rbi +0 -62260
  92. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1445
  93. data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2829
  94. data/sorbet/rbi/gems/tapioca@0.9.3.rbi +0 -2151
  95. data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -4532
  96. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -60
  97. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -8
  98. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -3075
  99. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +0 -458
  100. data/sorbet/rbi/todo.rbi +0 -7
@@ -0,0 +1,2148 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `simplecov` gem.
5
+ # Please instead update this file by running `bin/tapioca gem simplecov`.
6
+
7
+ # Code coverage for ruby. Please check out README for a full introduction.
8
+ #
9
+ # source://simplecov//lib/simplecov.rb#22
10
+ module SimpleCov
11
+ extend ::SimpleCov::Configuration
12
+
13
+ class << self
14
+ # source://simplecov//lib/simplecov.rb#174
15
+ def at_exit_behavior; end
16
+
17
+ # Clear out the previously cached .result. Primarily useful in testing
18
+ #
19
+ # source://simplecov//lib/simplecov.rb#170
20
+ def clear_result; end
21
+
22
+ # Collate a series of SimpleCov result files into a single SimpleCov output.
23
+ #
24
+ # You can optionally specify configuration with a block:
25
+ # SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"]
26
+ # OR
27
+ # SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"], 'rails' # using rails profile
28
+ # OR
29
+ # SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"] do
30
+ # add_filter 'test'
31
+ # end
32
+ # OR
33
+ # SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"], 'rails' do
34
+ # add_filter 'test'
35
+ # end
36
+ #
37
+ # Please check out the RDoc for SimpleCov::Configuration to find about
38
+ # available config options, or checkout the README for more in-depth
39
+ # information about coverage collation
40
+ #
41
+ # By default `collate` ignores the merge_timeout so all results of all files specified will be
42
+ # merged together. If you want to honor the merge_timeout then provide the keyword argument
43
+ # `ignore_timeout: false`.
44
+ #
45
+ # source://simplecov//lib/simplecov.rb#86
46
+ def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
47
+
48
+ # Thinking: Move this behavior earlier so if there was an error we do nothing?
49
+ #
50
+ # @api private
51
+ #
52
+ # source://simplecov//lib/simplecov.rb#223
53
+ def exit_and_report_previous_error(exit_status); end
54
+
55
+ # Returns the exit status from the exit exception
56
+ #
57
+ # @api private
58
+ #
59
+ # source://simplecov//lib/simplecov.rb#200
60
+ def exit_status_from_exception; end
61
+
62
+ # Basically, should we take care of at_exit behavior or something else?
63
+ # Used by the minitest plugin. See lib/minitest/simplecov_plugin.rb
64
+ #
65
+ # source://simplecov//lib/simplecov.rb#28
66
+ def external_at_exit; end
67
+
68
+ # Basically, should we take care of at_exit behavior or something else?
69
+ # Used by the minitest plugin. See lib/minitest/simplecov_plugin.rb
70
+ #
71
+ # source://simplecov//lib/simplecov.rb#28
72
+ def external_at_exit=(_arg0); end
73
+
74
+ # Basically, should we take care of at_exit behavior or something else?
75
+ # Used by the minitest plugin. See lib/minitest/simplecov_plugin.rb
76
+ #
77
+ # source://simplecov//lib/simplecov.rb#28
78
+ def external_at_exit?; end
79
+
80
+ # Applies the configured filters to the given array of SimpleCov::SourceFile items
81
+ #
82
+ # source://simplecov//lib/simplecov.rb#131
83
+ def filtered(files); end
84
+
85
+ # @api private
86
+ # @return [Boolean]
87
+ #
88
+ # source://simplecov//lib/simplecov.rb#268
89
+ def final_result_process?; end
90
+
91
+ # Applies the configured groups to the given array of SimpleCov::SourceFile items
92
+ #
93
+ # source://simplecov//lib/simplecov.rb#142
94
+ def grouped(files); end
95
+
96
+ # source://simplecov//lib/simplecov.rb#162
97
+ def load_adapter(name); end
98
+
99
+ # Applies the profile of given name on SimpleCov configuration
100
+ #
101
+ # source://simplecov//lib/simplecov.rb#158
102
+ def load_profile(name); end
103
+
104
+ # Returns the value of attribute pid.
105
+ #
106
+ # source://simplecov//lib/simplecov.rb#24
107
+ def pid; end
108
+
109
+ # Sets the attribute pid
110
+ #
111
+ # @param value the value to set the attribute pid to.
112
+ #
113
+ # source://simplecov//lib/simplecov.rb#24
114
+ def pid=(_arg0); end
115
+
116
+ # @api private
117
+ # @return [Boolean]
118
+ #
119
+ # source://simplecov//lib/simplecov.rb#213
120
+ def previous_error?(error_exit_status); end
121
+
122
+ # Usage:
123
+ # exit_status = SimpleCov.process_result(SimpleCov.result, exit_status)
124
+ #
125
+ # @api private
126
+ #
127
+ # source://simplecov//lib/simplecov.rb#248
128
+ def process_result(result); end
129
+
130
+ # source://simplecov//lib/simplecov.rb#233
131
+ def process_results_and_report_error; end
132
+
133
+ # @api private
134
+ # @return [Boolean]
135
+ #
136
+ # source://simplecov//lib/simplecov.rb#229
137
+ def ready_to_process_results?; end
138
+
139
+ # Returns the result for the current coverage run, merging it across test suites
140
+ # from cache using SimpleCov::ResultMerger if use_merging is activated (default)
141
+ #
142
+ # source://simplecov//lib/simplecov.rb#101
143
+ def result; end
144
+
145
+ # Returns nil if the result has not been computed
146
+ # Otherwise, returns the result
147
+ #
148
+ # @return [Boolean]
149
+ #
150
+ # source://simplecov//lib/simplecov.rb#124
151
+ def result?; end
152
+
153
+ # source://simplecov//lib/simplecov.rb#256
154
+ def result_exit_status(result); end
155
+
156
+ # Rounding down to be extra strict, see #679
157
+ #
158
+ # @api private
159
+ #
160
+ # source://simplecov//lib/simplecov.rb#296
161
+ def round_coverage(coverage); end
162
+
163
+ # Called from at_exit block
164
+ #
165
+ # @api private
166
+ #
167
+ # source://simplecov//lib/simplecov.rb#186
168
+ def run_exit_tasks!; end
169
+
170
+ # Returns the value of attribute running.
171
+ #
172
+ # source://simplecov//lib/simplecov.rb#24
173
+ def running; end
174
+
175
+ # Sets the attribute running
176
+ #
177
+ # @param value the value to set the attribute running to.
178
+ #
179
+ # source://simplecov//lib/simplecov.rb#24
180
+ def running=(_arg0); end
181
+
182
+ # Sets up SimpleCov to run against your project.
183
+ # You can optionally specify a profile to use as well as configuration with a block:
184
+ # SimpleCov.start
185
+ # OR
186
+ # SimpleCov.start 'rails' # using rails profile
187
+ # OR
188
+ # SimpleCov.start do
189
+ # add_filter 'test'
190
+ # end
191
+ # OR
192
+ # SimpleCov.start 'rails' do
193
+ # add_filter 'test'
194
+ # end
195
+ #
196
+ # Please check out the RDoc for SimpleCov::Configuration to find about available config options
197
+ #
198
+ # source://simplecov//lib/simplecov.rb#48
199
+ def start(profile = T.unsafe(nil), &block); end
200
+
201
+ # @api private
202
+ #
203
+ # source://simplecov//lib/simplecov.rb#276
204
+ def wait_for_other_processes; end
205
+
206
+ # @api private
207
+ #
208
+ # source://simplecov//lib/simplecov.rb#285
209
+ def write_last_run(result); end
210
+
211
+ private
212
+
213
+ # Unite the result so it wouldn't matter what coverage type was called
214
+ #
215
+ # @return [Hash]
216
+ #
217
+ # source://simplecov//lib/simplecov.rb#399
218
+ def adapt_coverage_result; end
219
+
220
+ # Finds files that were to be tracked but were not loaded and initializes
221
+ # the line-by-line coverage to zero (if relevant) or nil (comments / whitespace etc).
222
+ #
223
+ # source://simplecov//lib/simplecov.rb#371
224
+ def add_not_loaded_files(result); end
225
+
226
+ # source://simplecov//lib/simplecov.rb#302
227
+ def initial_setup(profile, &block); end
228
+
229
+ # source://simplecov//lib/simplecov.rb#363
230
+ def lookup_corresponding_ruby_coverage_name(criterion); end
231
+
232
+ # parallel_tests isn't always available, see: https://github.com/grosser/parallel_tests/issues/772
233
+ #
234
+ # source://simplecov//lib/simplecov.rb#425
235
+ def make_parallel_tests_available; end
236
+
237
+ # @return [Boolean]
238
+ #
239
+ # source://simplecov//lib/simplecov.rb#434
240
+ def probably_running_parallel_tests?; end
241
+
242
+ # Call steps that handle process coverage result
243
+ #
244
+ # @return [Hash]
245
+ #
246
+ # source://simplecov//lib/simplecov.rb#388
247
+ def process_coverage_result; end
248
+
249
+ # Filter coverage result
250
+ # The result before filter also has result of coverage for files
251
+ # are not related to the project like loaded gems coverage.
252
+ #
253
+ # @return [Hash]
254
+ #
255
+ # source://simplecov//lib/simplecov.rb#410
256
+ def remove_useless_results; end
257
+
258
+ # Initialize result with files that are not included by coverage
259
+ # and added inside the config block
260
+ #
261
+ # @return [Hash]
262
+ #
263
+ # source://simplecov//lib/simplecov.rb#420
264
+ def result_with_not_loaded_files; end
265
+
266
+ # Trigger Coverage.start depends on given config coverage_criterion
267
+ #
268
+ # With Positive branch it supports all coverage measurement types
269
+ # With Negative branch it supports only line coverage measurement type
270
+ #
271
+ # source://simplecov//lib/simplecov.rb#314
272
+ def start_coverage_measurement; end
273
+
274
+ # source://simplecov//lib/simplecov.rb#349
275
+ def start_coverage_with_criteria; end
276
+ end
277
+ end
278
+
279
+ # source://simplecov//lib/simplecov/filter.rb#77
280
+ class SimpleCov::ArrayFilter < ::SimpleCov::Filter
281
+ # @return [ArrayFilter] a new instance of ArrayFilter
282
+ #
283
+ # source://simplecov//lib/simplecov/filter.rb#78
284
+ def initialize(filter_argument); end
285
+
286
+ # Returns true if any of the filters in the array match the given source file.
287
+ # Configure this Filter like StringFilter.new(['some/path', /^some_regex/, Proc.new {|src_file| ... }])
288
+ #
289
+ # @return [Boolean]
290
+ #
291
+ # source://simplecov//lib/simplecov/filter.rb#88
292
+ def matches?(source_files_list); end
293
+ end
294
+
295
+ # source://simplecov//lib/simplecov/filter.rb#71
296
+ class SimpleCov::BlockFilter < ::SimpleCov::Filter
297
+ # Returns true if the block given when initializing this filter with BlockFilter.new {|src_file| ... }
298
+ # returns true for the given source file.
299
+ #
300
+ # @return [Boolean]
301
+ #
302
+ # source://simplecov//lib/simplecov/filter.rb#72
303
+ def matches?(source_file); end
304
+ end
305
+
306
+ # Functionally for combining coverage results
307
+ #
308
+ # source://simplecov//lib/simplecov/combine.rb#6
309
+ module SimpleCov::Combine
310
+ private
311
+
312
+ # Combine two coverage based on the given combiner_module.
313
+ #
314
+ # Combiners should always be called through this interface,
315
+ # as it takes care of short-circuiting of one of the coverages is nil.
316
+ #
317
+ # @return [Hash]
318
+ #
319
+ # source://simplecov//lib/simplecov/combine.rb#16
320
+ def combine(combiner_module, coverage_a, coverage_b); end
321
+
322
+ # source://simplecov//lib/simplecov/combine.rb#22
323
+ def empty_coverage?(coverage_a, coverage_b); end
324
+
325
+ # source://simplecov//lib/simplecov/combine.rb#26
326
+ def existing_coverage(coverage_a, coverage_b); end
327
+
328
+ class << self
329
+ # Combine two coverage based on the given combiner_module.
330
+ #
331
+ # Combiners should always be called through this interface,
332
+ # as it takes care of short-circuiting of one of the coverages is nil.
333
+ #
334
+ # @return [Hash]
335
+ #
336
+ # source://simplecov//lib/simplecov/combine.rb#16
337
+ def combine(combiner_module, coverage_a, coverage_b); end
338
+
339
+ # @return [Boolean]
340
+ #
341
+ # source://simplecov//lib/simplecov/combine.rb#22
342
+ def empty_coverage?(coverage_a, coverage_b); end
343
+
344
+ # source://simplecov//lib/simplecov/combine.rb#26
345
+ def existing_coverage(coverage_a, coverage_b); end
346
+ end
347
+ end
348
+
349
+ # Combine different branch coverage results on single file.
350
+ #
351
+ # Should be called through `SimpleCov.combine`.
352
+ #
353
+ # source://simplecov//lib/simplecov/combine/branches_combiner.rb#9
354
+ module SimpleCov::Combine::BranchesCombiner
355
+ private
356
+
357
+ # Return merged branches or the existed brach if other is missing.
358
+ #
359
+ # Branches inside files are always same if they exist, the difference only in coverage count.
360
+ # Branch coverage report for any conditional case is built from hash, it's key is a condition and
361
+ # it's body is a hash << keys from condition and value is coverage rate >>.
362
+ # ex: branches =>{ [:if, 3, 8, 6, 8, 36] => {[:then, 4, 8, 6, 8, 12] => 1, [:else, 5, 8, 6, 8, 36]=>2}, other conditions...}
363
+ # We create copy of result and update it values depending on the combined branches coverage values.
364
+ #
365
+ # @return [Hash]
366
+ #
367
+ # source://simplecov//lib/simplecov/combine/branches_combiner.rb#23
368
+ def combine(coverage_a, coverage_b); end
369
+
370
+ class << self
371
+ # Return merged branches or the existed brach if other is missing.
372
+ #
373
+ # Branches inside files are always same if they exist, the difference only in coverage count.
374
+ # Branch coverage report for any conditional case is built from hash, it's key is a condition and
375
+ # it's body is a hash << keys from condition and value is coverage rate >>.
376
+ # ex: branches =>{ [:if, 3, 8, 6, 8, 36] => {[:then, 4, 8, 6, 8, 12] => 1, [:else, 5, 8, 6, 8, 36]=>2}, other conditions...}
377
+ # We create copy of result and update it values depending on the combined branches coverage values.
378
+ #
379
+ # @return [Hash]
380
+ #
381
+ # source://simplecov//lib/simplecov/combine/branches_combiner.rb#23
382
+ def combine(coverage_a, coverage_b); end
383
+ end
384
+ end
385
+
386
+ # Handle combining two coverage results for same file
387
+ #
388
+ # Should be called through `SimpleCov.combine`.
389
+ #
390
+ # source://simplecov//lib/simplecov/combine/files_combiner.rb#9
391
+ module SimpleCov::Combine::FilesCombiner
392
+ private
393
+
394
+ # Combines the results for 2 coverages of a file.
395
+ #
396
+ # @return [Hash]
397
+ #
398
+ # source://simplecov//lib/simplecov/combine/files_combiner.rb#17
399
+ def combine(coverage_a, coverage_b); end
400
+
401
+ class << self
402
+ # Combines the results for 2 coverages of a file.
403
+ #
404
+ # @return [Hash]
405
+ #
406
+ # source://simplecov//lib/simplecov/combine/files_combiner.rb#17
407
+ def combine(coverage_a, coverage_b); end
408
+ end
409
+ end
410
+
411
+ # Combine two different lines coverage results on same file
412
+ #
413
+ # Should be called through `SimpleCov.combine`.
414
+ #
415
+ # source://simplecov//lib/simplecov/combine/lines_combiner.rb#9
416
+ module SimpleCov::Combine::LinesCombiner
417
+ private
418
+
419
+ # source://simplecov//lib/simplecov/combine/lines_combiner.rb#12
420
+ def combine(coverage_a, coverage_b); end
421
+
422
+ # Return depends on coverage in a specific line
423
+ #
424
+ # Logic:
425
+ #
426
+ # => nil + 0 = nil
427
+ # => nil + nil = nil
428
+ # => int + int = int
429
+ #
430
+ # @param first_val [Integer || nil]
431
+ # @param second_val [Integer || nil]
432
+ # @return [Integer || nil]
433
+ #
434
+ # source://simplecov//lib/simplecov/combine/lines_combiner.rb#32
435
+ def merge_line_coverage(first_val, second_val); end
436
+
437
+ class << self
438
+ # source://simplecov//lib/simplecov/combine/lines_combiner.rb#12
439
+ def combine(coverage_a, coverage_b); end
440
+
441
+ # Return depends on coverage in a specific line
442
+ #
443
+ # Logic:
444
+ #
445
+ # => nil + 0 = nil
446
+ # => nil + nil = nil
447
+ # => int + int = int
448
+ #
449
+ # @param first_val [Integer || nil]
450
+ # @param second_val [Integer || nil]
451
+ # @return [Integer || nil]
452
+ #
453
+ # source://simplecov//lib/simplecov/combine/lines_combiner.rb#32
454
+ def merge_line_coverage(first_val, second_val); end
455
+ end
456
+ end
457
+
458
+ # There might be reports from different kinds of tests,
459
+ # e.g. RSpec and Cucumber. We need to combine their results
460
+ # into unified one. This class does that.
461
+ # To unite the results on file basis, it leverages
462
+ # the combine of lines and branches inside each file within given results.
463
+ #
464
+ # source://simplecov//lib/simplecov/combine/results_combiner.rb#10
465
+ module SimpleCov::Combine::ResultsCombiner
466
+ private
467
+
468
+ # Combine process explanation
469
+ # => ResultCombiner: define all present files between results and start combine on file level.
470
+ # ==> FileCombiner: collect result of next combine levels lines and branches.
471
+ # ===> LinesCombiner: combine lines results.
472
+ # ===> BranchesCombiner: combine branches results.
473
+ #
474
+ # @return [Hash]
475
+ #
476
+ # source://simplecov//lib/simplecov/combine/results_combiner.rb#22
477
+ def combine(*results); end
478
+
479
+ # Combine two files coverage results
480
+ #
481
+ # @param coverage_a [Hash]
482
+ # @param coverage_b [Hash]
483
+ # @return [Hash]
484
+ #
485
+ # source://simplecov//lib/simplecov/combine/results_combiner.rb#55
486
+ def combine_file_coverage(coverage_a, coverage_b); end
487
+
488
+ # Manage combining results on files level
489
+ #
490
+ # @param combined_results [Hash]
491
+ # @param result [Hash]
492
+ # @return [Hash]
493
+ #
494
+ # source://simplecov//lib/simplecov/combine/results_combiner.rb#36
495
+ def combine_result_sets(combined_results, result); end
496
+
497
+ class << self
498
+ # Combine process explanation
499
+ # => ResultCombiner: define all present files between results and start combine on file level.
500
+ # ==> FileCombiner: collect result of next combine levels lines and branches.
501
+ # ===> LinesCombiner: combine lines results.
502
+ # ===> BranchesCombiner: combine branches results.
503
+ #
504
+ # @return [Hash]
505
+ #
506
+ # source://simplecov//lib/simplecov/combine/results_combiner.rb#22
507
+ def combine(*results); end
508
+
509
+ # Combine two files coverage results
510
+ #
511
+ # @param coverage_a [Hash]
512
+ # @param coverage_b [Hash]
513
+ # @return [Hash]
514
+ #
515
+ # source://simplecov//lib/simplecov/combine/results_combiner.rb#55
516
+ def combine_file_coverage(coverage_a, coverage_b); end
517
+
518
+ # Manage combining results on files level
519
+ #
520
+ # @param combined_results [Hash]
521
+ # @param result [Hash]
522
+ # @return [Hash]
523
+ #
524
+ # source://simplecov//lib/simplecov/combine/results_combiner.rb#36
525
+ def combine_result_sets(combined_results, result); end
526
+ end
527
+ end
528
+
529
+ # Helper that tries to find out what test suite is running (for SimpleCov.command_name)
530
+ #
531
+ # source://simplecov//lib/simplecov/command_guesser.rb#7
532
+ module SimpleCov::CommandGuesser
533
+ class << self
534
+ # source://simplecov//lib/simplecov/command_guesser.rb#16
535
+ def guess; end
536
+
537
+ # Storage for the original command line call that invoked the test suite.
538
+ # This has got to be stored as early as possible because i.e. rake and test/unit 2
539
+ # have a habit of tampering with ARGV, which makes i.e. the automatic distinction
540
+ # between rails unit/functional/integration tests impossible without this cached
541
+ # item.
542
+ #
543
+ # source://simplecov//lib/simplecov/command_guesser.rb#14
544
+ def original_run_command; end
545
+
546
+ # Storage for the original command line call that invoked the test suite.
547
+ # This has got to be stored as early as possible because i.e. rake and test/unit 2
548
+ # have a habit of tampering with ARGV, which makes i.e. the automatic distinction
549
+ # between rails unit/functional/integration tests impossible without this cached
550
+ # item.
551
+ #
552
+ # source://simplecov//lib/simplecov/command_guesser.rb#14
553
+ def original_run_command=(_arg0); end
554
+
555
+ private
556
+
557
+ # source://simplecov//lib/simplecov/command_guesser.rb#31
558
+ def from_command_line_options; end
559
+
560
+ # source://simplecov//lib/simplecov/command_guesser.rb#46
561
+ def from_defined_constants; end
562
+
563
+ # source://simplecov//lib/simplecov/command_guesser.rb#22
564
+ def from_env; end
565
+ end
566
+ end
567
+
568
+ # Bundles the configuration options used for SimpleCov. All methods
569
+ # defined here are usable from SimpleCov directly. Please check out
570
+ # SimpleCov documentation for further info.
571
+ #
572
+ # source://simplecov//lib/simplecov/configuration.rb#13
573
+ module SimpleCov::Configuration
574
+ # source://simplecov//lib/simplecov/configuration.rb#161
575
+ def adapters; end
576
+
577
+ # Add a filter to the processing chain.
578
+ # There are four ways to define a filter:
579
+ #
580
+ # * as a String that will then be matched against all source files' file paths,
581
+ # SimpleCov.add_filter 'app/models' # will reject all your models
582
+ # * as a block which will be passed the source file in question and should either
583
+ # return a true or false value, depending on whether the file should be removed
584
+ # SimpleCov.add_filter do |src_file|
585
+ # File.basename(src_file.filename) == 'environment.rb'
586
+ # end # Will exclude environment.rb files from the results
587
+ # * as an array of strings that are matched against all sorce files' file
588
+ # paths and then ignored (basically string filter multiple times)
589
+ # SimpleCov.add_filter ['app/models', 'app/helpers'] # ignores both dirs
590
+ # * as an instance of a subclass of SimpleCov::Filter. See the documentation there
591
+ # on how to define your own filter classes
592
+ #
593
+ # source://simplecov//lib/simplecov/configuration.rb#367
594
+ def add_filter(filter_argument = T.unsafe(nil), &filter_proc); end
595
+
596
+ # Define a group for files. Works similar to add_filter, only that the first
597
+ # argument is the desired group name and files PASSING the filter end up in the group
598
+ # (while filters exclude when the filter is applicable).
599
+ #
600
+ # source://simplecov//lib/simplecov/configuration.rb#376
601
+ def add_group(group_name, filter_argument = T.unsafe(nil), &filter_proc); end
602
+
603
+ # Gets or sets the behavior to process coverage results.
604
+ #
605
+ # By default, it will call SimpleCov.result.format!
606
+ #
607
+ # Configure with:
608
+ #
609
+ # SimpleCov.at_exit do
610
+ # puts "Coverage done"
611
+ # SimpleCov.result.format!
612
+ # end
613
+ #
614
+ # source://simplecov//lib/simplecov/configuration.rb#193
615
+ def at_exit(&block); end
616
+
617
+ # Gets or sets the behavior to start a new forked Process.
618
+ #
619
+ # By default, it will add " (Process #{pid})" to the command_name, and start SimpleCov in quiet mode
620
+ #
621
+ # Configure with:
622
+ #
623
+ # SimpleCov.at_fork do |pid|
624
+ # SimpleCov.start do
625
+ # # This needs a unique name so it won't be ovewritten
626
+ # SimpleCov.command_name "#{SimpleCov.command_name} (subprocess: #{pid})"
627
+ # # be quiet, the parent process will be in charge of using the regular formatter and checking coverage totals
628
+ # SimpleCov.print_error_status = false
629
+ # SimpleCov.formatter SimpleCov::Formatter::SimpleFormatter
630
+ # SimpleCov.minimum_coverage 0
631
+ # # start
632
+ # SimpleCov.start
633
+ # end
634
+ # end
635
+ #
636
+ # source://simplecov//lib/simplecov/configuration.rb#233
637
+ def at_fork(&block); end
638
+
639
+ # @return [Boolean]
640
+ #
641
+ # source://simplecov//lib/simplecov/configuration.rb#428
642
+ def branch_coverage?; end
643
+
644
+ # @return [Boolean]
645
+ #
646
+ # source://simplecov//lib/simplecov/configuration.rb#443
647
+ def branch_coverage_supported?; end
648
+
649
+ # source://simplecov//lib/simplecov/configuration.rb#424
650
+ def clear_coverage_criteria; end
651
+
652
+ # The name of the command (a.k.a. Test Suite) currently running. Used for result
653
+ # merging and caching. It first tries to make a guess based upon the command line
654
+ # arguments the current test suite is running on and should automatically detect
655
+ # unit tests, functional tests, integration tests, rpsec and cucumber and label
656
+ # them properly. If it fails to recognize the current command, the command name
657
+ # is set to the shell command that the current suite is running on.
658
+ #
659
+ # You can specify it manually with SimpleCov.command_name("test:units") - please
660
+ # also check out the corresponding section in README.rdoc
661
+ #
662
+ # source://simplecov//lib/simplecov/configuration.rb#87
663
+ def command_name(name = T.unsafe(nil)); end
664
+
665
+ # Allows you to configure simplecov in a block instead of prepending SimpleCov to all config methods
666
+ # you're calling.
667
+ #
668
+ # SimpleCov.configure do
669
+ # add_filter 'foobar'
670
+ # end
671
+ #
672
+ # This is equivalent to SimpleCov.add_filter 'foobar' and thus makes it easier to set a bunch of configure
673
+ # options at once.
674
+ #
675
+ # source://simplecov//lib/simplecov/configuration.rb#177
676
+ def configure(&block); end
677
+
678
+ # source://simplecov//lib/simplecov/configuration.rb#416
679
+ def coverage_criteria; end
680
+
681
+ # Define which coverage criterion should be evaluated.
682
+ #
683
+ # Possible coverage criteria:
684
+ # * :line - coverage based on lines aka has this line been executed?
685
+ # * :branch - coverage based on branches aka has this branch (think conditions) been executed?
686
+ #
687
+ # If not set the default is `:line`
688
+ #
689
+ # @param criterion [Symbol]
690
+ #
691
+ # source://simplecov//lib/simplecov/configuration.rb#393
692
+ def coverage_criterion(criterion = T.unsafe(nil)); end
693
+
694
+ # @return [Boolean]
695
+ #
696
+ # source://simplecov//lib/simplecov/configuration.rb#420
697
+ def coverage_criterion_enabled?(criterion); end
698
+
699
+ # The name of the output and cache directory. Defaults to 'coverage'
700
+ #
701
+ # Configure with SimpleCov.coverage_dir('cov')
702
+ #
703
+ # source://simplecov//lib/simplecov/configuration.rb#34
704
+ def coverage_dir(dir = T.unsafe(nil)); end
705
+
706
+ # @return [Boolean]
707
+ #
708
+ # source://simplecov//lib/simplecov/configuration.rb#452
709
+ def coverage_for_eval_enabled?; end
710
+
711
+ # @return [Boolean]
712
+ #
713
+ # source://simplecov//lib/simplecov/configuration.rb#447
714
+ def coverage_for_eval_supported?; end
715
+
716
+ # Returns the full path to the output directory using SimpleCov.root
717
+ # and SimpleCov.coverage_dir, so you can adjust this by configuring those
718
+ # values. Will create the directory if it's missing
719
+ #
720
+ # source://simplecov//lib/simplecov/configuration.rb#46
721
+ def coverage_path; end
722
+
723
+ # @return [Boolean]
724
+ #
725
+ # source://simplecov//lib/simplecov/configuration.rb#432
726
+ def coverage_start_arguments_supported?; end
727
+
728
+ # source://simplecov//lib/simplecov/configuration.rb#401
729
+ def enable_coverage(criterion); end
730
+
731
+ # source://simplecov//lib/simplecov/configuration.rb#456
732
+ def enable_coverage_for_eval; end
733
+
734
+ # gets or sets the enabled_for_subprocess configuration
735
+ # when true, this will inject SimpleCov code into Process.fork
736
+ #
737
+ # source://simplecov//lib/simplecov/configuration.rb#202
738
+ def enable_for_subprocesses(value = T.unsafe(nil)); end
739
+
740
+ # gets the enabled_for_subprocess configuration
741
+ #
742
+ # @return [Boolean]
743
+ #
744
+ # source://simplecov//lib/simplecov/configuration.rb#209
745
+ def enabled_for_subprocesses?; end
746
+
747
+ # Returns the list of configured filters. Add filters using SimpleCov.add_filter.
748
+ #
749
+ # source://simplecov//lib/simplecov/configuration.rb#74
750
+ def filters; end
751
+
752
+ # Sets the attribute filters
753
+ #
754
+ # @param value the value to set the attribute filters to.
755
+ #
756
+ # source://simplecov//lib/simplecov/configuration.rb#14
757
+ def filters=(_arg0); end
758
+
759
+ # Gets or sets the configured formatter.
760
+ #
761
+ # Configure with: SimpleCov.formatter(SimpleCov::Formatter::SimpleFormatter)
762
+ #
763
+ # source://simplecov//lib/simplecov/configuration.rb#98
764
+ def formatter(formatter = T.unsafe(nil)); end
765
+
766
+ # Sets the attribute formatter
767
+ #
768
+ # @param value the value to set the attribute formatter to.
769
+ #
770
+ # source://simplecov//lib/simplecov/configuration.rb#14
771
+ def formatter=(_arg0); end
772
+
773
+ # Gets the configured formatters.
774
+ #
775
+ # source://simplecov//lib/simplecov/configuration.rb#117
776
+ def formatters; end
777
+
778
+ # Sets the configured formatters.
779
+ #
780
+ # source://simplecov//lib/simplecov/configuration.rb#110
781
+ def formatters=(formatters); end
782
+
783
+ # Returns the configured groups. Add groups using SimpleCov.add_group
784
+ #
785
+ # source://simplecov//lib/simplecov/configuration.rb#150
786
+ def groups; end
787
+
788
+ # Sets the attribute groups
789
+ #
790
+ # @param value the value to set the attribute groups to.
791
+ #
792
+ # source://simplecov//lib/simplecov/configuration.rb#14
793
+ def groups=(_arg0); end
794
+
795
+ # Defines the maximum coverage drop at once allowed for the testsuite to pass.
796
+ # SimpleCov will return non-zero if the coverage decreases by more than this threshold.
797
+ #
798
+ # Default is 100% (disabled)
799
+ #
800
+ # source://simplecov//lib/simplecov/configuration.rb#313
801
+ def maximum_coverage_drop(coverage_drop = T.unsafe(nil)); end
802
+
803
+ # Defines the maximum age (in seconds) of a resultset to still be included in merged results.
804
+ # i.e. If you run cucumber features, then later rake test, if the stored cucumber resultset is
805
+ # more seconds ago than specified here, it won't be taken into account when merging (and is also
806
+ # purged from the resultset cache)
807
+ #
808
+ # Of course, this only applies when merging is active (e.g. SimpleCov.use_merging is not false!)
809
+ #
810
+ # Default is 600 seconds (10 minutes)
811
+ #
812
+ # Configure with SimpleCov.merge_timeout(3600) # 1hr
813
+ #
814
+ # source://simplecov//lib/simplecov/configuration.rb#279
815
+ def merge_timeout(seconds = T.unsafe(nil)); end
816
+
817
+ # Defines the minimum overall coverage required for the testsuite to pass.
818
+ # SimpleCov will return non-zero if the current coverage is below this threshold.
819
+ #
820
+ # Default is 0% (disabled)
821
+ #
822
+ # source://simplecov//lib/simplecov/configuration.rb#290
823
+ def minimum_coverage(coverage = T.unsafe(nil)); end
824
+
825
+ # Defines the minimum coverage per file required for the testsuite to pass.
826
+ # SimpleCov will return non-zero if the current coverage of the least covered file
827
+ # is below this threshold.
828
+ #
829
+ # Default is 0% (disabled)
830
+ #
831
+ # source://simplecov//lib/simplecov/configuration.rb#330
832
+ def minimum_coverage_by_file(coverage = T.unsafe(nil)); end
833
+
834
+ # Certain code blocks (i.e. Ruby-implementation specific code) can be excluded from
835
+ # the coverage metrics by wrapping it inside # :nocov: comment blocks. The nocov token
836
+ # can be configured to be any other string using this.
837
+ #
838
+ # Configure with SimpleCov.nocov_token('skip') or it's alias SimpleCov.skip_token('skip')
839
+ #
840
+ # source://simplecov//lib/simplecov/configuration.rb#140
841
+ def nocov_token(nocov_token = T.unsafe(nil)); end
842
+
843
+ # source://simplecov//lib/simplecov/configuration.rb#407
844
+ def primary_coverage(criterion = T.unsafe(nil)); end
845
+
846
+ # Whether we should print non-success status codes. This can be
847
+ # configured with the #print_error_status= method.
848
+ #
849
+ # source://simplecov//lib/simplecov/configuration.rb#129
850
+ def print_error_status; end
851
+
852
+ # Sets the attribute print_error_status
853
+ #
854
+ # @param value the value to set the attribute print_error_status to.
855
+ #
856
+ # source://simplecov//lib/simplecov/configuration.rb#14
857
+ def print_error_status=(_arg0); end
858
+
859
+ # Returns the hash of available profiles
860
+ #
861
+ # source://simplecov//lib/simplecov/configuration.rb#157
862
+ def profiles; end
863
+
864
+ # Returns the project name - currently assuming the last dirname in
865
+ # the SimpleCov.root is this.
866
+ #
867
+ # source://simplecov//lib/simplecov/configuration.rb#251
868
+ def project_name(new_name = T.unsafe(nil)); end
869
+
870
+ # source://simplecov//lib/simplecov/configuration.rb#300
871
+ def raise_on_invalid_coverage(coverage, coverage_setting); end
872
+
873
+ # Refuses any coverage drop. That is, coverage is only allowed to increase.
874
+ # SimpleCov will return non-zero if the coverage decreases.
875
+ #
876
+ # source://simplecov//lib/simplecov/configuration.rb#344
877
+ def refuse_coverage_drop(*criteria); end
878
+
879
+ # The root for the project. This defaults to the
880
+ # current working directory.
881
+ #
882
+ # Configure with SimpleCov.root('/my/project/path')
883
+ #
884
+ # source://simplecov//lib/simplecov/configuration.rb#22
885
+ def root(root = T.unsafe(nil)); end
886
+
887
+ # Certain code blocks (i.e. Ruby-implementation specific code) can be excluded from
888
+ # the coverage metrics by wrapping it inside # :nocov: comment blocks. The nocov token
889
+ # can be configured to be any other string using this.
890
+ #
891
+ # Configure with SimpleCov.nocov_token('skip') or it's alias SimpleCov.skip_token('skip')
892
+ #
893
+ # source://simplecov//lib/simplecov/configuration.rb#140
894
+ def skip_token(nocov_token = T.unsafe(nil)); end
895
+
896
+ # Coverage results will always include files matched by this glob, whether
897
+ # or not they were explicitly required. Without this, un-required files
898
+ # will not be present in the final report.
899
+ #
900
+ # source://simplecov//lib/simplecov/configuration.rb#59
901
+ def track_files(glob); end
902
+
903
+ # Returns the glob that will be used to include files that were not
904
+ # explicitly required.
905
+ #
906
+ # source://simplecov//lib/simplecov/configuration.rb#67
907
+ def tracked_files; end
908
+
909
+ # Defines whether to use result merging so all your test suites (test:units, test:functionals, cucumber, ...)
910
+ # are joined and combined into a single coverage report
911
+ #
912
+ # source://simplecov//lib/simplecov/configuration.rb#262
913
+ def use_merging(use = T.unsafe(nil)); end
914
+
915
+ private
916
+
917
+ # source://simplecov//lib/simplecov/configuration.rb#483
918
+ def minimum_possible_coverage_exceeded(coverage_option); end
919
+
920
+ # The actual filter processor. Not meant for direct use
921
+ #
922
+ # source://simplecov//lib/simplecov/configuration.rb#490
923
+ def parse_filter(filter_argument = T.unsafe(nil), &filter_proc); end
924
+
925
+ # source://simplecov//lib/simplecov/configuration.rb#466
926
+ def raise_if_criterion_disabled(criterion); end
927
+
928
+ # source://simplecov//lib/simplecov/configuration.rb#475
929
+ def raise_if_criterion_unsupported(criterion); end
930
+ end
931
+
932
+ # source://simplecov//lib/simplecov/configuration.rb#381
933
+ SimpleCov::Configuration::DEFAULT_COVERAGE_CRITERION = T.let(T.unsafe(nil), Symbol)
934
+
935
+ # source://simplecov//lib/simplecov/configuration.rb#380
936
+ SimpleCov::Configuration::SUPPORTED_COVERAGE_CRITERIA = T.let(T.unsafe(nil), Array)
937
+
938
+ # Holds the individual data of a coverage result.
939
+ #
940
+ # This is uniform across coverage criteria as they all have:
941
+ #
942
+ # * total - how many things to cover there are (total relevant loc/branches)
943
+ # * covered - how many of the coverables are hit
944
+ # * missed - how many of the coverables are missed
945
+ # * percent - percentage as covered/missed
946
+ # * strength - average hits per/coverable (will not exist for one shot lines format)
947
+ #
948
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#13
949
+ class SimpleCov::CoverageStatistics
950
+ # Requires only covered, missed and strength to be initialized.
951
+ #
952
+ # Other values are computed by this class.
953
+ #
954
+ # @return [CoverageStatistics] a new instance of CoverageStatistics
955
+ #
956
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#34
957
+ def initialize(covered:, missed:, total_strength: T.unsafe(nil)); end
958
+
959
+ # Returns the value of attribute covered.
960
+ #
961
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#14
962
+ def covered; end
963
+
964
+ # Returns the value of attribute missed.
965
+ #
966
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#14
967
+ def missed; end
968
+
969
+ # Returns the value of attribute percent.
970
+ #
971
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#14
972
+ def percent; end
973
+
974
+ # Returns the value of attribute strength.
975
+ #
976
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#14
977
+ def strength; end
978
+
979
+ # Returns the value of attribute total.
980
+ #
981
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#14
982
+ def total; end
983
+
984
+ private
985
+
986
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#44
987
+ def compute_percent(covered, missed, total); end
988
+
989
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#50
990
+ def compute_strength(total_strength, total); end
991
+
992
+ class << self
993
+ # source://simplecov//lib/simplecov/coverage_statistics.rb#16
994
+ def from(coverage_statistics); end
995
+ end
996
+ end
997
+
998
+ # source://simplecov//lib/simplecov/exit_codes.rb#4
999
+ module SimpleCov::ExitCodes; end
1000
+
1001
+ # source://simplecov//lib/simplecov/exit_codes.rb#6
1002
+ SimpleCov::ExitCodes::EXCEPTION = T.let(T.unsafe(nil), Integer)
1003
+
1004
+ # source://simplecov//lib/simplecov/exit_codes/exit_code_handling.rb#5
1005
+ module SimpleCov::ExitCodes::ExitCodeHandling
1006
+ private
1007
+
1008
+ # source://simplecov//lib/simplecov/exit_codes/exit_code_handling.rb#8
1009
+ def call(result, coverage_limits:); end
1010
+
1011
+ # source://simplecov//lib/simplecov/exit_codes/exit_code_handling.rb#20
1012
+ def coverage_checks(result, coverage_limits); end
1013
+
1014
+ class << self
1015
+ # source://simplecov//lib/simplecov/exit_codes/exit_code_handling.rb#8
1016
+ def call(result, coverage_limits:); end
1017
+
1018
+ # source://simplecov//lib/simplecov/exit_codes/exit_code_handling.rb#20
1019
+ def coverage_checks(result, coverage_limits); end
1020
+ end
1021
+ end
1022
+
1023
+ # source://simplecov//lib/simplecov/exit_codes.rb#8
1024
+ SimpleCov::ExitCodes::MAXIMUM_COVERAGE_DROP = T.let(T.unsafe(nil), Integer)
1025
+
1026
+ # source://simplecov//lib/simplecov/exit_codes.rb#7
1027
+ SimpleCov::ExitCodes::MINIMUM_COVERAGE = T.let(T.unsafe(nil), Integer)
1028
+
1029
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#5
1030
+ class SimpleCov::ExitCodes::MaximumCoverageDropCheck
1031
+ # @return [MaximumCoverageDropCheck] a new instance of MaximumCoverageDropCheck
1032
+ #
1033
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#6
1034
+ def initialize(result, maximum_coverage_drop); end
1035
+
1036
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#28
1037
+ def exit_code; end
1038
+
1039
+ # @return [Boolean]
1040
+ #
1041
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#11
1042
+ def failing?; end
1043
+
1044
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#17
1045
+ def report; end
1046
+
1047
+ private
1048
+
1049
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#49
1050
+ def compute_coverage_drop_data; end
1051
+
1052
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#42
1053
+ def coverage_drop_violations; end
1054
+
1055
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#61
1056
+ def drop_percent(criterion); end
1057
+
1058
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#73
1059
+ def last_coverage(criterion); end
1060
+
1061
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#36
1062
+ def last_run; end
1063
+
1064
+ # Returns the value of attribute maximum_coverage_drop.
1065
+ #
1066
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#34
1067
+ def maximum_coverage_drop; end
1068
+
1069
+ # Returns the value of attribute result.
1070
+ #
1071
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#34
1072
+ def result; end
1073
+ end
1074
+
1075
+ # if anyone says "max_coverage_drop 0.000000000000000001" I appologize. Please don't.
1076
+ #
1077
+ # source://simplecov//lib/simplecov/exit_codes/maximum_coverage_drop_check.rb#60
1078
+ SimpleCov::ExitCodes::MaximumCoverageDropCheck::MAX_DROP_ACCURACY = T.let(T.unsafe(nil), Integer)
1079
+
1080
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#5
1081
+ class SimpleCov::ExitCodes::MinimumCoverageByFileCheck
1082
+ # @return [MinimumCoverageByFileCheck] a new instance of MinimumCoverageByFileCheck
1083
+ #
1084
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#6
1085
+ def initialize(result, minimum_coverage_by_file); end
1086
+
1087
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#26
1088
+ def exit_code; end
1089
+
1090
+ # @return [Boolean]
1091
+ #
1092
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#11
1093
+ def failing?; end
1094
+
1095
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#15
1096
+ def report; end
1097
+
1098
+ private
1099
+
1100
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#41
1101
+ def compute_minimum_coverage_data; end
1102
+
1103
+ # Returns the value of attribute minimum_coverage_by_file.
1104
+ #
1105
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#32
1106
+ def minimum_coverage_by_file; end
1107
+
1108
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#34
1109
+ def minimum_violations; end
1110
+
1111
+ # Returns the value of attribute result.
1112
+ #
1113
+ # source://simplecov//lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb#32
1114
+ def result; end
1115
+ end
1116
+
1117
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#5
1118
+ class SimpleCov::ExitCodes::MinimumOverallCoverageCheck
1119
+ # @return [MinimumOverallCoverageCheck] a new instance of MinimumOverallCoverageCheck
1120
+ #
1121
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#6
1122
+ def initialize(result, minimum_coverage); end
1123
+
1124
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#26
1125
+ def exit_code; end
1126
+
1127
+ # @return [Boolean]
1128
+ #
1129
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#11
1130
+ def failing?; end
1131
+
1132
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#15
1133
+ def report; end
1134
+
1135
+ private
1136
+
1137
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#38
1138
+ def calculate_minimum_violations; end
1139
+
1140
+ # Returns the value of attribute minimum_coverage.
1141
+ #
1142
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#32
1143
+ def minimum_coverage; end
1144
+
1145
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#34
1146
+ def minimum_violations; end
1147
+
1148
+ # Returns the value of attribute result.
1149
+ #
1150
+ # source://simplecov//lib/simplecov/exit_codes/minimum_overall_coverage_check.rb#32
1151
+ def result; end
1152
+ end
1153
+
1154
+ # source://simplecov//lib/simplecov/exit_codes.rb#5
1155
+ SimpleCov::ExitCodes::SUCCESS = T.let(T.unsafe(nil), Integer)
1156
+
1157
+ # An array of SimpleCov SourceFile instances with additional collection helper
1158
+ # methods for calculating coverage across them etc.
1159
+ #
1160
+ # source://simplecov//lib/simplecov/file_list.rb#6
1161
+ class SimpleCov::FileList
1162
+ include ::Enumerable
1163
+ extend ::Forwardable
1164
+
1165
+ # @return [FileList] a new instance of FileList
1166
+ #
1167
+ # source://simplecov//lib/simplecov/file_list.rb#22
1168
+ def initialize(files); end
1169
+
1170
+ # source://simplecov//lib/simplecov/file_list.rb#101
1171
+ def branch_covered_percent; end
1172
+
1173
+ # source://forwardable/1.3.2/forwardable.rb#229
1174
+ def count(*args, **_arg1, &block); end
1175
+
1176
+ # source://simplecov//lib/simplecov/file_list.rb#26
1177
+ def coverage_statistics; end
1178
+
1179
+ # source://simplecov//lib/simplecov/file_list.rb#30
1180
+ def coverage_statistics_by_file; end
1181
+
1182
+ # Return total count of covered branches
1183
+ #
1184
+ # source://simplecov//lib/simplecov/file_list.rb#92
1185
+ def covered_branches; end
1186
+
1187
+ # Returns the count of lines that have coverage
1188
+ #
1189
+ # source://simplecov//lib/simplecov/file_list.rb#35
1190
+ def covered_lines; end
1191
+
1192
+ # Computes the coverage based upon lines covered and lines missed
1193
+ #
1194
+ # @return [Float]
1195
+ #
1196
+ # source://simplecov//lib/simplecov/file_list.rb#76
1197
+ def covered_percent; end
1198
+
1199
+ # Computes the coverage based upon lines covered and lines missed for each file
1200
+ # Returns an array with all coverage percentages
1201
+ #
1202
+ # source://simplecov//lib/simplecov/file_list.rb#60
1203
+ def covered_percentages; end
1204
+
1205
+ # Computes the strength (hits / line) based upon lines covered and lines missed
1206
+ #
1207
+ # @return [Float]
1208
+ #
1209
+ # source://simplecov//lib/simplecov/file_list.rb#82
1210
+ def covered_strength; end
1211
+
1212
+ # source://forwardable/1.3.2/forwardable.rb#229
1213
+ def each(*args, **_arg1, &block); end
1214
+
1215
+ # source://forwardable/1.3.2/forwardable.rb#229
1216
+ def empty?(*args, **_arg1, &block); end
1217
+
1218
+ # Finds the least covered file and returns that file's name
1219
+ #
1220
+ # source://simplecov//lib/simplecov/file_list.rb#65
1221
+ def least_covered_file; end
1222
+
1223
+ # source://forwardable/1.3.2/forwardable.rb#229
1224
+ def length(*args, **_arg1, &block); end
1225
+
1226
+ # Returns the overall amount of relevant lines of code across all files in this list
1227
+ #
1228
+ # source://simplecov//lib/simplecov/file_list.rb#70
1229
+ def lines_of_code; end
1230
+
1231
+ # source://forwardable/1.3.2/forwardable.rb#229
1232
+ def map(*args, **_arg1, &block); end
1233
+
1234
+ # Return total count of covered branches
1235
+ #
1236
+ # source://simplecov//lib/simplecov/file_list.rb#97
1237
+ def missed_branches; end
1238
+
1239
+ # Returns the count of lines that have been missed
1240
+ #
1241
+ # source://simplecov//lib/simplecov/file_list.rb#40
1242
+ def missed_lines; end
1243
+
1244
+ # Returns the count of lines that are not relevant for coverage
1245
+ #
1246
+ # source://simplecov//lib/simplecov/file_list.rb#45
1247
+ def never_lines; end
1248
+
1249
+ # source://forwardable/1.3.2/forwardable.rb#229
1250
+ def size(*args, **_arg1, &block); end
1251
+
1252
+ # Returns the count of skipped lines
1253
+ #
1254
+ # source://simplecov//lib/simplecov/file_list.rb#52
1255
+ def skipped_lines; end
1256
+
1257
+ # source://forwardable/1.3.2/forwardable.rb#229
1258
+ def to_a(*args, **_arg1, &block); end
1259
+
1260
+ # source://forwardable/1.3.2/forwardable.rb#229
1261
+ def to_ary(*args, **_arg1, &block); end
1262
+
1263
+ # Return total count of branches in all files
1264
+ #
1265
+ # source://simplecov//lib/simplecov/file_list.rb#87
1266
+ def total_branches; end
1267
+
1268
+ private
1269
+
1270
+ # source://simplecov//lib/simplecov/file_list.rb#114
1271
+ def compute_coverage_statistics; end
1272
+
1273
+ # source://simplecov//lib/simplecov/file_list.rb#107
1274
+ def compute_coverage_statistics_by_file; end
1275
+ end
1276
+
1277
+ # Base filter class. Inherit from this to create custom filters,
1278
+ # and overwrite the passes?(source_file) instance method
1279
+ #
1280
+ # # A sample class that rejects all source files.
1281
+ # class StupidFilter < SimpleCov::Filter
1282
+ # def passes?(source_file)
1283
+ # false
1284
+ # end
1285
+ # end
1286
+ #
1287
+ # source://simplecov//lib/simplecov/filter.rb#15
1288
+ class SimpleCov::Filter
1289
+ # @return [Filter] a new instance of Filter
1290
+ #
1291
+ # source://simplecov//lib/simplecov/filter.rb#18
1292
+ def initialize(filter_argument); end
1293
+
1294
+ # Returns the value of attribute filter_argument.
1295
+ #
1296
+ # source://simplecov//lib/simplecov/filter.rb#16
1297
+ def filter_argument; end
1298
+
1299
+ # @return [Boolean]
1300
+ #
1301
+ # source://simplecov//lib/simplecov/filter.rb#22
1302
+ def matches?(_source_file); end
1303
+
1304
+ # @return [Boolean]
1305
+ #
1306
+ # source://simplecov//lib/simplecov/filter.rb#26
1307
+ def passes?(source_file); end
1308
+
1309
+ class << self
1310
+ # source://simplecov//lib/simplecov/filter.rb#31
1311
+ def build_filter(filter_argument); end
1312
+
1313
+ # source://simplecov//lib/simplecov/filter.rb#37
1314
+ def class_for_argument(filter_argument); end
1315
+ end
1316
+ end
1317
+
1318
+ # TODO: Documentation on how to build your own formatters
1319
+ #
1320
+ # source://simplecov//lib/simplecov/formatter/multi_formatter.rb#4
1321
+ module SimpleCov::Formatter
1322
+ class << self
1323
+ # source://simplecov//lib/simplecov/default_formatter.rb#7
1324
+ def from_env(env); end
1325
+ end
1326
+ end
1327
+
1328
+ # source://simplecov//lib/simplecov/formatter/multi_formatter.rb#5
1329
+ class SimpleCov::Formatter::MultiFormatter
1330
+ class << self
1331
+ # source://simplecov//lib/simplecov/formatter/multi_formatter.rb#26
1332
+ def [](*args); end
1333
+
1334
+ # source://simplecov//lib/simplecov/formatter/multi_formatter.rb#17
1335
+ def new(formatters = T.unsafe(nil)); end
1336
+ end
1337
+ end
1338
+
1339
+ # source://simplecov//lib/simplecov/formatter/multi_formatter.rb#6
1340
+ module SimpleCov::Formatter::MultiFormatter::InstanceMethods
1341
+ # source://simplecov//lib/simplecov/formatter/multi_formatter.rb#7
1342
+ def format(result); end
1343
+ end
1344
+
1345
+ # A ridiculously simple formatter for SimpleCov results.
1346
+ #
1347
+ # source://simplecov//lib/simplecov/formatter/simple_formatter.rb#8
1348
+ class SimpleCov::Formatter::SimpleFormatter
1349
+ # Takes a SimpleCov::Result and generates a string out of it
1350
+ #
1351
+ # source://simplecov//lib/simplecov/formatter/simple_formatter.rb#10
1352
+ def format(result); end
1353
+ end
1354
+
1355
+ # source://simplecov//lib/simplecov/last_run.rb#6
1356
+ module SimpleCov::LastRun
1357
+ class << self
1358
+ # source://simplecov//lib/simplecov/last_run.rb#8
1359
+ def last_run_path; end
1360
+
1361
+ # source://simplecov//lib/simplecov/last_run.rb#12
1362
+ def read; end
1363
+
1364
+ # source://simplecov//lib/simplecov/last_run.rb#21
1365
+ def write(json); end
1366
+ end
1367
+ end
1368
+
1369
+ # Classifies whether lines are relevant for code coverage analysis.
1370
+ # Comments & whitespace lines, and :nocov: token blocks, are considered not relevant.
1371
+ #
1372
+ # source://simplecov//lib/simplecov/lines_classifier.rb#7
1373
+ class SimpleCov::LinesClassifier
1374
+ # source://simplecov//lib/simplecov/lines_classifier.rb#33
1375
+ def classify(lines); end
1376
+
1377
+ class << self
1378
+ # source://simplecov//lib/simplecov/lines_classifier.rb#15
1379
+ def no_cov_line; end
1380
+
1381
+ # @return [Boolean]
1382
+ #
1383
+ # source://simplecov//lib/simplecov/lines_classifier.rb#19
1384
+ def no_cov_line?(line); end
1385
+
1386
+ # @return [Boolean]
1387
+ #
1388
+ # source://simplecov//lib/simplecov/lines_classifier.rb#26
1389
+ def whitespace_line?(line); end
1390
+ end
1391
+ end
1392
+
1393
+ # source://simplecov//lib/simplecov/lines_classifier.rb#12
1394
+ SimpleCov::LinesClassifier::COMMENT_LINE = T.let(T.unsafe(nil), Regexp)
1395
+
1396
+ # source://simplecov//lib/simplecov/lines_classifier.rb#9
1397
+ SimpleCov::LinesClassifier::NOT_RELEVANT = T.let(T.unsafe(nil), T.untyped)
1398
+
1399
+ # source://simplecov//lib/simplecov/lines_classifier.rb#8
1400
+ SimpleCov::LinesClassifier::RELEVANT = T.let(T.unsafe(nil), Integer)
1401
+
1402
+ # source://simplecov//lib/simplecov/lines_classifier.rb#11
1403
+ SimpleCov::LinesClassifier::WHITESPACE_LINE = T.let(T.unsafe(nil), Regexp)
1404
+
1405
+ # source://simplecov//lib/simplecov/lines_classifier.rb#13
1406
+ SimpleCov::LinesClassifier::WHITESPACE_OR_COMMENT_LINE = T.let(T.unsafe(nil), Regexp)
1407
+
1408
+ # Profiles are SimpleCov configuration procs that can be easily
1409
+ # loaded using SimpleCov.start :rails and defined using
1410
+ # SimpleCov.profiles.define :foo do
1411
+ # # SimpleCov configuration here, same as in SimpleCov.configure
1412
+ # end
1413
+ #
1414
+ # source://simplecov//lib/simplecov/profiles.rb#17
1415
+ class SimpleCov::Profiles < ::Hash
1416
+ # Define a SimpleCov profile:
1417
+ # SimpleCov.profiles.define 'rails' do
1418
+ # # Same as SimpleCov.configure do .. here
1419
+ # end
1420
+ #
1421
+ # source://simplecov//lib/simplecov/profiles.rb#18
1422
+ def define(name, &blk); end
1423
+
1424
+ # Applies the profile of given name on SimpleCov.configure
1425
+ #
1426
+ # source://simplecov//lib/simplecov/profiles.rb#28
1427
+ def load(name); end
1428
+ end
1429
+
1430
+ # source://simplecov//lib/simplecov/filter.rb#63
1431
+ class SimpleCov::RegexFilter < ::SimpleCov::Filter
1432
+ # Returns true when the given source file's filename matches the
1433
+ # regex configured when initializing this Filter with RegexFilter.new(/someregex/)
1434
+ #
1435
+ # @return [Boolean]
1436
+ #
1437
+ # source://simplecov//lib/simplecov/filter.rb#64
1438
+ def matches?(source_file); end
1439
+ end
1440
+
1441
+ # A simplecov code coverage result, initialized from the Hash Ruby's built-in coverage
1442
+ # library generates (Coverage.result).
1443
+ #
1444
+ # source://simplecov//lib/simplecov/result.rb#11
1445
+ class SimpleCov::Result
1446
+ extend ::Forwardable
1447
+
1448
+ # Initialize a new SimpleCov::Result from given Coverage.result (a Hash of filenames each containing an array of
1449
+ # coverage data)
1450
+ #
1451
+ # @return [Result] a new instance of Result
1452
+ #
1453
+ # source://simplecov//lib/simplecov/result.rb#28
1454
+ def initialize(original_result, command_name: T.unsafe(nil), created_at: T.unsafe(nil)); end
1455
+
1456
+ # The command name that launched this result.
1457
+ # Delegated to SimpleCov.command_name if not set manually
1458
+ #
1459
+ # source://simplecov//lib/simplecov/result.rb#61
1460
+ def command_name; end
1461
+
1462
+ # Explicitly set the command name that was used for this coverage result. Defaults to SimpleCov.command_name
1463
+ #
1464
+ # source://simplecov//lib/simplecov/result.rb#21
1465
+ def command_name=(_arg0); end
1466
+
1467
+ # source://forwardable/1.3.2/forwardable.rb#229
1468
+ def coverage_statistics(*args, **_arg1, &block); end
1469
+
1470
+ # source://forwardable/1.3.2/forwardable.rb#229
1471
+ def coverage_statistics_by_file(*args, **_arg1, &block); end
1472
+
1473
+ # source://forwardable/1.3.2/forwardable.rb#229
1474
+ def covered_branches(*args, **_arg1, &block); end
1475
+
1476
+ # source://forwardable/1.3.2/forwardable.rb#229
1477
+ def covered_lines(*args, **_arg1, &block); end
1478
+
1479
+ # source://forwardable/1.3.2/forwardable.rb#229
1480
+ def covered_percent(*args, **_arg1, &block); end
1481
+
1482
+ # source://forwardable/1.3.2/forwardable.rb#229
1483
+ def covered_percentages(*args, **_arg1, &block); end
1484
+
1485
+ # source://forwardable/1.3.2/forwardable.rb#229
1486
+ def covered_strength(*args, **_arg1, &block); end
1487
+
1488
+ # Defines when this result has been created. Defaults to Time.now
1489
+ #
1490
+ # source://simplecov//lib/simplecov/result.rb#55
1491
+ def created_at; end
1492
+
1493
+ # Explicitly set the Time this result has been created
1494
+ #
1495
+ # source://simplecov//lib/simplecov/result.rb#19
1496
+ def created_at=(_arg0); end
1497
+
1498
+ # Returns all filenames for source files contained in this result
1499
+ #
1500
+ # source://simplecov//lib/simplecov/result.rb#40
1501
+ def filenames; end
1502
+
1503
+ # Returns all files that are applicable to this result (sans filters!) as instances of SimpleCov::SourceFile. Aliased as :source_files
1504
+ #
1505
+ # source://simplecov//lib/simplecov/result.rb#16
1506
+ def files; end
1507
+
1508
+ # Applies the configured SimpleCov.formatter on this result
1509
+ #
1510
+ # source://simplecov//lib/simplecov/result.rb#50
1511
+ def format!; end
1512
+
1513
+ # Returns a Hash of groups for this result. Define groups using SimpleCov.add_group 'Models', 'app/models'
1514
+ #
1515
+ # source://simplecov//lib/simplecov/result.rb#45
1516
+ def groups; end
1517
+
1518
+ # source://forwardable/1.3.2/forwardable.rb#229
1519
+ def least_covered_file(*args, **_arg1, &block); end
1520
+
1521
+ # source://forwardable/1.3.2/forwardable.rb#229
1522
+ def missed_branches(*args, **_arg1, &block); end
1523
+
1524
+ # source://forwardable/1.3.2/forwardable.rb#229
1525
+ def missed_lines(*args, **_arg1, &block); end
1526
+
1527
+ # Returns the original Coverage.result used for this instance of SimpleCov::Result
1528
+ #
1529
+ # source://simplecov//lib/simplecov/result.rb#14
1530
+ def original_result; end
1531
+
1532
+ # Returns all files that are applicable to this result (sans filters!) as instances of SimpleCov::SourceFile. Aliased as :source_files
1533
+ #
1534
+ # source://simplecov//lib/simplecov/result.rb#16
1535
+ def source_files; end
1536
+
1537
+ # Returns a hash representation of this Result that can be used for marshalling it into JSON
1538
+ #
1539
+ # source://simplecov//lib/simplecov/result.rb#66
1540
+ def to_hash; end
1541
+
1542
+ # source://forwardable/1.3.2/forwardable.rb#229
1543
+ def total_branches(*args, **_arg1, &block); end
1544
+
1545
+ # source://forwardable/1.3.2/forwardable.rb#229
1546
+ def total_lines(*args, **_arg1, &block); end
1547
+
1548
+ private
1549
+
1550
+ # source://simplecov//lib/simplecov/result.rb#84
1551
+ def coverage; end
1552
+
1553
+ # Applies all configured SimpleCov filters on this result's source files
1554
+ #
1555
+ # source://simplecov//lib/simplecov/result.rb#90
1556
+ def filter!; end
1557
+
1558
+ class << self
1559
+ # Loads a SimpleCov::Result#to_hash dump
1560
+ #
1561
+ # source://simplecov//lib/simplecov/result.rb#76
1562
+ def from_hash(hash); end
1563
+ end
1564
+ end
1565
+
1566
+ # Responsible for adapting the format of the coverage result whether it's default or with statistics
1567
+ #
1568
+ # source://simplecov//lib/simplecov/result_adapter.rb#7
1569
+ class SimpleCov::ResultAdapter
1570
+ # @return [ResultAdapter] a new instance of ResultAdapter
1571
+ #
1572
+ # source://simplecov//lib/simplecov/result_adapter.rb#10
1573
+ def initialize(result); end
1574
+
1575
+ # source://simplecov//lib/simplecov/result_adapter.rb#18
1576
+ def adapt; end
1577
+
1578
+ # Returns the value of attribute result.
1579
+ #
1580
+ # source://simplecov//lib/simplecov/result_adapter.rb#8
1581
+ def result; end
1582
+
1583
+ class << self
1584
+ # source://simplecov//lib/simplecov/result_adapter.rb#14
1585
+ def call(*args); end
1586
+ end
1587
+ end
1588
+
1589
+ # Singleton that is responsible for caching, loading and merging
1590
+ # SimpleCov::Results into a single result for coverage analysis based
1591
+ # upon multiple test suites.
1592
+ #
1593
+ # source://simplecov//lib/simplecov/result_merger.rb#11
1594
+ module SimpleCov::ResultMerger
1595
+ class << self
1596
+ # source://simplecov//lib/simplecov/result_merger.rb#187
1597
+ def adapt_pre_simplecov_0_18_result(result); end
1598
+
1599
+ # We changed the format of the raw result data in simplecov, as people are likely
1600
+ # to have "old" resultsets lying around (but not too old so that they're still
1601
+ # considered we can adapt them).
1602
+ # See https://github.com/simplecov-ruby/simplecov/pull/824#issuecomment-576049747
1603
+ #
1604
+ # source://simplecov//lib/simplecov/result_merger.rb#172
1605
+ def adapt_result(result); end
1606
+
1607
+ # source://simplecov//lib/simplecov/result_merger.rb#93
1608
+ def create_result(command_names, coverage); end
1609
+
1610
+ # source://simplecov//lib/simplecov/result_merger.rb#22
1611
+ def merge_and_store(*file_paths, ignore_timeout: T.unsafe(nil)); end
1612
+
1613
+ # source://simplecov//lib/simplecov/result_merger.rb#100
1614
+ def merge_coverage(*results); end
1615
+
1616
+ # source://simplecov//lib/simplecov/result_merger.rb#28
1617
+ def merge_results(*file_paths, ignore_timeout: T.unsafe(nil)); end
1618
+
1619
+ # source://simplecov//lib/simplecov/result_merger.rb#74
1620
+ def merge_valid_results(results, ignore_timeout: T.unsafe(nil)); end
1621
+
1622
+ # Gets all SimpleCov::Results stored in resultset, merges them and produces a new
1623
+ # SimpleCov::Result with merged coverage data and the command_name
1624
+ # for the result consisting of a join on all source result's names
1625
+ #
1626
+ # source://simplecov//lib/simplecov/result_merger.rb#117
1627
+ def merged_result; end
1628
+
1629
+ # source://simplecov//lib/simplecov/result_merger.rb#51
1630
+ def parse_file(path); end
1631
+
1632
+ # source://simplecov//lib/simplecov/result_merger.rb#65
1633
+ def parse_json(content); end
1634
+
1635
+ # pre 0.18 coverage data pointed from file directly to an array of line coverage
1636
+ #
1637
+ # @return [Boolean]
1638
+ #
1639
+ # source://simplecov//lib/simplecov/result_merger.rb#181
1640
+ def pre_simplecov_0_18_result?(result); end
1641
+
1642
+ # source://simplecov//lib/simplecov/result_merger.rb#56
1643
+ def read_file(path); end
1644
+
1645
+ # source://simplecov//lib/simplecov/result_merger.rb#126
1646
+ def read_resultset; end
1647
+
1648
+ # The path to the .resultset.json cache file
1649
+ #
1650
+ # source://simplecov//lib/simplecov/result_merger.rb#14
1651
+ def resultset_path; end
1652
+
1653
+ # source://simplecov//lib/simplecov/result_merger.rb#18
1654
+ def resultset_writelock; end
1655
+
1656
+ # Saves the given SimpleCov::Result in the resultset cache
1657
+ #
1658
+ # source://simplecov//lib/simplecov/result_merger.rb#136
1659
+ def store_result(result); end
1660
+
1661
+ # Ensure only one process is reading or writing the resultset at any
1662
+ # given time
1663
+ #
1664
+ # source://simplecov//lib/simplecov/result_merger.rb#153
1665
+ def synchronize_resultset; end
1666
+
1667
+ # source://simplecov//lib/simplecov/result_merger.rb#89
1668
+ def time_since_result_creation(data); end
1669
+
1670
+ # source://simplecov//lib/simplecov/result_merger.rb#46
1671
+ def valid_results(file_path, ignore_timeout: T.unsafe(nil)); end
1672
+
1673
+ # @return [Boolean]
1674
+ #
1675
+ # source://simplecov//lib/simplecov/result_merger.rb#85
1676
+ def within_merge_timeout?(data); end
1677
+ end
1678
+ end
1679
+
1680
+ # Responsible for producing file coverage metrics.
1681
+ #
1682
+ # source://simplecov//lib/simplecov/simulate_coverage.rb#7
1683
+ module SimpleCov::SimulateCoverage
1684
+ private
1685
+
1686
+ # Simulate normal file coverage report on
1687
+ # ruby 2.5 and return similar hash with lines and branches keys
1688
+ #
1689
+ # Happens when a file wasn't required but still tracked.
1690
+ #
1691
+ # @return [Hash]
1692
+ #
1693
+ # source://simplecov//lib/simplecov/simulate_coverage.rb#18
1694
+ def call(absolute_path); end
1695
+
1696
+ class << self
1697
+ # Simulate normal file coverage report on
1698
+ # ruby 2.5 and return similar hash with lines and branches keys
1699
+ #
1700
+ # Happens when a file wasn't required but still tracked.
1701
+ #
1702
+ # @return [Hash]
1703
+ #
1704
+ # source://simplecov//lib/simplecov/simulate_coverage.rb#18
1705
+ def call(absolute_path); end
1706
+ end
1707
+ end
1708
+
1709
+ # Representation of a source file including it's coverage data, source code,
1710
+ # source lines and featuring helpers to interpret that data.
1711
+ #
1712
+ # source://simplecov//lib/simplecov/source_file/line.rb#4
1713
+ class SimpleCov::SourceFile
1714
+ # @return [SourceFile] a new instance of SourceFile
1715
+ #
1716
+ # source://simplecov//lib/simplecov/source_file.rb#14
1717
+ def initialize(filename, coverage_data); end
1718
+
1719
+ # Return all the branches inside current source file
1720
+ #
1721
+ # source://simplecov//lib/simplecov/source_file.rb#98
1722
+ def branches; end
1723
+
1724
+ # source://simplecov//lib/simplecov/source_file.rb#106
1725
+ def branches_coverage_percent; end
1726
+
1727
+ # source://simplecov//lib/simplecov/source_file.rb#142
1728
+ def branches_for_line(line_number); end
1729
+
1730
+ # Return hash with key of line number and branch coverage count as value
1731
+ #
1732
+ # source://simplecov//lib/simplecov/source_file.rb#118
1733
+ def branches_report; end
1734
+
1735
+ # The array of coverage data received from the Coverage.result
1736
+ #
1737
+ # source://simplecov//lib/simplecov/source_file.rb#12
1738
+ def coverage_data; end
1739
+
1740
+ # source://simplecov//lib/simplecov/source_file.rb#32
1741
+ def coverage_statistics; end
1742
+
1743
+ # Select the covered branches
1744
+ # Here we user tree schema because some conditions like case may have additional
1745
+ # else that is not in declared inside the code but given by default by coverage report
1746
+ #
1747
+ # @return [Array]
1748
+ #
1749
+ # source://simplecov//lib/simplecov/source_file.rb#129
1750
+ def covered_branches; end
1751
+
1752
+ # Returns all covered lines as SimpleCov::SourceFile::Line
1753
+ #
1754
+ # source://simplecov//lib/simplecov/source_file.rb#48
1755
+ def covered_lines; end
1756
+
1757
+ # The coverage for this file in percent. 0 if the file has no coverage lines
1758
+ #
1759
+ # source://simplecov//lib/simplecov/source_file.rb#80
1760
+ def covered_percent; end
1761
+
1762
+ # source://simplecov//lib/simplecov/source_file.rb#84
1763
+ def covered_strength; end
1764
+
1765
+ # The full path to this source file (e.g. /User/colszowka/projects/simplecov/lib/simplecov/source_file.rb)
1766
+ #
1767
+ # source://simplecov//lib/simplecov/source_file.rb#10
1768
+ def filename; end
1769
+
1770
+ # Access SimpleCov::SourceFile::Line source lines by line number
1771
+ #
1772
+ # source://simplecov//lib/simplecov/source_file.rb#75
1773
+ def line(number); end
1774
+
1775
+ # Check if any branches missing on given line number
1776
+ #
1777
+ # @param line_number [Integer]
1778
+ # @return [Boolean]
1779
+ #
1780
+ # source://simplecov//lib/simplecov/source_file.rb#153
1781
+ def line_with_missed_branch?(line_number); end
1782
+
1783
+ # Returns all source lines for this file as instances of SimpleCov::SourceFile::Line,
1784
+ # and thus including coverage data. Aliased as :source_lines
1785
+ #
1786
+ # source://simplecov//lib/simplecov/source_file.rb#42
1787
+ def lines; end
1788
+
1789
+ # Returns the number of relevant lines (covered + missed)
1790
+ #
1791
+ # source://simplecov//lib/simplecov/source_file.rb#70
1792
+ def lines_of_code; end
1793
+
1794
+ # Select the missed branches with coverage equal to zero
1795
+ #
1796
+ # @return [Array]
1797
+ #
1798
+ # source://simplecov//lib/simplecov/source_file.rb#138
1799
+ def missed_branches; end
1800
+
1801
+ # Returns all lines that should have been, but were not covered
1802
+ # as instances of SimpleCov::SourceFile::Line
1803
+ #
1804
+ # source://simplecov//lib/simplecov/source_file.rb#54
1805
+ def missed_lines; end
1806
+
1807
+ # Returns all lines that are not relevant for coverage as
1808
+ # SimpleCov::SourceFile::Line instances
1809
+ #
1810
+ # source://simplecov//lib/simplecov/source_file.rb#60
1811
+ def never_lines; end
1812
+
1813
+ # @return [Boolean]
1814
+ #
1815
+ # source://simplecov//lib/simplecov/source_file.rb#102
1816
+ def no_branches?; end
1817
+
1818
+ # @return [Boolean]
1819
+ #
1820
+ # source://simplecov//lib/simplecov/source_file.rb#88
1821
+ def no_lines?; end
1822
+
1823
+ # The path to this source file relative to the projects directory
1824
+ #
1825
+ # source://simplecov//lib/simplecov/source_file.rb#20
1826
+ def project_filename; end
1827
+
1828
+ # source://simplecov//lib/simplecov/source_file.rb#92
1829
+ def relevant_lines; end
1830
+
1831
+ # Returns all lines that were skipped as SimpleCov::SourceFile::Line instances
1832
+ #
1833
+ # source://simplecov//lib/simplecov/source_file.rb#65
1834
+ def skipped_lines; end
1835
+
1836
+ # The source code for this file. Aliased as :source
1837
+ #
1838
+ # source://simplecov//lib/simplecov/source_file.rb#25
1839
+ def source; end
1840
+
1841
+ # Returns all source lines for this file as instances of SimpleCov::SourceFile::Line,
1842
+ # and thus including coverage data. Aliased as :source_lines
1843
+ #
1844
+ # source://simplecov//lib/simplecov/source_file.rb#42
1845
+ def source_lines; end
1846
+
1847
+ # The source code for this file. Aliased as :source
1848
+ #
1849
+ # source://simplecov//lib/simplecov/source_file.rb#25
1850
+ def src; end
1851
+
1852
+ # Return the relevant branches to source file
1853
+ #
1854
+ # source://simplecov//lib/simplecov/source_file.rb#112
1855
+ def total_branches; end
1856
+
1857
+ private
1858
+
1859
+ # source://simplecov//lib/simplecov/source_file.rb#346
1860
+ def branch_coverage_statistics; end
1861
+
1862
+ # source://simplecov//lib/simplecov/source_file.rb#324
1863
+ def build_branch(branch_data, hit_count, condition_start_line); end
1864
+
1865
+ # Call recursive method that transform our static hash to array of objects
1866
+ #
1867
+ # @return [Array]
1868
+ #
1869
+ # source://simplecov//lib/simplecov/source_file.rb#273
1870
+ def build_branches; end
1871
+
1872
+ # source://simplecov//lib/simplecov/source_file.rb#310
1873
+ def build_branches_from(condition, branches); end
1874
+
1875
+ # Build full branches report
1876
+ # Root branches represent the wrapper of all condition state that
1877
+ # have inside the branches
1878
+ #
1879
+ # @return [Hash]
1880
+ #
1881
+ # source://simplecov//lib/simplecov/source_file.rb#262
1882
+ def build_branches_report; end
1883
+
1884
+ # source://simplecov//lib/simplecov/source_file.rb#229
1885
+ def build_lines; end
1886
+
1887
+ # source://simplecov//lib/simplecov/source_file.rb#164
1888
+ def build_no_cov_chunks; end
1889
+
1890
+ # Warning to identify condition from Issue #56
1891
+ #
1892
+ # source://simplecov//lib/simplecov/source_file.rb#251
1893
+ def coverage_exceeding_source_warn; end
1894
+
1895
+ # source://simplecov//lib/simplecov/source_file.rb#214
1896
+ def ensure_remove_undefs(file_lines); end
1897
+
1898
+ # source://simplecov//lib/simplecov/source_file.rb#336
1899
+ def line_coverage_statistics; end
1900
+
1901
+ # source://simplecov//lib/simplecov/source_file.rb#246
1902
+ def lines_strength; end
1903
+
1904
+ # source://simplecov//lib/simplecov/source_file.rb#178
1905
+ def load_source; end
1906
+
1907
+ # no_cov_chunks is zero indexed to work directly with the array holding the lines
1908
+ #
1909
+ # source://simplecov//lib/simplecov/source_file.rb#160
1910
+ def no_cov_chunks; end
1911
+
1912
+ # source://simplecov//lib/simplecov/source_file.rb#282
1913
+ def process_skipped_branches(branches); end
1914
+
1915
+ # source://simplecov//lib/simplecov/source_file.rb#237
1916
+ def process_skipped_lines(lines); end
1917
+
1918
+ # source://simplecov//lib/simplecov/source_file.rb#198
1919
+ def read_lines(file, lines, current_line); end
1920
+
1921
+ # Since we are dumping to and loading from JSON, and we have arrays as keys those
1922
+ # don't make their way back to us intact e.g. just as a string
1923
+ #
1924
+ # We should probably do something different here, but as it stands these are
1925
+ # our data structures that we write so eval isn't _too_ bad.
1926
+ #
1927
+ # See #801
1928
+ #
1929
+ # source://simplecov//lib/simplecov/source_file.rb#300
1930
+ def restore_ruby_data_structure(structure); end
1931
+
1932
+ # source://simplecov//lib/simplecov/source_file.rb#206
1933
+ def set_encoding_based_on_magic_comment(file, line); end
1934
+
1935
+ # @return [Boolean]
1936
+ #
1937
+ # source://simplecov//lib/simplecov/source_file.rb#194
1938
+ def shebang?(line); end
1939
+ end
1940
+
1941
+ # Representing single branch that has been detected in coverage report.
1942
+ # Give us support methods that handle needed calculations.
1943
+ #
1944
+ # source://simplecov//lib/simplecov/source_file/branch.rb#8
1945
+ class SimpleCov::SourceFile::Branch
1946
+ # @return [Branch] a new instance of Branch
1947
+ #
1948
+ # source://simplecov//lib/simplecov/source_file/branch.rb#12
1949
+ def initialize(start_line:, end_line:, coverage:, inline:, type:); end
1950
+
1951
+ # Returns the value of attribute coverage.
1952
+ #
1953
+ # source://simplecov//lib/simplecov/source_file/branch.rb#9
1954
+ def coverage; end
1955
+
1956
+ # Return true if there is relevant count defined > 0
1957
+ #
1958
+ # @return [Boolean]
1959
+ #
1960
+ # source://simplecov//lib/simplecov/source_file/branch.rb#31
1961
+ def covered?; end
1962
+
1963
+ # Returns the value of attribute end_line.
1964
+ #
1965
+ # source://simplecov//lib/simplecov/source_file/branch.rb#9
1966
+ def end_line; end
1967
+
1968
+ # @return [Boolean]
1969
+ #
1970
+ # source://simplecov//lib/simplecov/source_file/branch.rb#22
1971
+ def inline?; end
1972
+
1973
+ # Check if branche missed or not
1974
+ #
1975
+ # @return [Boolean]
1976
+ #
1977
+ # source://simplecov//lib/simplecov/source_file/branch.rb#40
1978
+ def missed?; end
1979
+
1980
+ # @return [Boolean]
1981
+ #
1982
+ # source://simplecov//lib/simplecov/source_file/branch.rb#70
1983
+ def overlaps_with?(line_range); end
1984
+
1985
+ # Return array with coverage count and badge
1986
+ #
1987
+ # @return [Array]
1988
+ #
1989
+ # source://simplecov//lib/simplecov/source_file/branch.rb#79
1990
+ def report; end
1991
+
1992
+ # The line on which we want to report the coverage
1993
+ #
1994
+ # Usually we choose the line above the start of the branch (so that it shows up
1995
+ # at if/else) because that
1996
+ # * highlights the condition
1997
+ # * makes it distinguishable if the first line of the branch is an inline branch
1998
+ # (see the nested_branches fixture)
1999
+ #
2000
+ # source://simplecov//lib/simplecov/source_file/branch.rb#52
2001
+ def report_line; end
2002
+
2003
+ # Flags the branch as skipped
2004
+ #
2005
+ # source://simplecov//lib/simplecov/source_file/branch.rb#61
2006
+ def skipped!; end
2007
+
2008
+ # Returns true if the branch was marked skipped by virtue of nocov comments.
2009
+ #
2010
+ # @return [Boolean]
2011
+ #
2012
+ # source://simplecov//lib/simplecov/source_file/branch.rb#66
2013
+ def skipped?; end
2014
+
2015
+ # Returns the value of attribute start_line.
2016
+ #
2017
+ # source://simplecov//lib/simplecov/source_file/branch.rb#9
2018
+ def start_line; end
2019
+
2020
+ # Returns the value of attribute type.
2021
+ #
2022
+ # source://simplecov//lib/simplecov/source_file/branch.rb#9
2023
+ def type; end
2024
+ end
2025
+
2026
+ # Representation of a single line in a source file including
2027
+ # this specific line's source code, line_number and code coverage,
2028
+ # with the coverage being either nil (coverage not applicable, e.g. comment
2029
+ # line), 0 (line not covered) or >1 (the amount of times the line was
2030
+ # executed)
2031
+ #
2032
+ # source://simplecov//lib/simplecov/source_file/line.rb#10
2033
+ class SimpleCov::SourceFile::Line
2034
+ # @raise [ArgumentError]
2035
+ # @return [Line] a new instance of Line
2036
+ #
2037
+ # source://simplecov//lib/simplecov/source_file/line.rb#25
2038
+ def initialize(src, line_number, coverage); end
2039
+
2040
+ # The coverage data for this line: either nil (never), 0 (missed) or >=1 (times covered)
2041
+ #
2042
+ # source://simplecov//lib/simplecov/source_file/line.rb#16
2043
+ def coverage; end
2044
+
2045
+ # Returns true if this is a line that has been covered
2046
+ #
2047
+ # @return [Boolean]
2048
+ #
2049
+ # source://simplecov//lib/simplecov/source_file/line.rb#42
2050
+ def covered?; end
2051
+
2052
+ # The line number in the source file. Aliased as :line, :number
2053
+ #
2054
+ # source://simplecov//lib/simplecov/source_file/line.rb#14
2055
+ def line; end
2056
+
2057
+ # The line number in the source file. Aliased as :line, :number
2058
+ #
2059
+ # source://simplecov//lib/simplecov/source_file/line.rb#14
2060
+ def line_number; end
2061
+
2062
+ # Returns true if this is a line that should have been covered, but was not
2063
+ #
2064
+ # @return [Boolean]
2065
+ #
2066
+ # source://simplecov//lib/simplecov/source_file/line.rb#37
2067
+ def missed?; end
2068
+
2069
+ # Returns true if this line is not relevant for coverage
2070
+ #
2071
+ # @return [Boolean]
2072
+ #
2073
+ # source://simplecov//lib/simplecov/source_file/line.rb#47
2074
+ def never?; end
2075
+
2076
+ # The line number in the source file. Aliased as :line, :number
2077
+ #
2078
+ # source://simplecov//lib/simplecov/source_file/line.rb#14
2079
+ def number; end
2080
+
2081
+ # Whether this line was skipped
2082
+ #
2083
+ # source://simplecov//lib/simplecov/source_file/line.rb#18
2084
+ def skipped; end
2085
+
2086
+ # Flags this line as skipped
2087
+ #
2088
+ # source://simplecov//lib/simplecov/source_file/line.rb#52
2089
+ def skipped!; end
2090
+
2091
+ # Returns true if this line was skipped, false otherwise. Lines are skipped if they are wrapped with
2092
+ # # :nocov: comment lines.
2093
+ #
2094
+ # @return [Boolean]
2095
+ #
2096
+ # source://simplecov//lib/simplecov/source_file/line.rb#58
2097
+ def skipped?; end
2098
+
2099
+ # The source code for this line. Aliased as :source
2100
+ # Lets grab some fancy aliases, shall we?
2101
+ #
2102
+ # source://simplecov//lib/simplecov/source_file/line.rb#12
2103
+ def source; end
2104
+
2105
+ # The source code for this line. Aliased as :source
2106
+ #
2107
+ # source://simplecov//lib/simplecov/source_file/line.rb#12
2108
+ def src; end
2109
+
2110
+ # The status of this line - either covered, missed, skipped or never. Useful i.e. for direct use
2111
+ # as a css class in report generation
2112
+ #
2113
+ # source://simplecov//lib/simplecov/source_file/line.rb#64
2114
+ def status; end
2115
+ end
2116
+
2117
+ # source://simplecov//lib/simplecov/source_file.rb#205
2118
+ SimpleCov::SourceFile::RUBY_FILE_ENCODING_MAGIC_COMMENT_REGEX = T.let(T.unsafe(nil), Regexp)
2119
+
2120
+ # source://simplecov//lib/simplecov/source_file.rb#193
2121
+ SimpleCov::SourceFile::SHEBANG_REGEX = T.let(T.unsafe(nil), Regexp)
2122
+
2123
+ # source://simplecov//lib/simplecov/filter.rb#55
2124
+ class SimpleCov::StringFilter < ::SimpleCov::Filter
2125
+ # Returns true when the given source file's filename matches the
2126
+ # string configured when initializing this Filter with StringFilter.new('somestring')
2127
+ #
2128
+ # @return [Boolean]
2129
+ #
2130
+ # source://simplecov//lib/simplecov/filter.rb#56
2131
+ def matches?(source_file); end
2132
+ end
2133
+
2134
+ # Select the files that related to working scope directory of SimpleCov
2135
+ #
2136
+ # source://simplecov//lib/simplecov/useless_results_remover.rb#7
2137
+ module SimpleCov::UselessResultsRemover
2138
+ class << self
2139
+ # source://simplecov//lib/simplecov/useless_results_remover.rb#8
2140
+ def call(coverage_result); end
2141
+
2142
+ # source://simplecov//lib/simplecov/useless_results_remover.rb#14
2143
+ def root_regx; end
2144
+ end
2145
+ end
2146
+
2147
+ # source://simplecov//lib/simplecov/version.rb#4
2148
+ SimpleCov::VERSION = T.let(T.unsafe(nil), String)