When run on a directory with no cts data at all, the report
generator for hooktest --console would throw a StatisticsError
trying to calculate the mean coverage over zero files. Check
for this condition and report zero coverage instead.
Add a test for this condition, invoking hooktest on the included
emptyDir fixture.
Coverage increased (+0.01%) to 95.71% when pulling f5ae4aaddc33f4c170555241b4031eca6a9cca6e on rillian:emptydir into 6f46fa7dd56e3e0f818750f71330d7182ae8f7aa on Capitains:master.
When run on a directory with no cts data at all, the report generator for
hooktest --console
would throw aStatisticsError
trying to calculate the mean coverage over zero files. Check for this condition and report zero coverage instead.Add a test for this condition, invoking hooktest on the included emptyDir fixture.