u-struct 0.11.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +5 -5
- data/.rubocop.yml +129 -0
- data/.rubocop_todo.yml +10 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +558 -13
- data/Gemfile +14 -3
- data/README.md +682 -16
- data/Rakefile +5 -5
- data/bin/console +3 -3
- data/bin/prepare_coverage +7 -9
- data/bin/run_ci +17 -0
- data/bin/tapioca +28 -0
- data/examples/rgb/number.rb +1 -1
- data/examples/rgb_1.rb +7 -6
- data/examples/rgb_2.rb +2 -2
- data/examples/rgb_3.rb +1 -1
- data/lib/micro/struct/factory/create_struct.rb +95 -69
- data/lib/micro/struct/factory/members.rb +1 -0
- data/lib/micro/struct/factory.rb +13 -4
- data/lib/micro/struct/features.rb +35 -16
- data/lib/micro/struct/normalize_names.rb +4 -3
- data/lib/micro/struct/version.rb +2 -1
- data/lib/micro/struct.rb +37 -5
- data/lib/u-struct.rb +2 -0
- data/rbi/micro/struct/factory/create_struct.rbi +60 -0
- data/rbi/micro/struct/factory/members.rbi +67 -0
- data/rbi/micro/struct/factory.rbi +41 -0
- data/rbi/micro/struct/features.rbi +41 -0
- data/rbi/micro/struct/normalize_names.rbi +20 -0
- data/rbi/micro/struct/version.rbi +3 -0
- data/rbi/micro/struct.rbi +68 -0
- data/sorbet/config +8 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +11 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/minitest@5.15.0.rbi +345 -0
- data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1196 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +806 -0
- data/sorbet/rbi/gems/rbi@0.0.9.rbi +1602 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
- data/sorbet/rbi/gems/tapioca@0.6.2.rbi +1232 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/unparser@0.6.3.rbi +8 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
- data/sorbet/rbi/gems/yard@0.9.27.rbi +4112 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- data/u-struct.gemspec +3 -3
- metadata +38 -4
- data/bin/test +0 -8
@@ -0,0 +1,89 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `simplecov-html` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem simplecov-html`.
|
6
|
+
|
7
|
+
module SimpleCov
|
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
|
55
|
+
end
|
56
|
+
|
57
|
+
module SimpleCov::Formatter
|
58
|
+
class << self
|
59
|
+
def from_env(env); end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
class SimpleCov::Formatter::HTMLFormatter
|
64
|
+
def initialize; end
|
65
|
+
|
66
|
+
def branchable_result?; end
|
67
|
+
def format(result); end
|
68
|
+
def line_status?(source_file, line); end
|
69
|
+
def output_message(result); end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
def asset_output_path; end
|
74
|
+
def assets_path(name); end
|
75
|
+
def coverage_css_class(covered_percent); end
|
76
|
+
def covered_percent(percent); end
|
77
|
+
def formatted_file_list(title, source_files); end
|
78
|
+
def formatted_source_file(source_file); end
|
79
|
+
def id(source_file); end
|
80
|
+
def link_to_source_file(source_file); end
|
81
|
+
def output_path; end
|
82
|
+
def shortened_filename(source_file); end
|
83
|
+
def strength_css_class(covered_strength); end
|
84
|
+
def template(name); end
|
85
|
+
def timeago(time); end
|
86
|
+
end
|
87
|
+
|
88
|
+
SimpleCov::Formatter::HTMLFormatter::VERSION = T.let(T.unsafe(nil), String)
|
89
|
+
SimpleCov::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,577 @@
|
|
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
|
+
module SimpleCov
|
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
|
55
|
+
end
|
56
|
+
|
57
|
+
class SimpleCov::ArrayFilter < ::SimpleCov::Filter
|
58
|
+
def initialize(filter_argument); end
|
59
|
+
|
60
|
+
def matches?(source_files_list); end
|
61
|
+
end
|
62
|
+
|
63
|
+
class SimpleCov::BlockFilter < ::SimpleCov::Filter
|
64
|
+
def matches?(source_file); end
|
65
|
+
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
|
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
|
+
|
141
|
+
module SimpleCov::Configuration
|
142
|
+
def adapters; 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
|
145
|
+
def at_exit(&block); end
|
146
|
+
def at_fork(&block); end
|
147
|
+
def branch_coverage?; end
|
148
|
+
def branch_coverage_supported?; end
|
149
|
+
def clear_coverage_criteria; end
|
150
|
+
def command_name(name = T.unsafe(nil)); end
|
151
|
+
def configure(&block); end
|
152
|
+
def coverage_criteria; end
|
153
|
+
def coverage_criterion(criterion = T.unsafe(nil)); end
|
154
|
+
def coverage_criterion_enabled?(criterion); end
|
155
|
+
def coverage_dir(dir = T.unsafe(nil)); end
|
156
|
+
def coverage_path; end
|
157
|
+
def coverage_start_arguments_supported?; end
|
158
|
+
def enable_coverage(criterion); end
|
159
|
+
def enable_for_subprocesses(value = T.unsafe(nil)); end
|
160
|
+
def enabled_for_subprocesses?; end
|
161
|
+
def filters; end
|
162
|
+
def filters=(_arg0); end
|
163
|
+
def formatter(formatter = T.unsafe(nil)); end
|
164
|
+
def formatter=(_arg0); end
|
165
|
+
def formatters; end
|
166
|
+
def formatters=(formatters); end
|
167
|
+
def groups; 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
|
175
|
+
def print_error_status; end
|
176
|
+
def print_error_status=(_arg0); end
|
177
|
+
def profiles; end
|
178
|
+
def project_name(new_name = T.unsafe(nil)); end
|
179
|
+
def raise_on_invalid_coverage(coverage, coverage_setting); end
|
180
|
+
def refuse_coverage_drop(*criteria); end
|
181
|
+
def root(root = T.unsafe(nil)); end
|
182
|
+
def skip_token(nocov_token = T.unsafe(nil)); end
|
183
|
+
def track_files(glob); end
|
184
|
+
def tracked_files; 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
|
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
|
+
|
198
|
+
class SimpleCov::CoverageStatistics
|
199
|
+
def initialize(covered:, missed:, total_strength: T.unsafe(nil)); end
|
200
|
+
|
201
|
+
def covered; end
|
202
|
+
def missed; end
|
203
|
+
def percent; end
|
204
|
+
def strength; end
|
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
|
215
|
+
end
|
216
|
+
|
217
|
+
module SimpleCov::ExitCodes; end
|
218
|
+
SimpleCov::ExitCodes::EXCEPTION = T.let(T.unsafe(nil), Integer)
|
219
|
+
|
220
|
+
module SimpleCov::ExitCodes::ExitCodeHandling
|
221
|
+
private
|
222
|
+
|
223
|
+
def call(result, coverage_limits:); end
|
224
|
+
def 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
|
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
|
+
|
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
|
+
|
244
|
+
def compute_coverage_drop_data; end
|
245
|
+
def coverage_drop_violations; end
|
246
|
+
def drop_percent(criterion); end
|
247
|
+
def last_coverage(criterion); end
|
248
|
+
def last_run; end
|
249
|
+
def maximum_coverage_drop; end
|
250
|
+
def result; end
|
251
|
+
end
|
252
|
+
|
253
|
+
SimpleCov::ExitCodes::MaximumCoverageDropCheck::MAX_DROP_ACCURACY = T.let(T.unsafe(nil), Integer)
|
254
|
+
|
255
|
+
class SimpleCov::ExitCodes::MinimumCoverageByFileCheck
|
256
|
+
def initialize(result, minimum_coverage_by_file); end
|
257
|
+
|
258
|
+
def exit_code; end
|
259
|
+
def failing?; end
|
260
|
+
def report; end
|
261
|
+
|
262
|
+
private
|
263
|
+
|
264
|
+
def compute_minimum_coverage_data; end
|
265
|
+
def minimum_coverage_by_file; end
|
266
|
+
def minimum_violations; end
|
267
|
+
def result; end
|
268
|
+
end
|
269
|
+
|
270
|
+
class SimpleCov::ExitCodes::MinimumOverallCoverageCheck
|
271
|
+
def initialize(result, minimum_coverage); end
|
272
|
+
|
273
|
+
def exit_code; end
|
274
|
+
def failing?; end
|
275
|
+
def report; end
|
276
|
+
|
277
|
+
private
|
278
|
+
|
279
|
+
def calculate_minimum_violations; end
|
280
|
+
def minimum_coverage; end
|
281
|
+
def minimum_violations; end
|
282
|
+
def result; end
|
283
|
+
end
|
284
|
+
|
285
|
+
SimpleCov::ExitCodes::SUCCESS = T.let(T.unsafe(nil), Integer)
|
286
|
+
|
287
|
+
class SimpleCov::FileList
|
288
|
+
include ::Enumerable
|
289
|
+
extend ::Forwardable
|
290
|
+
|
291
|
+
def initialize(files); end
|
292
|
+
|
293
|
+
def branch_covered_percent; end
|
294
|
+
def count(*args, &block); end
|
295
|
+
def coverage_statistics; end
|
296
|
+
def coverage_statistics_by_file; end
|
297
|
+
def covered_branches; end
|
298
|
+
def covered_lines; end
|
299
|
+
def covered_percent; end
|
300
|
+
def covered_percentages; end
|
301
|
+
def covered_strength; end
|
302
|
+
def each(*args, &block); end
|
303
|
+
def empty?(*args, &block); end
|
304
|
+
def least_covered_file; end
|
305
|
+
def length(*args, &block); end
|
306
|
+
def lines_of_code; end
|
307
|
+
def map(*args, &block); end
|
308
|
+
def missed_branches; end
|
309
|
+
def missed_lines; end
|
310
|
+
def never_lines; end
|
311
|
+
def size(*args, &block); end
|
312
|
+
def skipped_lines; end
|
313
|
+
def to_a(*args, &block); end
|
314
|
+
def to_ary(*args, &block); end
|
315
|
+
def total_branches; end
|
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
|
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
|
+
|
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
|
+
|
394
|
+
def command_name; end
|
395
|
+
def command_name=(_arg0); end
|
396
|
+
def coverage_statistics(*args, &block); end
|
397
|
+
def coverage_statistics_by_file(*args, &block); end
|
398
|
+
def covered_branches(*args, &block); end
|
399
|
+
def covered_lines(*args, &block); end
|
400
|
+
def covered_percent(*args, &block); end
|
401
|
+
def covered_percentages(*args, &block); end
|
402
|
+
def covered_strength(*args, &block); end
|
403
|
+
def created_at; end
|
404
|
+
def created_at=(_arg0); end
|
405
|
+
def filenames; end
|
406
|
+
def files; end
|
407
|
+
def format!; end
|
408
|
+
def groups; end
|
409
|
+
def least_covered_file(*args, &block); end
|
410
|
+
def missed_branches(*args, &block); end
|
411
|
+
def missed_lines(*args, &block); end
|
412
|
+
def original_result; end
|
413
|
+
def source_files; end
|
414
|
+
def to_hash; end
|
415
|
+
def total_branches(*args, &block); end
|
416
|
+
def total_lines(*args, &block); 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
|
426
|
+
end
|
427
|
+
|
428
|
+
class SimpleCov::ResultAdapter
|
429
|
+
def initialize(result); end
|
430
|
+
|
431
|
+
def adapt; end
|
432
|
+
def result; end
|
433
|
+
|
434
|
+
class << self
|
435
|
+
def call(*args); end
|
436
|
+
end
|
437
|
+
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
|
462
|
+
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
|
472
|
+
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
|
526
|
+
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
|
543
|
+
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
|
561
|
+
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
|
568
|
+
end
|
569
|
+
|
570
|
+
module SimpleCov::UselessResultsRemover
|
571
|
+
class << self
|
572
|
+
def call(coverage_result); end
|
573
|
+
def root_regx; end
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
SimpleCov::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `simplecov_json_formatter` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`.
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
|