Back to results
US 2019/0095315 A1Published application
Code coverage thresholds for code segments based on usage frequency and change frequency
AssigneeEntit Software LLC
InventorsAlon Zanbar, Lilo Elia, Eliraz Busi
Life of this patent
Estimating the term…
Abstract
In some examples, a system includes a segment identification engine and a coverage determination engine. The segment identification engine may a code segment in application code for updating a code coverage threshold applicable to the code segment. The coverage determination engine may update the code coverage threshold for the code segment based on a usage frequency of the code segment and a change frequency of the code segment.
Claims15
A system comprising;
- a segment identification engine to identify a code segment in application code for updating a code coverage threshold applicable to the code segment;
- and
- a coverage determination engine to update the code coverage threshold for the code segment based on a usage frequency of the code segment and a change frequency of the code segment.
A method comprising:
- determining a usage frequency of a particular code segment of application code;
- determining a change frequency of the particular code segment;
- selecting the particular code segment for a code coverage threshold update based on at least one of the determined usage frequency and the determined change frequency;
- and
- updating the code coverage threshold of the particular code segment based on a previous code coverage level of the particular code segment, the determined usage frequency, and the determined change frequency.
2 more elements
A non-transitory machine-readable medium comprising instructions executable by a processing resource to:
- identify a first set of code segments of application code, wherein:
- each code segment within the first set has a usage frequency that satisfies a usage frequency criterion;
- and
- the usage frequency of a code segment specifies a number of other code segments in the application code that use the code segment;
- identify a second set of code segments of the application code, wherein:
- each code segment within the second set has a change frequency that satisfies a change frequency criterion;
- and
- the change frequency of a code segment specifies a number of commit actions applied to the code segment through a source control program over a predetermined time period;
- and
- for each particular code segment in at least one of the first set and the second set:
- apply a code coverage adjustment function to the particular code segment that determines a code coverage threshold for the particular code segment based on a previous code coverage level of the particular code segment, the usage frequency of the particular code segment, and the change frequency of the particular code segment.
8 more elements
Dependencies are inferred from the claim text.