lib/simplecov/combine/lines_combiner.rb
# Return depends on coverage in a specific line
#
# @param [Integer || nil] first_val
# @param [Integer || nil] second_val
#
# Logic:
#
# => nil + 0 = nil
# => nil + nil = nil
# => int + int = int
#
# @return [Integer || nil]
Return depends on coverage in a specific line
Return depends on coverage in a specific line
def merge_line_coverage(first_val, second_val)
        sum = first_val.to_i + second_val.to_i
        if sum.zero? && (first_val.nil? || second_val.nil?)
          nil
        else
          sum
        end
      end
def merge_line_coverage ( first_val , second_val ) sum = first_val . to_i + second_val . to_i if sum . zero? && ( first_val . nil? || second_val . nil? ) nil else sum end end
Return depends on coverage in a specific line
Return depends on coverage in a specific line
None
Integer || nil
first_val
second_val
None