Code evaluation based on failure prediction
First Claim
Patent Images
1. A method for evaluating code, the method comprising:
- identifying a set of segments of the code that will not run as desired based on a policy;
evaluating a risk of the code not performing as desired based on a result from a code coverage test and the set of segments of the code that will not run as desired; and
instrumenting the code to identify a segment of code as the segment of code that is run during the code coverage test, and wherein the evaluating step comprises;
assigning a risk value to the segment of code when the segment of code is identified as being run during the code coverage test, wherein an identification of the segment of code as being run is a portion of a result;
assigning a value to each of a set of related segments that is related to the segment of code when the segment of code is identified as being run during the code coverage test; and
identifying the risk of the code not performing as desired using values generated while running the code coverage test.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for evaluating code. A likelihood that a set of segments of the code will not run as desired based on a policy is identified. A risk of the code not performing as desired is evaluated based on a result from a code coverage test and the likelihood that the set of segments of the code will not run as desired.
13 Citations
15 Claims
-
1. A method for evaluating code, the method comprising:
-
identifying a set of segments of the code that will not run as desired based on a policy; evaluating a risk of the code not performing as desired based on a result from a code coverage test and the set of segments of the code that will not run as desired; and instrumenting the code to identify a segment of code as the segment of code that is run during the code coverage test, and wherein the evaluating step comprises; assigning a risk value to the segment of code when the segment of code is identified as being run during the code coverage test, wherein an identification of the segment of code as being run is a portion of a result; assigning a value to each of a set of related segments that is related to the segment of code when the segment of code is identified as being run during the code coverage test; and identifying the risk of the code not performing as desired using values generated while running the code coverage test. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer comprising:
-
a bus; a storage device connected to the bus, wherein program code is stored on the storage device; and a processor unit connected to the bus, wherein the processor unit is configured to run the program code to identify a set of segments of code that will not run as desired based on a policy;
evaluate a risk of the code not performing as desired based on a result from a code coverage test and the set of segments of the code that will not run as desired; and
instrument the code to identify a segment of code as the segment of code is run during the code coverage test and wherein in being configured to evaluate the risk of the code not performing as desired based on the result from the code coverage test and the set of segments of the code that will not run as desired, the processor unit is further configured to assign a risk value to the segment of code when the segment of code is identified as being run during the code coverage test in which an identification of the segment of code as being run is a portion of a result and assign the risk value to each of a set of related segments that is related to the segment of code when the segment of code is identified as being run during the code coverage test; and
identify the risk using risk values generated while running the code coverage test. - View Dependent Claims (10, 11, 12)
-
-
13. A computer program product comprising:
-
a computer readable storage device; first program code for identifying a set of segments of code that will not run as desired based on a policy; second program code for evaluating a risk of the code not performing as desired based on a result from a code coverage test and the set of segments of the code that will not run as desired; and third program code for instrumenting the code to identify a segment of code as the segment of code that is run during the code coverage test, and wherein the second program code comprises program code for assigning a risk value to the segment of code when the segment of code is identified as being run during the code coverage test, wherein an identification of the segment of code as being run is a portion of a result, assigning a value to each of a set of related segments that is related to the segment of code when the segment of code is identified as being run during the code coverage test, and identifying the risk of the code not performing as desired using values generated while running the code coverage test, wherein the first program code and the second program code and the third program code are stored on the computer readable storage device. - View Dependent Claims (14, 15)
-
Specification