1
0
Fork 0
mirror of https://github.com/correl/rebar.git synced 2025-04-01 19:08:01 -09:00

Merge pull request from ferd/cover-print-percent

Fix cover print truncation when coverage is 100%
This commit is contained in:
Fred Hebert 2014-10-16 15:40:46 -04:00
commit b693c23663

View file

@ -238,7 +238,7 @@ print_coverage(Coverage) ->
%% Print the output the console
?CONSOLE("~nCode Coverage:~n", []),
lists:foreach(fun({Mod, C, N}) ->
?CONSOLE("~*s : ~3s~n",
?CONSOLE("~*s : ~4s~n",
[Width, Mod, percentage(C, N)])
end, Coverage),
?CONSOLE("~n~*s : ~s~n", [Width, "Total", TotalCoverage]).