class DeepCover::Node::Rescue

Public Instance Methods

execution_count() click to toggle source
# File lib/deep_cover/node/exceptions.rb, line 46
def execution_count
  watched_body.flow_completion_count
end
flow_completion_count() click to toggle source
# File lib/deep_cover/node/exceptions.rb, line 42
def flow_completion_count
  resbodies.map(&:flow_completion_count).inject(0, :+) + self.else.flow_completion_count
end
is_statement() click to toggle source
# File lib/deep_cover/node/exceptions.rb, line 38
def is_statement
  false
end
resbodies_flow_entry_count(child) click to toggle source
# File lib/deep_cover/node/exceptions.rb, line 50
def resbodies_flow_entry_count(child)
  prev = child.previous_sibling

  if prev.equal? watched_body
    prev.flow_entry_count - prev.flow_completion_count
  else # RESBODIES
    if prev.exception # rubocop:disable Style/IfInsideElse
      prev.exception.flow_completion_count - prev.execution_count
    else
      prev.flow_entry_count - prev.execution_count
    end
  end
end