diff options
author | Chris Bernard <cebernard@gmail.com> | 2010-05-15 15:09:45 -0400 |
---|---|---|
committer | Chris Bernard <cebernard@gmail.com> | 2010-05-15 15:09:45 -0400 |
commit | 4825353a237b8cfe0ba0e1a9e6001de756af1189 (patch) | |
tree | 570c144abf1bfda5e4ec57bb6c4f73c722d15d4b /src/rebar.erl | |
parent | 35a928ecf2e0736dad345f644108141eabbbbee8 (diff) |
Fix incorrect coverage count when prod modules include EUnit header.
Modules that include the EUnit header get an implicit test/0 fun,
which cover considers a runnable line, but eunit:(TestRepresentation)
never calls. Result: prod modules with tests can never reach 100%
coverage. Ironic. In this case, fix it by decrementing the NotCovered
counter returned by cover:analyze/3.
Diffstat (limited to 'src/rebar.erl')
0 files changed, 0 insertions, 0 deletions