sorbet-struct-comparable 1.1.0 → 1.2.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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +47 -52
  3. data/.gitignore +3 -0
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +3 -8
  6. data/lib/sorbet-struct-comparable/version.rb +1 -1
  7. data/lib/t/struct/acts_as_comparable.rb +5 -0
  8. data/nix/sources.json +14 -0
  9. data/nix/sources.nix +174 -0
  10. data/run_ci.sh +6 -0
  11. data/shell.nix +20 -0
  12. data/sorbet/config +2 -0
  13. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  14. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
  15. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  16. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
  17. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  18. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  19. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1188 -0
  20. data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +461 -0
  21. data/sorbet/rbi/gems/{pry.rbi → pry@0.13.1.rbi} +2308 -1706
  22. data/sorbet/rbi/{sorbet-typed/lib/rake/all/rake.rbi → gems/rake@13.0.6.rbi} +580 -430
  23. data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
  24. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2303 -1735
  25. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1133 -707
  26. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -937
  27. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  28. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  29. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  30. data/sorbet/rbi/gems/{simplecov.rbi → simplecov@0.21.2.rbi} +451 -293
  31. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  32. data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
  33. data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
  34. data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
  35. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  36. metadata +34 -29
  37. data/.ruby-version +0 -1
  38. data/sorbet/rbi/gems/byebug.rbi +0 -1041
  39. data/sorbet/rbi/gems/coderay.rbi +0 -92
  40. data/sorbet/rbi/gems/docile.rbi +0 -36
  41. data/sorbet/rbi/gems/listen.rbi +0 -301
  42. data/sorbet/rbi/gems/method_source.rbi +0 -64
  43. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  44. data/sorbet/rbi/gems/rake.rbi +0 -642
  45. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  46. data/sorbet/rbi/gems/rspec.rbi +0 -15
  47. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  48. data/sorbet/rbi/gems/simplecov_json_formatter.rbi +0 -45
  49. data/sorbet/rbi/hidden-definitions/errors.txt +0 -2742
  50. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -6540
  51. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
  52. data/sorbet/rbi/todo.rbi +0 -6
@@ -1,257 +1,296 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `simplecov` gem.
3
+ # Please instead update this file by running `bin/tapioca gem simplecov`.
3
4
 
4
5
  # typed: true
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/simplecov/all/simplecov.rbi
9
- #
10
- # simplecov-0.21.2
11
6
 
12
7
  module SimpleCov
13
- def self.adapt_coverage_result; end
14
- def self.add_not_loaded_files(result); end
15
- def self.at_exit_behavior; end
16
- def self.clear_result; end
17
- def self.collate(result_filenames, profile = nil, ignore_timeout: nil, &block); end
18
- def self.exit_and_report_previous_error(exit_status); end
19
- def self.exit_status_from_exception; end
20
- def self.external_at_exit; end
21
- def self.external_at_exit=(arg0); end
22
- def self.external_at_exit?; end
23
- def self.filtered(files); end
24
- def self.final_result_process?; end
25
- def self.grouped(files); end
26
- def self.initial_setup(profile, &block); end
27
- def self.load_adapter(name); end
28
- def self.load_profile(name); end
29
- def self.lookup_corresponding_ruby_coverage_name(criterion); end
30
- def self.make_parallel_tests_available; end
31
- def self.pid; end
32
- def self.pid=(arg0); end
33
- def self.previous_error?(error_exit_status); end
34
- def self.probably_running_parallel_tests?; end
35
- def self.process_coverage_result; end
36
- def self.process_result(result); end
37
- def self.process_results_and_report_error; end
38
- def self.ready_to_process_results?; end
39
- def self.remove_useless_results; end
40
- def self.result; end
41
- def self.result?; end
42
- def self.result_exit_status(result); end
43
- def self.result_with_not_loaded_files; end
44
- def self.round_coverage(coverage); end
45
- def self.run_exit_tasks!; end
46
- def self.running; end
47
- def self.running=(arg0); end
48
- def self.start(profile = nil, &block); end
49
- def self.start_coverage_measurement; end
50
- def self.start_coverage_with_criteria; end
51
- def self.wait_for_other_processes; end
52
- def self.write_last_run(result); end
53
- extend SimpleCov::Configuration
8
+ extend ::SimpleCov::Configuration
9
+
10
+ class << self
11
+ def at_exit_behavior; end
12
+ def clear_result; end
13
+ def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
14
+ def exit_and_report_previous_error(exit_status); end
15
+ def exit_status_from_exception; end
16
+ def external_at_exit; end
17
+ def external_at_exit=(_arg0); end
18
+ def external_at_exit?; end
19
+ def filtered(files); end
20
+ def final_result_process?; end
21
+ def grouped(files); end
22
+ def load_adapter(name); end
23
+ def load_profile(name); end
24
+ def pid; end
25
+ def pid=(_arg0); end
26
+ def previous_error?(error_exit_status); end
27
+ def process_result(result); end
28
+ def process_results_and_report_error; end
29
+ def ready_to_process_results?; end
30
+ def result; end
31
+ def result?; end
32
+ def result_exit_status(result); end
33
+ def round_coverage(coverage); end
34
+ def run_exit_tasks!; end
35
+ def running; end
36
+ def running=(_arg0); end
37
+ def start(profile = T.unsafe(nil), &block); end
38
+ def wait_for_other_processes; end
39
+ def write_last_run(result); end
40
+
41
+ private
42
+
43
+ def adapt_coverage_result; end
44
+ def add_not_loaded_files(result); end
45
+ def initial_setup(profile, &block); end
46
+ def lookup_corresponding_ruby_coverage_name(criterion); end
47
+ def make_parallel_tests_available; end
48
+ def probably_running_parallel_tests?; end
49
+ def process_coverage_result; end
50
+ def remove_useless_results; end
51
+ def result_with_not_loaded_files; end
52
+ def start_coverage_measurement; end
53
+ def start_coverage_with_criteria; end
54
+ end
54
55
  end
