Row coverage rate determination method and device, computer equipment and storage medium

During the test process of the program to be tested, the execution array and reference array of the target time period are obtained, the newly executed bytecode instructions and source code lines are determined, and the line coverage rate is calculated, which solves the problem of low timeline determination of row coverage in traditional technology, and more efficient test case adjustment and testing efficiency improvement are achieved.

CN119690850AActive Publication Date: 2025-03-25KINGDEE SOFTWARE(CHINA) CO LTD
4 Cites 0 Cited by

Patent Information

Application Number
CN202411976719.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-03-25
Estimated Expiration
2044-12-26

AI Technical Summary

Technical Problem

In traditional technology, the determination of line coverage is low in time, and the code execution cannot be reflected in time during the test process of the program to be tested, which affects the adjustment of test cases and the testing efficiency.

Method used

By obtaining the execution array and reference array of the target time period, the target index of the newly executed bytecode instruction is determined during that time period, combined with the index table, the target line identification of the newly executed source code line is determined, and the row coverage ratio of the program to be tested is finally calculated.

Benefits of technology

It realizes determining the current line coverage ratio of the program to be tested at the end of each time period, improving the timeliness determination of line coverage ratio, conveniently adjusting test cases in a timely manner, and improving testing efficiency.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a line coverage rate determination method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring an execution array and a reference array corresponding to a target time period; the reference array is the same as an execution array corresponding to a previous adjacent time period of the target time period, and elements in the execution array represent execution conditions of byte code instructions corresponding to indexes of the elements; based on the execution array and the reference array, determining a target index corresponding to the newly executed byte code instruction in the target time period; based on an index table corresponding to the to-be-tested program and the target index, determining a target row identifier corresponding to a newly executed target source code row in the target time period; and determining a row coverage rate corresponding to the to-be-tested program based on the target row identifier. By adopting the method, the timeliness of determining the line coverage rate can be improved.
Need to check novelty before this filing date? Find Prior Art