Exception: CovLoupe::CoverageDataProjectStaleError
- Inherits:
-
CoverageDataError
- Object
- StandardError
- Error
- CoverageDataError
- CovLoupe::CoverageDataProjectStaleError
- Includes:
- StalenessFormatterMixin
- Defined in:
- lib/cov_loupe/errors/errors.rb
Overview
Project-level stale coverage (global) — coverage timestamp older than one or more source files, or new tracked files missing from coverage.
Instance Attribute Summary collapse
-
#cov_timestamp ⇒ Object
readonly
Returns the value of attribute cov_timestamp.
-
#deleted_files ⇒ Object
readonly
Returns the value of attribute deleted_files.
-
#length_mismatch_files ⇒ Object
readonly
Returns the value of attribute length_mismatch_files.
-
#missing_files ⇒ Object
readonly
Returns the value of attribute missing_files.
-
#newer_files ⇒ Object
readonly
Returns the value of attribute newer_files.
-
#resultset_path ⇒ Object
readonly
Returns the value of attribute resultset_path.
-
#unreadable_files ⇒ Object
readonly
Returns the value of attribute unreadable_files.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, original_error = nil, cov_timestamp: nil, newer_files: [], missing_files: [], deleted_files: [], length_mismatch_files: [], unreadable_files: [], resultset_path: nil) ⇒ CoverageDataProjectStaleError
constructor
A new instance of CoverageDataProjectStaleError.
- #user_friendly_message ⇒ Object
Constructor Details
#initialize(message = nil, original_error = nil, cov_timestamp: nil, newer_files: [], missing_files: [], deleted_files: [], length_mismatch_files: [], unreadable_files: [], resultset_path: nil) ⇒ CoverageDataProjectStaleError
Returns a new instance of CoverageDataProjectStaleError.
149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/cov_loupe/errors/errors.rb', line 149 def initialize( = nil, original_error = nil, cov_timestamp: nil, newer_files: [], missing_files: [], deleted_files: [], length_mismatch_files: [], unreadable_files: [], resultset_path: nil) super(, original_error) @cov_timestamp = @newer_files = Array(newer_files) @missing_files = Array(missing_files) @deleted_files = Array(deleted_files) @length_mismatch_files = Array(length_mismatch_files) @unreadable_files = Array(unreadable_files) @resultset_path = resultset_path end |
Instance Attribute Details
#cov_timestamp ⇒ Object (readonly)
Returns the value of attribute cov_timestamp.
146 147 148 |
# File 'lib/cov_loupe/errors/errors.rb', line 146 def @cov_timestamp end |
#deleted_files ⇒ Object (readonly)
Returns the value of attribute deleted_files.
146 147 148 |
# File 'lib/cov_loupe/errors/errors.rb', line 146 def deleted_files @deleted_files end |
#length_mismatch_files ⇒ Object (readonly)
Returns the value of attribute length_mismatch_files.
146 147 148 |
# File 'lib/cov_loupe/errors/errors.rb', line 146 def length_mismatch_files @length_mismatch_files end |
#missing_files ⇒ Object (readonly)
Returns the value of attribute missing_files.
146 147 148 |
# File 'lib/cov_loupe/errors/errors.rb', line 146 def missing_files @missing_files end |
#newer_files ⇒ Object (readonly)
Returns the value of attribute newer_files.
146 147 148 |
# File 'lib/cov_loupe/errors/errors.rb', line 146 def newer_files @newer_files end |
#resultset_path ⇒ Object (readonly)
Returns the value of attribute resultset_path.
146 147 148 |
# File 'lib/cov_loupe/errors/errors.rb', line 146 def resultset_path @resultset_path end |
#unreadable_files ⇒ Object (readonly)
Returns the value of attribute unreadable_files.
146 147 148 |
# File 'lib/cov_loupe/errors/errors.rb', line 146 def unreadable_files @unreadable_files end |
Instance Method Details
#user_friendly_message ⇒ Object
162 163 164 165 166 167 168 169 170 171 |
# File 'lib/cov_loupe/errors/errors.rb', line 162 def base = "Coverage data stale (project): #{ || }" base + formatter.format_project_details( newer_files: @newer_files, missing_files: @missing_files, deleted_files: @deleted_files, length_mismatch_files: @length_mismatch_files, unreadable_files: @unreadable_files ) end |