55
- module SimpleCov::Formatter
56
- def self.from_env(env); end
56
+
57
+ class SimpleCov::ArrayFilter < ::SimpleCov::Filter
58
+ def initialize(filter_argument); end
59
+
60
+ def matches?(source_files_list); end
57
61
  end
58
- class SimpleCov::Formatter::MultiFormatter
59
- def self.[](*args); end
60
- def self.new(formatters = nil); end
62
+
63
+ class SimpleCov::BlockFilter < ::SimpleCov::Filter
64
+ def matches?(source_file); end
61
65
  end
62
- module SimpleCov::Formatter::MultiFormatter::InstanceMethods
63
- def format(result); end
66
+
67
+ module SimpleCov::Combine
68
+ private
69
+
70
+ def combine(combiner_module, coverage_a, coverage_b); end
71
+ def empty_coverage?(coverage_a, coverage_b); end
72
+ def existing_coverage(coverage_a, coverage_b); end
73
+
74
+ class << self
75
+ def combine(combiner_module, coverage_a, coverage_b); end
76
+ def empty_coverage?(coverage_a, coverage_b); end
77
+ def existing_coverage(coverage_a, coverage_b); end
78
+ end
79
+ end
80
+
81
+ module SimpleCov::Combine::BranchesCombiner
82
+ private
83
+
84
+ def combine(coverage_a, coverage_b); end
85
+
86
+ class << self
87
+ def combine(coverage_a, coverage_b); end
88
+ end
64
89
  end
90
+
91
+ module SimpleCov::Combine::FilesCombiner
92
+ private
93
+
94
+ def combine(coverage_a, coverage_b); end
95
+
96
+ class << self
97
+ def combine(coverage_a, coverage_b); end
98
+ end
99
+ end
100
+
101
+ module SimpleCov::Combine::LinesCombiner
102
+ private
103
+
104
+ def combine(coverage_a, coverage_b); end
105
+ def merge_line_coverage(first_val, second_val); end
106
+
107
+ class << self
108
+ def combine(coverage_a, coverage_b); end
109
+ def merge_line_coverage(first_val, second_val); end
110
+ end
111
+ end
112
+
113
+ module SimpleCov::Combine::ResultsCombiner
114
+ private
115
+
116
+ def combine(*results); end
117
+ def combine_file_coverage(coverage_a, coverage_b); end
118
+ def combine_result_sets(combined_results, result); end
119
+
120
+ class << self
121
+ def combine(*results); end
122
+ def combine_file_coverage(coverage_a, coverage_b); end
123
+ def combine_result_sets(combined_results, result); end
124
+ end
125
+ end
126
+
127
+ module SimpleCov::CommandGuesser
128
+ class << self
129
+ def guess; end
130
+ def original_run_command; end
131
+ def original_run_command=(_arg0); end
132
+
133
+ private
134
+
135
+ def from_command_line_options; end
136
+ def from_defined_constants; end
137
+ def from_env; end
138
+ end
139
+ end
140
+
65
141
  module SimpleCov::Configuration
