Method and system for code coverage
AssigneeCisco Technology, Inc.
InventorRaja Kannan
Life of this patent
Estimating the term…
Loading patent…
AssigneeCisco Technology, Inc.
InventorRaja Kannan
Estimating the term…
A method, a native library and a Java Virtual Machine Debugger Interface agent for providing code coverage for programs coded in a computer language are described. The method involves determining the classes for which the code coverage is desired. The runtime environment for the computer language generates software events for several events that take place in the environment, such as preparing a class for loading and breakpoints. Handler functions for the events corresponding to events such as preparing a class for loading and breakpoints are registered with the runtime environment. The method further involves receiving breakpoints for one or more executable units in the classes for which the code coverage is desired. On receiving the breakpoint event, a line hit counter is incremented, which enables determination of the lines of code which are exercised and which are not. The native library and Java Virtual Machine Debugger Interface agent contain instructions that implement the method.
A method for providing code coverage for a program coded in a computer language, the computer language being used to code one or more classes, the classes being used to instantiate one or more objects, the classes defining methods to be performed on the objects, the classes further defining events to which the objects respond, the method comprising
A native library for providing code coverage for programs coded in a computer language, the computer language being used to code one or more classes, the classes being used to instantiate one or more objects, the classes defining methods to be performed on the objects, the classes further defining events to which the objects respond, the native library containing computer code comprising one or more instructions for
A machine-readable medium including instructions executable by the processor for providing code coverage in a computer language, the computer language being used to code one or more classes, the classes being used to instantiate one or more objects, the classes defining methods to be performed on the objects, the classes further defining events to which the objects respond, comprising one or more instructions for
Dependencies are inferred from the claim text.