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

Device and method for determining coverage rate information of increment codes

A coverage and code technology, applied in the computer field, can solve problems such as the impact on the accuracy of results, lack of statistics, and lack of coverage indicators, so as to improve efficiency and accuracy and reduce data errors

Active Publication Date: 2018-06-22
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But when there is such a situation in the source code that one line of statement is written in multiple lines of code, if an increment occurs in multiple lines of code, it is often not counted in the coverage result, which affects the accuracy of the result
In addition, some languages ​​are limited by coverage tools, and some coverage indicators are missing
For example, coverage, the most widely used language test coverage tool for python, cannot obtain function coverage
The missing coverage index also has a certain impact on the measurement of the coverage of the tested source file

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
  • Device and method for determining coverage rate information of increment codes
  • Device and method for determining coverage rate information of increment codes
  • Device and method for determining coverage rate information of increment codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The 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 related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0029] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0030] figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for determining coverage information of incremental codes or the apparatus for determining coverage information of incremental codes of the present application can be applied.

...

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 discloses a device and method for determining coverage rate information of increment codes. The method includes: adopting a code management device for acquiring increment change files ofto-be-tested version codes relative to base line version codes; acquiring the increment codes of the to-be-tested version codes relative to the base line version codes on the basis of the increment change files; subjecting the to-be-tested version codes to unit testing to obtain integral code coverage rate information; on the basis of the integral code coverage rate information and the incrementchange files, mapping change codes of the increment codes to row objects of an abstract syntax tree; performing traversal of the row objects of the abstract syntax tree, and determining characteristicinformation amount of the increment codes and covered characteristic information quantity of the increment codes from the row objects of the abstract syntax tree; dividing the characteristic information amount of the increment codes by the covered characteristic information quantity of the increment codes to obtain the coverage rate information of the increment codes. By adoption of the method, increment code testing efficiency and accuracy are improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to the field of computer network technology, and in particular to a method and device for determining coverage information of incremental codes. Background technique [0002] The product iteration of the Internet industry is getting faster and faster. In order to ensure the quality of the product, the role of unit testing cannot be underestimated. For legacy projects, a large amount of unit test code for legacy code is missing. The cost of unit test code that complements the original code is very high, and the effect is not significant. [0003] In this case, it is feasible to check and measure the coverage of the newly added code. However, the existing coverage statistics tools can only count the coverage of all codes by unit test cases, and developers and testers often focus on the coverage data of incremental codes. Three coverage indicators are commonly used for c...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3676
Inventor 张益刘晓娟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products