66
142
  def adapters; end
67
- def add_filter(filter_argument = nil, &filter_proc); end
68
- def add_group(group_name, filter_argument = nil, &filter_proc); end
143
+ def add_filter(filter_argument = T.unsafe(nil), &filter_proc); end
144
+ def add_group(group_name, filter_argument = T.unsafe(nil), &filter_proc); end
69
145
  def at_exit(&block); end
70
146
  def at_fork(&block); end
71
147
  def branch_coverage?; end
72
148
  def branch_coverage_supported?; end
73
149
  def clear_coverage_criteria; end
74
- def command_name(name = nil); end
150
+ def command_name(name = T.unsafe(nil)); end
75
151
  def configure(&block); end
76
152
  def coverage_criteria; end
77
- def coverage_criterion(criterion = nil); end
153
+ def coverage_criterion(criterion = T.unsafe(nil)); end
78
154
  def coverage_criterion_enabled?(criterion); end
79
- def coverage_dir(dir = nil); end
155
+ def coverage_dir(dir = T.unsafe(nil)); end
80
156
  def coverage_path; end
81
157
  def coverage_start_arguments_supported?; end
82
158
  def enable_coverage(criterion); end
83
- def enable_for_subprocesses(value = nil); end
159
+ def enable_for_subprocesses(value = T.unsafe(nil)); end
84
160
  def enabled_for_subprocesses?; end
85
161
  def filters; end
86
- def filters=(arg0); end
87
- def formatter(formatter = nil); end
88
- def formatter=(arg0); end
162
+ def filters=(_arg0); end
163
+ def formatter(formatter = T.unsafe(nil)); end
164
+ def formatter=(_arg0); end
89
165
  def formatters; end
90
166
  def formatters=(formatters); end
91
167
  def groups; end
92
- def groups=(arg0); end
93
- def maximum_coverage_drop(coverage_drop = nil); end
94
- def merge_timeout(seconds = nil); end
95
- def minimum_coverage(coverage = nil); end
96
- def minimum_coverage_by_file(coverage = nil); end
97
- def minimum_possible_coverage_exceeded(coverage_option); end
98
- def nocov_token(nocov_token = nil); end
99
- def parse_filter(filter_argument = nil, &filter_proc); end
100
- def primary_coverage(criterion = nil); end
168
+ def groups=(_arg0); end
169
+ def maximum_coverage_drop(coverage_drop = T.unsafe(nil)); end
170
+ def merge_timeout(seconds = T.unsafe(nil)); end
171
+ def minimum_coverage(coverage = T.unsafe(nil)); end
172
+ def minimum_coverage_by_file(coverage = T.unsafe(nil)); end
173
+ def nocov_token(nocov_token = T.unsafe(nil)); end
174
+ def primary_coverage(criterion = T.unsafe(nil)); end
101
175
  def print_error_status; end
102
- def print_error_status=(arg0); end
176
+ def print_error_status=(_arg0); end
103
177
  def profiles; end
104
- def project_name(new_name = nil); end
105
- def raise_if_criterion_disabled(criterion); end
106
- def raise_if_criterion_unsupported(criterion); end
178
+ def project_name(new_name = T.unsafe(nil)); end
107
179
  def raise_on_invalid_coverage(coverage, coverage_setting); end
108
180
  def refuse_coverage_drop(*criteria); end
109
- def root(root = nil); end
110
- def skip_token(nocov_token = nil); end
181
+ def root(root = T.unsafe(nil)); end
182
+ def skip_token(nocov_token = T.unsafe(nil)); end
111
183
  def track_files(glob); end
112
184
  def tracked_files; end
113
- def use_merging(use = nil); end
185
+ def use_merging(use = T.unsafe(nil)); end
186
+
187
+ private
188
+
189
+ def minimum_possible_coverage_exceeded(coverage_option); end
190
+ def parse_filter(filter_argument = T.unsafe(nil), &filter_proc); end
191
+ def raise_if_criterion_disabled(criterion); end
192
+ def raise_if_criterion_unsupported(criterion); end
114
193
  end
