Class: DeepCover::Analyser::Statement
- Inherits:
-
DeepCover::Analyser
- Object
- DeepCover::Analyser
- DeepCover::Analyser::Statement
- Includes:
- Subset
- Defined in:
- lib/deep_cover/analyser/statement.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
-
#results ⇒ Object
Returns a map of Range => runs.
Methods included from Subset
Methods included from OptionallyCovered
Methods included from IgnoreUncovered
Methods included from Base
#covered_code, #each_node, #initialize, #node_children, #node_runs, #node_runs_map
Instance Method Details
#results ⇒ Object
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 |