Exception: CovLoupe::CoverageDataStaleError
- Inherits:
-
CoverageDataError
- Object
- StandardError
- Error
- CoverageDataError
- CovLoupe::CoverageDataStaleError
- Includes:
- StalenessFormatterMixin
- Defined in:
- lib/cov_loupe/errors/errors.rb
Overview
Coverage data is present but appears stale compared to source files
Instance Attribute Summary collapse
-
#cov_len ⇒ Object
readonly
Returns the value of attribute cov_len.
-
#cov_timestamp ⇒ Object
readonly
Returns the value of attribute cov_timestamp.
-
#file_mtime ⇒ Object
readonly
Returns the value of attribute file_mtime.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#resultset_path ⇒ Object
readonly
Returns the value of attribute resultset_path.
-
#src_len ⇒ Object
readonly
Returns the value of attribute src_len.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, original_error = nil, file_path: nil, file_mtime: nil, cov_timestamp: nil, src_len: nil, cov_len: nil, resultset_path: nil) ⇒ CoverageDataStaleError
constructor
A new instance of CoverageDataStaleError.
- #user_friendly_message ⇒ Object
Constructor Details
#initialize(message = nil, original_error = nil, file_path: nil, file_mtime: nil, cov_timestamp: nil, src_len: nil, cov_len: nil, resultset_path: nil) ⇒ CoverageDataStaleError
Returns a new instance of CoverageDataStaleError.
115 116 117 118 119 120 121 122 123 124 |
# File 'lib/cov_loupe/errors/errors.rb', line 115 def initialize( = nil, original_error = nil, file_path: nil, file_mtime: nil, cov_timestamp: nil, src_len: nil, cov_len: nil, resultset_path: nil) @file_path = file_path @file_mtime = file_mtime @cov_timestamp = @src_len = src_len @cov_len = cov_len @resultset_path = resultset_path super( || , original_error) end |
Instance Attribute Details
#cov_len ⇒ Object (readonly)
Returns the value of attribute cov_len.
113 114 115 |
# File 'lib/cov_loupe/errors/errors.rb', line 113 def cov_len @cov_len end |
#cov_timestamp ⇒ Object (readonly)
Returns the value of attribute cov_timestamp.
113 114 115 |
# File 'lib/cov_loupe/errors/errors.rb', line 113 def @cov_timestamp end |
#file_mtime ⇒ Object (readonly)
Returns the value of attribute file_mtime.
113 114 115 |
# File 'lib/cov_loupe/errors/errors.rb', line 113 def file_mtime @file_mtime end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
113 114 115 |
# File 'lib/cov_loupe/errors/errors.rb', line 113 def file_path @file_path end |
#resultset_path ⇒ Object (readonly)
Returns the value of attribute resultset_path.
113 114 115 |
# File 'lib/cov_loupe/errors/errors.rb', line 113 def resultset_path @resultset_path end |
#src_len ⇒ Object (readonly)
Returns the value of attribute src_len.
113 114 115 |
# File 'lib/cov_loupe/errors/errors.rb', line 113 def src_len @src_len end |
Instance Method Details
#user_friendly_message ⇒ Object
126 127 128 129 130 131 132 133 |
# File 'lib/cov_loupe/errors/errors.rb', line 126 def "Coverage data stale: #{}" + formatter.format_single_file_details( file_path: @file_path, file_mtime: @file_mtime, src_len: @src_len, cov_len: @cov_len ) end |