Class: DeepCover::Node::When
- Inherits:
-
DeepCover::Node
- Object
- DeepCover::Node
- DeepCover::Node::When
- Defined in:
- lib/deep_cover/node/case.rb
Constant Summary
Constants inherited from DeepCover::Node
CLASSES, Complex, Cvasgn, Dsym, Erange, Float, Int, Ivar, Kwarg, Kwoptarg, Kwrestarg, OrAsgn, Rational, Sym, True, Zsuper
Instance Attribute Summary
Attributes inherited from DeepCover::Node
#base_node, #children, #index, #next_sibling, #parent, #previous_sibling
Instance Method Summary collapse
Methods inherited from DeepCover::Node
[], #[], atom, #children_nodes, #covered_code, define_module_class, #each_node, #fancy_type, #find_all, has_evaluated_segments, inherited, #initialize, #simple_literal?, #to_s, #type
Methods included from Memoize
Constructor Details
This class inherits a constructor from DeepCover::Node
Instance Method Details
#execution_count ⇒ Object
65 66 67 |
# File 'lib/deep_cover/node/case.rb', line 65 def execution_count matches.first.flow_completion_count end |
#flow_completion_count ⇒ Object
69 70 71 |
# File 'lib/deep_cover/node/case.rb', line 69 def flow_completion_count body.flow_completion_count + next_sibling.flow_entry_count end |
#flow_entry_count ⇒ Object
61 62 63 |
# File 'lib/deep_cover/node/case.rb', line 61 def flow_entry_count matches.first.flow_entry_count end |