194
+
195
+ SimpleCov::Configuration::DEFAULT_COVERAGE_CRITERION = T.let(T.unsafe(nil), Symbol)
196
+ SimpleCov::Configuration::SUPPORTED_COVERAGE_CRITERIA = T.let(T.unsafe(nil), Array)
197
+
115
198
  class SimpleCov::CoverageStatistics
116
- def compute_percent(covered, missed, total); end
117
- def compute_strength(total_strength, total); end
199
+ def initialize(covered:, missed:, total_strength: T.unsafe(nil)); end
200
+
118
201
  def covered; end
119
- def initialize(covered:, missed:, total_strength: nil); end
120
202
  def missed; end
121
203
  def percent; end
122
- def self.from(coverage_statistics); end
123
204
  def strength; end
124
205
  def total; end
206
+
207
+ private
208
+
209
+ def compute_percent(covered, missed, total); end
210
+ def compute_strength(total_strength, total); end
211
+
212
+ class << self
213
+ def from(coverage_statistics); end
214
+ end
125
215
  end
126
- module SimpleCov::ExitCodes
127
- end
216
+
217
+ module SimpleCov::ExitCodes; end
218
+ SimpleCov::ExitCodes::EXCEPTION = T.let(T.unsafe(nil), Integer)
219
+
128
220
  module SimpleCov::ExitCodes::ExitCodeHandling
221
+ private
222
+
129
223
  def call(result, coverage_limits:); end
130
224
  def coverage_checks(result, coverage_limits); end
131
- def self.call(result, coverage_limits:); end
132
- def self.coverage_checks(result, coverage_limits); end
225
+
226
+ class << self
227
+ def call(result, coverage_limits:); end
228
+ def coverage_checks(result, coverage_limits); end
229
+ end
133
230
  end
231
+
232
+ SimpleCov::ExitCodes::MAXIMUM_COVERAGE_DROP = T.let(T.unsafe(nil), Integer)
233
+ SimpleCov::ExitCodes::MINIMUM_COVERAGE = T.let(T.unsafe(nil), Integer)
234
+
134
235
  class SimpleCov::ExitCodes::MaximumCoverageDropCheck
236
+ def initialize(result, maximum_coverage_drop); end
237
+
238
+ def exit_code; end
239
+ def failing?; end
240
+ def report; end
241
+
242
+ private
243
+
135
244
  def compute_coverage_drop_data; end
136
245
  def coverage_drop_violations; end
137
246
  def drop_percent(criterion); end
138
- def exit_code; end
139
- def failing?; end
140
- def initialize(result, maximum_coverage_drop); end
141
247
  def last_coverage(criterion); end
142
248
  def last_run; end
143
249
  def maximum_coverage_drop; end
144
- def report; end
145
250
  def result; end
146
251
  end
252
+
253
+ SimpleCov::ExitCodes::MaximumCoverageDropCheck::MAX_DROP_ACCURACY = T.let(T.unsafe(nil), Integer)
254
+
147
255
  class SimpleCov::ExitCodes::MinimumCoverageByFileCheck
148
- def compute_minimum_coverage_data; end
256
+ def initialize(result, minimum_coverage_by_file); end
257
+
149
258
  def exit_code; end
150
259
  def failing?; end
151
- def initialize(result, minimum_coverage_by_file); end
260
+ def report; end
261
+
262
+ private
263
+
264
+ def compute_minimum_coverage_data; end
152
265
  def minimum_coverage_by_file; end
153
266
  def minimum_violations; end
154
- def report; end
155
267
  def result; end
156
268
  end
269
+
157
270
  class SimpleCov::ExitCodes::MinimumOverallCoverageCheck
158
- def calculate_minimum_violations; end
271
+ def initialize(result, minimum_coverage); end
272
+
159
273
  def exit_code; end
160
274
  def failing?; end
161
- def initialize(result, minimum_coverage); end
275
+ def report; end
276
+
277
+ private
278
+
279
+ def calculate_minimum_violations; end
162
280
  def minimum_coverage; end
163
281
  def minimum_violations; end
164
- def report; end
165
282
  def result; end
166
283
  end
