Class: DeepCover::Analyser::Statement

Inherits:
DeepCover::Analyser show all
Includes:
Subset
Defined in:
lib/deep_cover/analyser/statement.rb

Instance Attribute Summary

Attributes included from Base

#options, #source

Instance Method Summary collapse

Methods included from Subset

#node_children

Methods included from Base

#covered_code, #each_node, #initialize, #node_children, #node_covered?, #node_runs, #node_runs_map, #node_stat_contributions, #node_stat_type, #stats

Methods included from Tools::Covered

#covered?

Instance Method Details

#resultsObject

Returns a map of Range => runs



9
10
11
12
13
# File 'lib/deep_cover/analyser/statement.rb', line 9

def results
  each_node.map do |node|
    [node.expression, node_runs(node)]
  end.to_h
end