summaryrefslogtreecommitdiff
path: root/src/rebar_erlc_compiler.erl
diff options
context:
space:
mode:
authorChris Bernard <cebernard@gmail.com>2010-05-15 15:09:45 -0400
committerChris Bernard <cebernard@gmail.com>2010-05-15 15:09:45 -0400
commit4825353a237b8cfe0ba0e1a9e6001de756af1189 (patch)
tree570c144abf1bfda5e4ec57bb6c4f73c722d15d4b /src/rebar_erlc_compiler.erl
parent35a928ecf2e0736dad345f644108141eabbbbee8 (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_erlc_compiler.erl')
0 files changed, 0 insertions, 0 deletions