167
- class SimpleCov::Profiles < Hash
168
- def define(name, &blk); end
169
- def load(name); end
170
- end
171
- class SimpleCov::SourceFile
172
- def branch_coverage_statistics; end
173
- def branches; end
174
- def branches_coverage_percent; end
175
- def branches_for_line(line_number); end
176
- def branches_report; end
177
- def build_branch(branch_data, hit_count, condition_start_line); end
178
- def build_branches; end
179
- def build_branches_from(condition, branches); end
180
- def build_branches_report; end
181
- def build_lines; end
182
- def build_no_cov_chunks; end
183
- def coverage_data; end
184
- def coverage_exceeding_source_warn; end
185
- def coverage_statistics; end
186
- def covered_branches; end
187
- def covered_lines; end
188
- def covered_percent; end
189
- def covered_strength; end
190
- def ensure_remove_undefs(file_lines); end
191
- def filename; end
192
- def initialize(filename, coverage_data); end
193
- def line(number); end
194
- def line_coverage_statistics; end
195
- def line_with_missed_branch?(line_number); end
196
- def lines; end
197
- def lines_of_code; end
198
- def lines_strength; end
199
- def load_source; end
200
- def missed_branches; end
201
- def missed_lines; end
202
- def never_lines; end
203
- def no_branches?; end
204
- def no_cov_chunks; end
205
- def no_lines?; end
206
- def process_skipped_branches(branches); end
207
- def process_skipped_lines(lines); end
208
- def project_filename; end
209
- def read_lines(file, lines, current_line); end
210
- def relevant_lines; end
211
- def restore_ruby_data_structure(structure); end
212
- def set_encoding_based_on_magic_comment(file, line); end
213
- def shebang?(line); end
214
- def skipped_lines; end
215
- def source; end
216
- def source_lines; end
217
- def src; end
218
- def total_branches; end
219
- end
220
- class SimpleCov::SourceFile::Line
221
- def coverage; end
222
- def covered?; end
223
- def initialize(src, line_number, coverage); end
224
- def line; end
225
- def line_number; end
226
- def missed?; end
227
- def never?; end
228
- def number; end
229
- def skipped!; end
230
- def skipped; end
231
- def skipped?; end
232
- def source; end
233
- def src; end
234
- def status; end
235
- end
236
- class SimpleCov::SourceFile::Branch
237
- def coverage; end
238
- def covered?; end
239
- def end_line; end
240
- def initialize(start_line:, end_line:, coverage:, inline:, type:); end
241
- def inline?; end
242
- def missed?; end
243
- def overlaps_with?(line_range); end
244
- def report; end
245
- def report_line; end
246
- def skipped!; end
247
- def skipped?; end
248
- def start_line; end
249
- def type; end
250
- end
284
+
285
+ SimpleCov::ExitCodes::SUCCESS = T.let(T.unsafe(nil), Integer)
286
+
251
287
  class SimpleCov::FileList
288
+ include ::Enumerable
289
+ extend ::Forwardable
290
+
291
+ def initialize(files); end
292
+
252
293
  def branch_covered_percent; end
253
- def compute_coverage_statistics; end
254
- def compute_coverage_statistics_by_file; end
255
294
  def count(*args, &block); end
256
295
  def coverage_statistics; end
257
296
  def coverage_statistics_by_file; end
@@ -262,7 +301,6 @@ class SimpleCov::FileList
262
301
  def covered_strength; end
263
302
  def each(*args, &block); end
264
303
  def empty?(*args, &block); end
265
- def initialize(files); end
266
304
  def least_covered_file; end
267
305
  def length(*args, &block); end
268
306
  def lines_of_code; end
@@ -275,13 +313,86 @@ class SimpleCov::FileList
275
313
  def to_a(*args, &block); end
276
314
  def to_ary(*args, &block); end
277
315
  def total_branches; end
278
- extend Forwardable
279
- include Enumerable
316
+
317
+ private
318
+
319
+ def compute_coverage_statistics; end
320
+ def compute_coverage_statistics_by_file; end
321
+ end
322
+
323
+ class SimpleCov::Filter
324
+ def initialize(filter_argument); end
325
+
326
+ def filter_argument; end
327
+ def matches?(_source_file); end
328
+ def passes?(source_file); end
329
+
330
+ class << self
331
+ def build_filter(filter_argument); end
332
+ def class_for_argument(filter_argument); end
333
+ end
280
334
  end
