6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/evilution/reporter/cli/item_formatters/coverage_gap.rb', line 6
def format(gap)
location = "#{gap.file_path}:#{gap.line}"
= if gap.single?
" #{gap.primary_operator}: #{location} (#{gap.subject_name})"
else
operators = gap.operator_names.join(", ")
" #{location} (#{gap.subject_name}) [#{gap.count} mutations: #{operators}]"
end
body = gap.mutation_results.first.mutation.unified_diff || gap.primary_diff
indented = body.split("\n").map { |l| " #{l}" }.join("\n")
"#{}\n#{indented}"
end
|