Opened 7 years ago

Last modified 7 years ago

#943 new enhancement

Code coverage of unreferenced functions

Reported by: fare Owned by: kmcorbett
Priority: normal Milestone:
Component: Compiler Version: trunk
Keywords: ITA Cc:

Description

Gail Zacharias 2010-09-21 09:25:22 EDT

When a function is never called at all, it's not really an interesting statistic whether the uncalled function consists of one form or a hundred. It's really a different kind of information than figuring out how much of an invoked function is covered. So including unreferenced functions skews the coverage statistics.

Some ideas from discussion with Dan:

  • The code coverage statistics could include a count of unreferenced functions,

but not include those functions in the form counts.

  • The code coverage analysis could generate a list of the unreferenced

functions

  • There should be some way to specify which functions are expected to be

unreferenced, so the tool can produce a list of only unexpectedly-unreferenced functions. This could be done by either marking the function at place of definition, or providing an argument to report-code-coverage.

  • One obvious case of functions which are expected to be unreferenced at

runtime are macros (and deftypes etc). There should be some way to ask code coverage to treat all macros as expectedly-unreferenced.

Xref: This is ITA bug 86960.

Change History (2)

comment:1 Changed 7 years ago by gz

  • Owner set to kmcorbett

comment:2 Changed 7 years ago by gz

  • Keywords ITA added
Note: See TracTickets for help on using tickets.