335
+
336
+ module SimpleCov::Formatter
337
+ class << self
338
+ def from_env(env); end
339
+ end
340
+ end
341
+
342
+ class SimpleCov::Formatter::MultiFormatter
343
+ class << self
344
+ def [](*args); end
345
+ def new(formatters = T.unsafe(nil)); end
346
+ end
347
+ end
348
+
349
+ module SimpleCov::Formatter::MultiFormatter::InstanceMethods
350
+ def format(result); end
351
+ end
352
+
353
+ class SimpleCov::Formatter::SimpleFormatter
354
+ def format(result); end
355
+ end
356
+
357
+ module SimpleCov::LastRun
358
+ class << self
359
+ def last_run_path; end
360
+ def read; end
361
+ def write(json); end
362
+ end
363
+ end
364
+
365
+ class SimpleCov::LinesClassifier
366
+ def classify(lines); end
367
+
368
+ class << self
369
+ def no_cov_line; end
370
+ def no_cov_line?(line); end
371
+ def whitespace_line?(line); end
372
+ end
373
+ end
374
+
375
+ SimpleCov::LinesClassifier::COMMENT_LINE = T.let(T.unsafe(nil), Regexp)
376
+ SimpleCov::LinesClassifier::RELEVANT = T.let(T.unsafe(nil), Integer)
377
+ SimpleCov::LinesClassifier::WHITESPACE_LINE = T.let(T.unsafe(nil), Regexp)
378
+ SimpleCov::LinesClassifier::WHITESPACE_OR_COMMENT_LINE = T.let(T.unsafe(nil), Regexp)
379
+
380
+ class SimpleCov::Profiles < ::Hash
381
+ def define(name, &blk); end
382
+ def load(name); end
383
+ end
384
+
385
+ class SimpleCov::RegexFilter < ::SimpleCov::Filter
386
+ def matches?(source_file); end
387
+ end
388
+
281
389
  class SimpleCov::Result
390
+ extend ::Forwardable
391
+
392
+ def initialize(original_result, command_name: T.unsafe(nil), created_at: T.unsafe(nil)); end
393
+
282
394
  def command_name; end
283
- def command_name=(arg0); end
284
- def coverage; end
395
+ def command_name=(_arg0); end
285
396
  def coverage_statistics(*args, &block); end
286
397
  def coverage_statistics_by_file(*args, &block); end
287
398
  def covered_branches(*args, &block); end
@@ -290,130 +401,177 @@ class SimpleCov::Result
290
401
  def covered_percentages(*args, &block); end
291
402
  def covered_strength(*args, &block); end
292
403
  def created_at; end
293
- def created_at=(arg0); end
404
+ def created_at=(_arg0); end
294
405
  def filenames; end
295
406
  def files; end
296
- def filter!; end
297
407
  def format!; end
298
408
  def groups; end
299
- def initialize(original_result, command_name: nil, created_at: nil); end
300
409
  def least_covered_file(*args, &block); end
301
410
  def missed_branches(*args, &block); end
302
411
  def missed_lines(*args, &block); end
303
412
  def original_result; end
304
- def self.from_hash(hash); end
305
413
  def source_files; end
306
414
  def to_hash; end
307
415
  def total_branches(*args, &block); end
308
416
  def total_lines(*args, &block); end
