sorbet/rbi/gems/simplecov.rbi in clean-architecture-3.0.0 vs sorbet/rbi/gems/simplecov.rbi in clean-architecture-3.0.1

- old
+ new

@@ -5,33 +5,44 @@ # # If you would like to make changes to this file, great! Please create the gem's shim here: # # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/simplecov/all/simplecov.rbi # -# simplecov-0.17.1 +# simplecov-0.18.2 + module SimpleCov + def self.adapt_coverage_result; end def self.add_not_loaded_files(result); end def self.clear_result; end + def self.collate(result_filenames, profile = nil, &block); end def self.exit_exception; end def self.exit_status_from_exception; end def self.filtered(files); end def self.final_result_process?; end def self.grouped(files); end + def self.initial_setup(profile, &block); end def self.load_adapter(name); end def self.load_profile(name); end + def self.lookup_corresponding_ruby_coverage_name(criterion); end + def self.minimum_coverage_violated(result); end def self.pid; end def self.pid=(arg0); end + def self.process_coverage_result; end def self.process_result(result, exit_status); end + def self.remove_useless_results; end + def self.report_minimum_violated(violations); end def self.result; end def self.result?; end def self.result_exit_status(result, covered_percent); end + def self.result_with_not_loaded_files; end def self.run_exit_tasks!; end def self.running; end def self.running=(arg0); end def self.set_exit_exception; end def self.start(profile = nil, &block); end - def self.usable?; end + def self.start_coverage_measurement; end + def self.start_coverage_with_criteria; end def self.wait_for_other_processes; end def self.write_last_run(covered_percent); end extend SimpleCov::Configuration end module SimpleCov::Formatter @@ -46,14 +57,22 @@ module SimpleCov::Configuration def adapters; end def add_filter(filter_argument = nil, &filter_proc); end def add_group(group_name, filter_argument = nil, &filter_proc); end def at_exit(&block); end + def branch_coverage?; end + def branch_coverage_supported?; end + def clear_coverage_criteria; end def command_name(name = nil); end def configure(&block); end + def coverage_criteria; end + def coverage_criterion(criterion = nil); end + def coverage_criterion_enabled?(criterion); end def coverage_dir(dir = nil); end def coverage_path; end + def coverage_start_arguments_supported?; end + def enable_coverage(criterion); end def filters; end def filters=(arg0); end def formatter(formatter = nil); end def formatter=(arg0); end def formatters; end @@ -62,51 +81,86 @@ def groups=(arg0); end def maximum_coverage_drop(coverage_drop = nil); end def merge_timeout(seconds = nil); end def minimum_coverage(coverage = nil); end def minimum_coverage_by_file(coverage = nil); end + def minimum_possible_coverage_exceeded(coverage_option); end def nocov_token(nocov_token = nil); end def parse_filter(filter_argument = nil, &filter_proc); end + def print_error_status; end + def print_error_status=(arg0); end def profiles; end def project_name(new_name = nil); end + def raise_if_criterion_disabled(criterion); end + def raise_if_criterion_unsupported(criterion); end def refuse_coverage_drop; end def root(root = nil); end def skip_token(nocov_token = nil); end def track_files(glob); end def tracked_files; end def use_merging(use = nil); end end +class SimpleCov::CoverageStatistics + def compute_percent(covered, missed, total); end + def compute_strength(total_strength, total); end + def covered; end + def initialize(covered:, missed:, total_strength: nil); end + def missed; end + def percent; end + def self.from(coverage_statistics); end + def strength; end + def total; end +end module SimpleCov::ExitCodes end class SimpleCov::Profiles < Hash def define(name, &blk); end def load(name); end end class SimpleCov::SourceFile + def branch_coverage_statistics; end + def branches; end + def branches_coverage_percent; end + def branches_for_line(line_number); end + def branches_report; end + def build_branch(branch_data, hit_count, condition_start_line); end + def build_branches; end + def build_branches_from(condition, branches); end + def build_branches_report; end def build_lines; end - def coverage; end + def build_no_cov_chunks; end + def coverage_data; end def coverage_exceeding_source_warn; end + def coverage_statistics; end + def covered_branches; end def covered_lines; end def covered_percent; end def covered_strength; end def filename; end - def initialize(filename, coverage); end + def initialize(filename, coverage_data); end def line(number); end + def line_coverage_statistics; end + def line_with_missed_branch?(line_number); end def lines; end def lines_of_code; end def lines_strength; end + def missed_branches; end def missed_lines; end def never_lines; end + def no_branches?; end + def no_cov_chunks; end def no_lines?; end + def process_skipped_branches(branches); end def process_skipped_lines(lines); end def project_filename; end def relevant_lines; end - def round_float(float, places); end + def restore_ruby_data_structure(structure); end def skipped_lines; end def source; end def source_lines; end def src; end + def total_branches; end end class SimpleCov::SourceFile::Line def coverage; end def covered?; end def initialize(src, line_number, coverage); end @@ -120,25 +174,61 @@ def skipped?; end def source; end def src; end def status; end end -class SimpleCov::FileList < Array +class SimpleCov::SourceFile::Branch + def coverage; end + def covered?; end + def end_line; end + def initialize(start_line:, end_line:, coverage:, inline:, type:); end + def inline?; end + def missed?; end + def overlaps_with?(line_range); end + def report; end + def report_line; end + def skipped!; end + def skipped?; end + def start_line; end + def type; end +end +class SimpleCov::FileList + def branch_covered_percent; end + def compute_coverage_statistics; end + def count(*args, &block); end + def coverage_statistics; end + def covered_branches; end def covered_lines; end def covered_percent; end def covered_percentages; end def covered_strength; end + def each(*args, &block); end + def empty?(*args, &block); end + def initialize(files); end def least_covered_file; end + def length(*args, &block); end def lines_of_code; end + def map(*args, &block); end + def missed_branches; end def missed_lines; end def never_lines; end + def size(*args, &block); end def skipped_lines; end + def to_a(*args, &block); end + def to_ary(*args, &block); end + def total_branches; end + extend Forwardable + include Enumerable end class SimpleCov::Result + def adapt_pre_simplecov_0_18_result(result); end + def adapt_result(result); end def command_name; end def command_name=(arg0); end def coverage; end + def coverage_statistics(*args, &block); end + def covered_branches(*args, &block); end def covered_lines(*args, &block); end def covered_percent(*args, &block); end def covered_percentages(*args, &block); end def covered_strength(*args, &block); end def created_at; end @@ -148,22 +238,25 @@ def filter!; end def format!; end def groups; end def initialize(original_result); end def least_covered_file(*args, &block); end + def missed_branches(*args, &block); end def missed_lines(*args, &block); end def original_result; end + def pre_simplecov_0_18_result?(result); end def self.from_hash(hash); end def source_files; end def to_hash; end + def total_branches(*args, &block); end def total_lines(*args, &block); end extend Forwardable end class SimpleCov::Filter def filter_argument; end def initialize(filter_argument); end - def matches?(_); end + def matches?(_source_file); end def passes?(source_file); end def self.build_filter(filter_argument); end def self.class_for_argument(filter_argument); end end class SimpleCov::StringFilter < SimpleCov::Filter @@ -191,22 +284,13 @@ def classify(lines); end def self.no_cov_line; end def self.no_cov_line?(line); end def self.whitespace_line?(line); end end -module SimpleCov::RawCoverage - def merge_file_coverage(file1, file2); end - def merge_line_coverage(count1, count2); end - def merge_results(*results); end - def merge_resultsets(result1, result2); end - def self.merge_file_coverage(file1, file2); end - def self.merge_line_coverage(count1, count2); end - def self.merge_results(*results); end - def self.merge_resultsets(result1, result2); end -end module SimpleCov::ResultMerger def self.clear_resultset; end + def self.merge_and_store(*results); end def self.merge_results(*results); end def self.merged_result; end def self.results; end def self.resultset; end def self.resultset_path; end @@ -220,6 +304,49 @@ def self.from_defined_constants; end def self.from_env; end def self.guess; end def self.original_run_command; end def self.original_run_command=(arg0); end +end +class SimpleCov::ResultAdapter + def adapt; end + def initialize(result); end + def result; end + def self.call(*args); end +end +module SimpleCov::Combine + def combine(combiner_module, coverage_a, coverage_b); end + def empty_coverage?(coverage_a, coverage_b); end + def existing_coverage(coverage_a, coverage_b); end + def self.combine(combiner_module, coverage_a, coverage_b); end + def self.empty_coverage?(coverage_a, coverage_b); end + def self.existing_coverage(coverage_a, coverage_b); end +end +module SimpleCov::Combine::BranchesCombiner + def combine(coverage_a, coverage_b); end + def self.combine(coverage_a, coverage_b); end +end +module SimpleCov::Combine::FilesCombiner + def combine(coverage_a, coverage_b); end + def self.combine(coverage_a, coverage_b); end +end +module SimpleCov::Combine::LinesCombiner + def combine(coverage_a, coverage_b); end + def merge_line_coverage(first_val, second_val); end + def self.combine(coverage_a, coverage_b); end + def self.merge_line_coverage(first_val, second_val); end +end +module SimpleCov::Combine::ResultsCombiner + def combine(*results); end + def combine_file_coverage(coverage_a, coverage_b); end + def combine_result_sets(combined_results, result); end + def self.combine(*results); end + def self.combine_file_coverage(coverage_a, coverage_b); end + def self.combine_result_sets(combined_results, result); end +end +module SimpleCov::UselessResultsRemover + def self.call(coverage_result); end +end +module SimpleCov::SimulateCoverage + def call(absolute_path); end + def self.call(absolute_path); end end