Class: RuboCop::Cop::RSpecParity::SufficientContexts::CoverageGap

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#annotatedObject

Returns the value of attribute annotated

Returns:

  • (Object)

    the current value of annotated



307
308
309
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 307

def annotated
  @annotated
end

#unannotated_specsObject

Returns the value of attribute unannotated_specs

Returns:

  • (Object)

    the current value of unannotated_specs



307
308
309
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 307

def unannotated_specs
  @unannotated_specs
end

#uncoveredObject

Returns the value of attribute uncovered

Returns:

  • (Object)

    the current value of uncovered



307
308
309
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 307

def uncovered
  @uncovered
end