309
- extend Forwardable
310
- end
311
- class SimpleCov::Filter
312
- def filter_argument; end
313
- def initialize(filter_argument); end
314
- def matches?(_source_file); end
315
- def passes?(source_file); end
316
- def self.build_filter(filter_argument); end
317
- def self.class_for_argument(filter_argument); end
318
- end
319
- class SimpleCov::StringFilter < SimpleCov::Filter
320
- def matches?(source_file); end
321
- end
322
- class SimpleCov::RegexFilter < SimpleCov::Filter
323
- def matches?(source_file); end
324
- end
325
- class SimpleCov::BlockFilter < SimpleCov::Filter
326
- def matches?(source_file); end
327
- end
328
- class SimpleCov::ArrayFilter < SimpleCov::Filter
329
- def initialize(filter_argument); end
330
- def matches?(source_files_list); end
331
- end
332
- class SimpleCov::Formatter::SimpleFormatter
333
- def format(result); end
334
- end
335
- module SimpleCov::LastRun
336
- def self.last_run_path; end
337
- def self.read; end
338
- def self.write(json); end
339
- end
340
- class SimpleCov::LinesClassifier
341
- def classify(lines); end
342
- def self.no_cov_line; end
343
- def self.no_cov_line?(line); end
344
- def self.whitespace_line?(line); end
345
- end
346
- module SimpleCov::ResultMerger
347
- def self.adapt_pre_simplecov_0_18_result(result); end
348
- def self.adapt_result(result); end
349
- def self.create_result(command_names, coverage); end
350
- def self.merge_and_store(*file_paths, ignore_timeout: nil); end
351
- def self.merge_coverage(*results); end
352
- def self.merge_results(*file_paths, ignore_timeout: nil); end
353
- def self.merge_valid_results(results, ignore_timeout: nil); end
354
- def self.merged_result; end
355
- def self.parse_file(path); end
356
- def self.parse_json(content); end
357
- def self.pre_simplecov_0_18_result?(result); end
358
- def self.read_file(path); end
359
- def self.read_resultset; end
360
- def self.resultset_path; end
361
- def self.resultset_writelock; end
362
- def self.store_result(result); end
363
- def self.synchronize_resultset; end
364
- def self.time_since_result_creation(data); end
365
- def self.valid_results(file_path, ignore_timeout: nil); end
366
- def self.within_merge_timeout?(data); end
367
- end
368
- module SimpleCov::CommandGuesser
369
- def self.from_command_line_options; end
370
- def self.from_defined_constants; end
371
- def self.from_env; end
372
- def self.guess; end
373
- def self.original_run_command; end
374
- def self.original_run_command=(arg0); end
417
+
418
+ private
419
+
420
+ def coverage; end
421
+ def filter!; end
422
+
423
+ class << self
424
+ def from_hash(hash); end
425
+ end
375
426
  end
427
+
376
428
  class SimpleCov::ResultAdapter
377
- def adapt; end
378
429
  def initialize(result); end
430
+
431
+ def adapt; end
379
432
  def result; end
380
- def self.call(*args); end
433
+
434
+ class << self
435
+ def call(*args); end
436
+ end
381
437
  end
382
- module SimpleCov::Combine
383
- def combine(combiner_module, coverage_a, coverage_b); end
384
- def empty_coverage?(coverage_a, coverage_b); end
385
- def existing_coverage(coverage_a, coverage_b); end
386
- def self.combine(combiner_module, coverage_a, coverage_b); end
387
- def self.empty_coverage?(coverage_a, coverage_b); end
388
- def self.existing_coverage(coverage_a, coverage_b); end
438
+
439
+ module SimpleCov::ResultMerger
440
+ class << self
441
+ def adapt_pre_simplecov_0_18_result(result); end
442
+ def adapt_result(result); end
443
+ def create_result(command_names, coverage); end
444
+ def merge_and_store(*file_paths, ignore_timeout: T.unsafe(nil)); end
445
+ def merge_coverage(*results); end
446
+ def merge_results(*file_paths, ignore_timeout: T.unsafe(nil)); end
447
+ def merge_valid_results(results, ignore_timeout: T.unsafe(nil)); end
448
+ def merged_result; end
449
+ def parse_file(path); end
450
+ def parse_json(content); end
451
+ def pre_simplecov_0_18_result?(result); end
452
+ def read_file(path); end
453
+ def read_resultset; end
454
+ def resultset_path; end
455
+ def resultset_writelock; end
456
+ def store_result(result); end
457
+ def synchronize_resultset; end
458
+ def time_since_result_creation(data); end
459
+ def valid_results(file_path, ignore_timeout: T.unsafe(nil)); end
460
+ def within_merge_timeout?(data); end
461
+ end
389
462
  end
390
- module SimpleCov::Combine::BranchesCombiner
391
- def combine(coverage_a, coverage_b); end
392
- def self.combine(coverage_a, coverage_b); end
463
+
464
+ module SimpleCov::SimulateCoverage
465
+ private
466
+
467
+ def call(absolute_path); end
468
+
469
+ class << self
470
+ def call(absolute_path); end
471
+ end
393
472
  end
