Back to results
US 10,761,973 B2Granted
Code coverage thresholds for code segments based on usage frequency and change frequency
AssigneeMicro Focus 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.
Claims20
A system comprising:
- a segment identification engine to:
- identify a first subset of a plurality of code segments in application code, wherein each code segment in the first subset has a usage frequency that satisfies a usage frequency criterion;
- identify a second subset of the plurality of code segments, wherein each code segment in the second subset has a change frequency that satisfies a change frequency criterion, wherein the change frequency specifies a number of commit actions applied to the code segment over a predetermined period of time;
- and
- identify a joined subset comprising each code segment that is included in both the first and second subsets;
- and
- a coverage determination engine to, for each code segment included in the joined subset, update a code coverage threshold for the code segment based on the usage frequency of the code segment and the change frequency of the code segment.
4 more elements
A method comprising:
- identifying, by a segment identification engine, a first subset of a plurality of code segments in application code, wherein each code segment in the first subset has a usage frequency that satisfies a usage frequency criterion;
- identifying, by the segment identification engine, a second subset of the plurality of code segments, wherein each code segment in the second subset has a change frequency that satisfies a change frequency criterion, wherein the change frequency specifies a number of commit actions applied to the code segment over a predetermined period of time;
- identifying, by the segment identification engine, a joined subset comprising each code segment that is included in both the first and second subsets;
- and
- updating, for each code segment included in the joined subset, a code coverage threshold of the code segment based on a previous code coverage level of the code segment, the usage frequency of the code segment, and the change frequency of the code segment.
2 more elements
A non-transitory machine-readable medium comprising instructions executable by a processing resource to:
- identify a first subset of a plurality of code segments of application code, wherein each code segment within the first subset has a usage frequency that satisfies a usage frequency criterion and wherein, for each code segment in the first subset, the usage frequency of the code segment specifies a number of other code segments in the application code that use the code segment;
- identify a second subset of the plurality of code segments of the application code, wherein each code segment within the second subset has a change frequency that satisfies a change frequency criterion and wherein, for each code segment in the second subset, the change frequency of the code segment specifies a number of commit actions applied to the code segment through a source control program over a predetermined time period;
- identify a joined subset comprising each code segment that is included in both the first and second subsets;
- and
- for each code segment in the joined subset, apply a code coverage adjustment function to the code segment to determine a code coverage threshold for the code segment based on a previous code coverage level of the code segment, the usage frequency of the code segment, and the change frequency of the code segment.
2 more elements
Dependencies are inferred from the claim text.