Lightweight software test library for vehicle compute hardware coverage testing
US-12124356-B2 · Oct 22, 2024 · US
US2017132121A1 · US · A1
| Field | Value |
|---|---|
| Publication number | US-2017132121-A1 |
| Application number | US-201514934496-A |
| Country | US |
| Kind code | A1 |
| Filing date | Nov 6, 2015 |
| Priority date | Nov 6, 2015 |
| Publication date | May 11, 2017 |
| Grant date | — |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
A portion is selected from a code for code coverage analysis. The portion is not directly referenceable by another portion of the code. An instruction is constructed to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion and the code coverage analysis of a remainder of the code is omitted. Using the instruction, a code coverage analysis tool is caused to execute the code without performing the code coverage analysis until the code coverage breakpoint. Responsive to the instruction, the code coverage analysis tool is further caused to end the code coverage analysis after the portion and resume executing the code without performing the code coverage analysis. A report of the code coverage analysis of the portion is produced.
Opening claim text (preview).
1 . A method comprising: selecting, using a processor and a memory, from a code, a portion for code coverage analysis, the portion being a single line of the code such that the single line of the code is not directly referenceable by another line of the code; constructing an instruction to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion while omitting the code coverage analysis of a remainder of the code; causing, using the instruction, a code coverage analysis tool to execute the code without performing the code coverage analysis until the code coverage breakpoint; further causing, responsive to the instruction, the code coverage analysis tool to end the code coverage analysis after the portion and resume executing the code without performing the code coverage analysis; and outputting a report of the code coverage analysis of the portion. 2 . The method of claim 1 , further comprising: selecting a test case, wherein the test case is applicable to the portion; and including, in the instruction, an indication to use the test case to perform the code coverage analysis. 3 . The method of claim 1 , wherein the instruction causes the code coverage breakpoint to be inserted at a beginning of the portion, wherein the code coverage breakpoint causes an initiation of the code coverage analysis. 4 . The method of claim 3 , wherein the instruction further causes a second code coverage breakpoint to be inserted at an end of the portion, wherein the second code coverage breakpoint causes an end of the code coverage analysis. 5 . The method of claim 1 , further comprising: invoking a code change management tool to identify a changeset corresponding to the code, the changeset including the portion. 6 . The method of claim 5 , wherein the portion comprises new code and wherein the new code has not been previously tested for code coverage analysis. 7 . The method of claim 5 , wherein the portion comprises a changed form of an existing portion, wherein the changed form has not been previously tested for code coverage analysis. 8 . The method of claim 1 , further comprising: accessing a historical data of a previous code coverage analysis of the code; and identifying, from the historical data, a gap in the previous code coverage analysis, wherein the gap corresponds to the portion, and wherein the portion comprises existing code that is unchanged since the previous code coverage analysis. 9 . The method of claim 1 , further comprising: identifying the portion such that the single line of the code in the portion has not been previously tested for code coverage analysis; identifying a second portion, the second portion being a second single line of the code, the second single line of the code is not directly referenceable by another line of the code, and wherein the second single line of the code in the second portion has been previously tested for code coverage analysis; configuring, as a part of the constructing, the instruction to insert the code coverage breakpoint at the single line of the code of the portion and insert a second code coverage breakpoint at the second single line of the code of the second portion. 10 . The method of claim 9 , wherein the second single line of the code has been previously tested using a first test case, further comprising: causing the second single line of the code to be retested using a second test case. 11 . A computer program product comprising one or more computer-readable storage devices, and program instructions stored on at least one of the one or more storage devices, the stored program instructions comprising: program instructions to select, using a processor and a memory, from a code, a portion for code coverage analysis, the portion being a single line of the code such that the single line of the code is not directly referenceable by another line of the code; program instructions to construct an instruction to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion while omitting the code coverage analysis of a remainder of the code; program instructions to cause, using the instruction, a code coverage analysis tool to execute the code without performing the code coverage analysis until the code coverage breakpoint; program instructions to further cause, responsive to the instruction, the code coverage analysis tool to end the code coverage analysis after the portion and resume executing the code without performing the code coverage analysis; and program instructions to output a report of the code coverage analysis of the portion. 12 . The computer program product of claim 11 , the stored program instructions further comprising: program instructions to select a test case, wherein the test case is applicable to the portion; and program instructions to include, in the instruction, an indication to use the test case to perform the code coverage analysis. 13 . The computer program product of claim 11 , wherein the instruction causes the code coverage breakpoint to be inserted at a beginning of the portion, wherein the code coverage breakpoint causes an initiation of the code coverage analysis. 14 . The computer program product of claim 13 , wherein the instruction further causes a second code coverage breakpoint to be inserted at an end of the portion, wherein the second code coverage breakpoint causes an end of the code coverage analysis. 15 . The computer program product of claim 11 , the stored program instructions further comprising: program instructions to invoke a code change management tool to identify a changeset corresponding to the code, the changeset including the portion. 16 . The computer program product of claim 15 , wherein the portion comprises new code and wherein the new code has not been previously tested for code coverage analysis. 17 . The computer program product of claim 15 , wherein the portion comprises a changed form of an existing portion, wherein the changed form has not been previously tested for code coverage analysis. 18 . The computer program product of claim 11 , the stored program instructions further comprising: program instructions to access a historical data of a previous code coverage analysis of the code; and program instructions to identify, from the historical data, a gap in the previous code coverage analysis, wherein the gap corresponds to the portion, and wherein the portion comprises existing code that is unchanged since the previous code coverage analysis. 19 . A computer system comprising one or more processors, one or more computer-readable memories, and one or more computer-readable storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the stored program instructions comprising: program instructions to select from a code, a portion for code coverage analysis, the portion being a single line of the code such that the single line of the code is not directly referenceable by another line of the code; program instructions to construct an instruction to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion while omitting the code coverage analysis of a remainder of the code; program instructions to cause, using the instruction, a code coverage analysis tool to exe
for coverage analysis · CPC title
for test results analysis · CPC title
by runtime analysis (performance monitoring G06F11/3466) · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.