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