Class: RuboCop::Cop::RSpecParity::SufficientContexts::CoverageGap
- Inherits:
-
Struct
- Object
- Struct
- RuboCop::Cop::RSpecParity::SufficientContexts::CoverageGap
- Defined in:
- lib/rubocop/cop/rspec_parity/sufficient_contexts.rb
Overview
What’s left to cover for a method, given the spec text:
uncovered — branches with no covering annotation
annotated — branches an annotation already claims (known-covered)
unannotated_specs — count of plain (un-annotated) examples/contexts whose
branch we can't determine
Nil when the method has no spec describe block or is already fully covered.
Instance Attribute Summary collapse
-
#annotated ⇒ Object
Returns the value of attribute annotated.
-
#unannotated_specs ⇒ Object
Returns the value of attribute unannotated_specs.
-
#uncovered ⇒ Object
Returns the value of attribute uncovered.
Instance Attribute Details
#annotated ⇒ Object
Returns the value of attribute annotated
307 308 309 |
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 307 def annotated @annotated end |
#unannotated_specs ⇒ Object
Returns the value of attribute unannotated_specs
307 308 309 |
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 307 def unannotated_specs @unannotated_specs end |
#uncovered ⇒ Object
Returns the value of attribute uncovered
307 308 309 |
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 307 def uncovered @uncovered end |