lib/simplecov/source_file/branch.rb
def report_line
        if inline?
          start_line
        else
          start_line - 1
        end
      end
# The line on which we want to report the coverage
#
# Usually we choose the line above the start of the branch (so that it shows up
# at if/else) because that
# * highlights the condition
# * makes it distinguishable if the first line of the branch is an inline branch
#   (see the nested_branches fixture)
#
The line on which we want to report the coverage
Usually we choose the line above the start of the branch (so that it shows up
at if/else) because that
highlights the condition
makes it distinguishable if the first line of the branch is an inline branch
The line on which we want to report the coverage Usually we choose the line above the start of the branch ( so that it shows up at if / else ) because that highlights the condition makes it distinguishable if the first line of the branch is an inline branch
def report_line
        if inline?
          start_line
        else
          start_line - 1
        end
      end
def report_line if inline? start_line else start_line - 1 end end
The line on which we want to report the coverage
Usually we choose the line above the start of the branch (so that it shows up
at if/else) because that
 highlights the condition
 makes it distinguishable if the first line of the branch is an inline branch
(see the nested_branches fixture)
The line on which we want to report the coverage Usually we choose the line above the start of the branch ( so that it shows up at if / else ) because that highlights the condition makes it distinguishable if the first line of the branch is an inline branch ( see the nested_branches fixture )