Merge pull request #371 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]).