Class: RuboCop::Cop::RSpecParity::SufficientContexts::SpecCoverage

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubocop/cop/rspec_parity/sufficient_contexts.rb

Overview

A spec’s contribution to coverage: scenarios counted from un-annotated contexts/examples, plus the raw annotation labels gathered from it.

Instance Attribute Summary collapse

Instance Attribute Details

#annotationsObject

Returns the value of attribute annotations

Returns:

  • (Object)

    the current value of annotations



91
92
93
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 91

def annotations
  @annotations
end

#scenariosObject

Returns the value of attribute scenarios

Returns:

  • (Object)

    the current value of scenarios



91
92
93
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 91

def scenarios
  @scenarios
end