Test case generation for uncovered code paths
Abstract
Embodiments of the present invention provide methods, computer program products, and systems to increase code coverage. Embodiments of the present invention can receive a copy of source code and data associated with a sample execution of a set of instructions specified by the copy of the source code. Embodiments of the present invention can insert, into the set of instructions specified by the copy of the source code, an instruction that corresponds to a code statement that precedes an untraversed code path within the received copy of the source code. Embodiments of the present invention can execute the set of instructions that include the inserted instruction and provide an option to redirect execution of the set of instructions at the inserted instruction. Embodiments of the present invention can generate a test case that increases code coverage based on the redirected execution of the set of instructions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: receiving a copy of source code and data associated with a sample execution of a set of instructions specified by the copy of the source code; inserting, into the set of instructions specified by the copy of the source code, an instruction that corresponds to a code statement that precedes an untraversed code path within the received copy of the source code, as identified by the data associated with the sample execution; executing the set of instructions that include the inserted instruction; providing an option to redirect execution of the set of inst
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (12)
Non-Patent Literature (3)
- Appendix P-List of IBM Patents or Patent Applications Treated as Related, Filed herewith, 2 Pages.
- Appendix P—List of IBM Patents or Patent Applications Treated as Related, Filed herewith, 2 Pages.
- Cooper et al., "Test Case Generation for Uncovered Code Paths", U.S. Appl. No. 15/657,387, filed Jul. 24, 2017,19 pages.