You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We make the check sooooo many times that I feel better having
it cached especially when it doesn't make the code more complex
and when it also is unlikely to change while the formatter
is running (read: it shouldn't change then)
"Coverage report generated for #{result.command_name} to #{output_path}. #{result.covered_lines} / #{result.total_lines} LOC (#{result.covered_percent.round(2)}%) covered."
32
36
end
33
37
34
-
# Check if branchable results supported or not
35
-
# Try used here to escape exceptions
36
38
defbranchable_result?
37
-
SimpleCov.branch_coverage?
39
+
# cached in initialize because we truly look it up a whole bunch of times
40
+
# and it's easier to cache here then in SimpleCov because there we might
0 commit comments