Browse Prior Art Database

Code Coverage Tool with Call Site Procedural Statistics

IP.com Disclosure Number: IPCOM000015746D
Original Publication Date: 2002-Feb-01
Included in the Prior Art Database: 2003-Jun-21

Publishing Venue

IBM

Abstract

This invention tracks the coverage of a routine called from a particular call site and reports the coverage accumulated from calls at that site back to that point in the listing of the calling routine. For example, above is an interface to the ATC viewer. This viewer allows the user to see not only the lines that where not covered (Highlighted in red), but also to see how much coverage each of the called routines received when called from the particular call site (This is the green bar above). So if all the lines in the routine happened to be executed as a result of being called from that location, the green bar would be all the way across the screen. (Such as with the cleanup routine) In the example program there are two calls to the routine foo(). One call site accounts for more coverage than the other, as can be seen by the length of the green bar. The ATC viewer will allow the user to click on the green bar or the line with the call and examine the coverage that resulted from calls to the routine at this call site. A user can also leave the mouse pointer on the green bar, and tool tip text will pop up telling the user how many times this subroutine was called from this location. 1