US 12,487,910 B2
Predicting code coverage without execution
Shubham Chandel, Seattle, WA (US); Colin Bruce Clement, Seattle, WA (US); Neelakantan Sundaresan, Bellevue, WA (US); and Michele Tufano, Bellevue, WA (US)
Assigned to Microsoft Technology Licensing, LLC, Redmond, WA (US)
Filed by MICROSOFT TECHNOLOGY LICENSING, LLC., Redmond, WA (US)
Filed on Jun. 1, 2023, as Appl. No. 18/204,691.
Prior Publication US 2024/0403198 A1, Dec. 5, 2024
Int. Cl. G06F 9/44 (2018.01); G06F 8/36 (2018.01); G06F 11/3668 (2025.01)
CPC G06F 11/3676 (2013.01) [G06F 8/36 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A system comprising:
one or more processors; and
a memory that stores one or more programs that are configured to be executed by the one or more processors, the one or more programs include instructions to perform actions that:
obtain a focal method and a corresponding test case;
create a prompt including the focal method and the corresponding test case;
generate, from a first deep machine learning model given the prompt, a sequence of code coverage symbols, wherein a code coverage symbol of the sequence of code coverage symbols indicates coverage of the test case for a respective line of source code of the focal method;
align the sequence of coverage symbols with the focal method to produce an annotated-coverage focal method; and
output the annotated-coverage focal method.