Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code coverage rate obtaining method and device, computer equipment and storage medium

A technology for code coverage and acquisition methods, applied in computing, instrumentation, electrical and digital data processing, etc., can solve problems such as low statistical efficiency of differential coverage data, save time and workload, and improve statistical efficiency.

Pending Publication Date: 2020-04-17
GUANGZHOU PINWEI SOFTWARE
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually, developers use the coverage of the difference code information between the two versions of the code before modification and after modification. However, at present, the coverage between the two versions of code before modification and after modification is obtained by collecting two If you want to analyze the differential coverage data of N versions, you need N versions, which will easily cause the statistical efficiency of differential coverage data to be low.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code coverage rate obtaining method and device, computer equipment and storage medium
  • Code coverage rate obtaining method and device, computer equipment and storage medium
  • Code coverage rate obtaining method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0039] The code coverage acquisition method provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 communicates with the server 104 through the network. Wherein, the terminal 102 can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be realized by an independent server or a server cluster composed of multiple servers.

[0040] Specifically, the terminal 102 may send a request to the server 104 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a code coverage rate obtaining method and a device, computer equipment and a storage medium. The method comprises the steps of acquiring a code total coverage rate data tree,the code total coverage rate data tree comprises at least one first code file, and the first code file comprises a first code file identifier, a first code line number identifier and a code line number execution situation corresponding to the first code line number identifier; obtaining a target code tree, the target code tree comprises second code files corresponding to different versions, and the second code files comprise second code file identifiers and second code line number identifiers; determining a target code sub-tree from the target code tree, wherein the target code sub-tree comprises a third code file corresponding to the target version; and determining version difference coverage rate data according to the target code subtree and the code total coverage rate data tree. By adopting the method, the statistical efficiency of the difference coverage rate data can be improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a code coverage acquisition method, device, computer equipment and storage medium. Background technique [0002] At present, the code coverage rate reflects an important indicator of the coverage degree of the test case to the software under test, and is a reference value used to measure the integrity of the test. The code coverage rate data can be used to evaluate whether the test is sufficient. In the process of software development, the code coverage data obtained through the client is generated based on all codes of the monitored project, and the coverage data based on all codes is not very meaningful to developers. Usually, developers use the coverage of the difference code information between the two versions of the code before modification and after modification. However, at present, the coverage between the two versions of code before modification and after mo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3684Y02D30/70
Inventor 洪燕忠
Owner GUANGZHOU PINWEI SOFTWARE
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More