394
- module SimpleCov::Combine::FilesCombiner
395
- def combine(coverage_a, coverage_b); end
396
- def self.combine(coverage_a, coverage_b); end
473
+
474
+ class SimpleCov::SourceFile
475
+ def initialize(filename, coverage_data); end
476
+
477
+ def branches; end
478
+ def branches_coverage_percent; end
479
+ def branches_for_line(line_number); end
480
+ def branches_report; end
481
+ def coverage_data; end
482
+ def coverage_statistics; end
483
+ def covered_branches; end
484
+ def covered_lines; end
485
+ def covered_percent; end
486
+ def covered_strength; end
487
+ def filename; end
488
+ def line(number); end
489
+ def line_with_missed_branch?(line_number); end
490
+ def lines; end
491
+ def lines_of_code; end
492
+ def missed_branches; end
493
+ def missed_lines; end
494
+ def never_lines; end
495
+ def no_branches?; end
496
+ def no_lines?; end
497
+ def project_filename; end
498
+ def relevant_lines; end
499
+ def skipped_lines; end
500
+ def source; end
501
+ def source_lines; end
502
+ def src; end
503
+ def total_branches; end
504
+
505
+ private
506
+
507
+ def branch_coverage_statistics; end
508
+ def build_branch(branch_data, hit_count, condition_start_line); end
509
+ def build_branches; end
510
+ def build_branches_from(condition, branches); end
511
+ def build_branches_report; end
512
+ def build_lines; end
513
+ def build_no_cov_chunks; end
514
+ def coverage_exceeding_source_warn; end
515
+ def ensure_remove_undefs(file_lines); end
516
+ def line_coverage_statistics; end
517
+ def lines_strength; end
518
+ def load_source; end
519
+ def no_cov_chunks; end
520
+ def process_skipped_branches(branches); end
521
+ def process_skipped_lines(lines); end
522
+ def read_lines(file, lines, current_line); end
523
+ def restore_ruby_data_structure(structure); end
524
+ def set_encoding_based_on_magic_comment(file, line); end
525
+ def shebang?(line); end
397
526
  end
398
- module SimpleCov::Combine::LinesCombiner
399
- def combine(coverage_a, coverage_b); end
400
- def merge_line_coverage(first_val, second_val); end
401
- def self.combine(coverage_a, coverage_b); end
402
- def self.merge_line_coverage(first_val, second_val); end
527
+
528
+ class SimpleCov::SourceFile::Branch
529
+ def initialize(start_line:, end_line:, coverage:, inline:, type:); end
530
+
531
+ def coverage; end
532
+ def covered?; end
533
+ def end_line; end
534
+ def inline?; end
535
+ def missed?; end
536
+ def overlaps_with?(line_range); end
537
+ def report; end
538
+ def report_line; end
539
+ def skipped!; end
540
+ def skipped?; end
541
+ def start_line; end
542
+ def type; end
403
543
  end
404
- module SimpleCov::Combine::ResultsCombiner
405
- def combine(*results); end
406
- def combine_file_coverage(coverage_a, coverage_b); end
407
- def combine_result_sets(combined_results, result); end
408
- def self.combine(*results); end
409
- def self.combine_file_coverage(coverage_a, coverage_b); end
410
- def self.combine_result_sets(combined_results, result); end
544
+
545
+ class SimpleCov::SourceFile::Line
546
+ def initialize(src, line_number, coverage); end
547
+
548
+ def coverage; end
549
+ def covered?; end
550
+ def line; end
551
+ def line_number; end
552
+ def missed?; end
553
+ def never?; end
554
+ def number; end
555
+ def skipped; end
556
+ def skipped!; end
557
+ def skipped?; end
558
+ def source; end
559
+ def src; end
560
+ def status; end
411
561
  end
412
- module SimpleCov::UselessResultsRemover
413
- def self.call(coverage_result); end
414
- def self.root_regx; end
562
+
563
+ SimpleCov::SourceFile::RUBY_FILE_ENCODING_MAGIC_COMMENT_REGEX = T.let(T.unsafe(nil), Regexp)
564
+ SimpleCov::SourceFile::SHEBANG_REGEX = T.let(T.unsafe(nil), Regexp)
565
+
566
+ class SimpleCov::StringFilter < ::SimpleCov::Filter
567
+ def matches?(source_file); end
415
568
  end
416
- module SimpleCov::SimulateCoverage
417
- def call(absolute_path); end
418
- def self.call(absolute_path); end
569
+
570
+ module SimpleCov::UselessResultsRemover
571
+ class << self
572
+ def call(coverage_result); end
573
+ def root_regx; end
574
+ end
419
575
  end
576
+
577
+ SimpleCov::VERSION = T.let(T.unsafe(nil), String)