Class: RuboCop::Cop::RSpecParity::SufficientContexts::ParsedSpec

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

Overview

Tallies extracted from a spec’s text for a single method describe block. ‘annotations` holds raw `# rspec_parity:covers` label strings found in the block (empty unless CoversAnnotations is on).

Instance Attribute Summary collapse

Instance Attribute Details

#annotationsObject

Returns the value of attribute annotations

Returns:

  • (Object)

    the current value of annotations



87
88
89
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 87

def annotations
  @annotations
end

#context_countObject

Returns the value of attribute context_count

Returns:

  • (Object)

    the current value of context_count



87
88
89
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 87

def context_count
  @context_count
end

#example_countObject

Returns the value of attribute example_count

Returns:

  • (Object)

    the current value of example_count



87
88
89
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 87

def example_count
  @example_count
end

#has_direct_examplesObject

Returns the value of attribute has_direct_examples

Returns:

  • (Object)

    the current value of has_direct_examples



87
88
89
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 87

def has_direct_examples
  @has_direct_examples
end

#has_examplesObject

Returns the value of attribute has_examples

Returns:

  • (Object)

    the current value of has_examples



87
88
89
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 87

def has_examples
  @has_examples
end