class SimpleCov::SourceFile

def ignore_branch?(branch_data, condition_type, condition_start_line)

def ignore_branch?(branch_data, condition_type, condition_start_line)
  branch_type = branch_data[0]
  branch_start_line = branch_data[2]
  # branch coverage always reports case to be with an else branch even when
  # there is no else branch to be covered, it's noticable by the reported start
  # line being the same as that of the condition/case
  condition_type == :case &&
    branch_type == :else &&
    condition_start_line == branch_start_line
end