Back to results
US 12,222,850 B2Granted
Automatic generation of code function and test case mapping
AssigneeDell Products L.P.
InventorsQin Zhang, Jin Qin, Jinghui Zhang, Shuyu Zhao, Xiaoxuan Dong
Life of this patent
Estimating the term…
Abstract
An information handling system executes test cases against a code that includes a set of functions, wherein the execution is performed at least twice using a different trace switch value. The system also identifies trace logs associated with each test case, and maps each test case to one or more functions based on the association of the trace logs with each test case.
Claims20
A method comprising:
- executing, by a processor, a plurality of test cases against a code that includes a plurality of functions, wherein the executing of the test cases against the code is performed at least twice generating trace logs, wherein each of the executing of the test cases is performed a first time using a first trace switch value and a second time using a second trace switch value, and wherein the first trace switch value is different from the second trace switch value, wherein the executing of the test cases the first time is associated with a first set of functions, wherein the executing of the test cases the second time is associated with a second set of functions, and wherein the first set of functions is different than the second set of functions;
- identifying the trace logs associated with each of the executing of the test cases;
- generating a mapping of each test case of the test cases to at least one function of the plurality of functions based on association of the trace logs with each test case by randomly sampling the trace logs;
- and
- generating a code coverage report that provides a first list of functions covered by the test cases and a second list of functions that are not covered by the test cases.
2 more elements
An information handling system, comprising:
- a memory;
- and
- a processor associated with the memory and configured to:
- execute a plurality of test cases against a code that includes a plurality of functions, wherein the execution is performed at least twice generating trace logs, wherein each of the executions is performed a first time using a first trace switch value and a second time using a second trace switch value, and wherein the first trace switch value used the first time is different than the second trace switch value used the second time, wherein the executing of the test cases the first time is associated with a first set of functions, wherein the executing of the test cases the second time is associated with a second set of functions, and wherein the first set of functions is different than the second set of functions;
- identify the trace logs associated with each execution of the test cases;
- generate a mapping of each test case of the test cases to one or more of the plurality of functions based on association of the trace logs with each test case by randomly sampling the trace logs;
- and
- generate a code coverage report that provides a first list of functions covered by the test cases and a second list of functions that are not covered by the test cases.
5 more elements
A non-transitory computer-readable media to store instructions that are executable to perform operations comprising:
- executing a plurality of test cases against a code that includes a plurality of functions, wherein the executing of the test cases against the code is performed at least twice generating trace logs, wherein each executing is performed a first time using a first trace switch value and a second time using a second trace switch value, and wherein the first trace switch value used the first time is different than the second trace switch value used the second time, wherein the executing of the test cases the first time is associated with a first set of functions, wherein the executing of the test cases the second time is associated with a second set of functions, and wherein the first set of functions is different than the second set of functions;
- identifying the trace logs associated with each of the executing of the test cases;
- mapping each test case of the test cases to one or more functions based on association of the trace logs with each test case by randomly sampling the trace logs;
- and
- generating a code coverage report that provides a first list of functions covered by the test cases and a second list of functions that are not covered by the test cases.
2 more elements
Dependencies are inferred from the claim text.