Supercharge Your Innovation With Domain-Expert AI Agents!

Coverage testing method and system

A testing method and testing system technology, which are applied in the field of software code coverage testing methods and systems, and can solve problems such as low accuracy of coverage results.

Active Publication Date: 2018-07-27
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The purpose of the present invention is to provide a kind of coverage test method and system, to solve the problem that the accuracy of the coverage result obtained by existing coverage test technology is 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
  • Coverage testing method and system
  • Coverage testing method and system
  • Coverage testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to further explain the technical means and effects adopted by the present invention to achieve the intended invention purpose, the specific implementation methods, methods, steps and effects of the coverage testing method and system proposed according to the present invention will be described below in conjunction with the accompanying drawings and preferred embodiments , as detailed below.

[0055] The aforementioned and other technical contents, features and effects of the present invention will be clearly presented in the following detailed description of the preferred embodiments with reference to the drawings. Through the description of specific implementation methods, the technical means and effects of the present invention to achieve the intended purpose can be understood more deeply and specifically, but the attached drawings are only for reference and description, and are not used to explain the present invention limit.

[0056] See figure 2 , which...

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 present invention proposes a coverage test method and system, which includes: compiling the source code, inserting probe functions into each piece of code; recording the position information of all probe functions; running the program, recording the counting information of the probe functions; Generate the first coverage information according to the position information of the probe function in the running program and the count information of the corresponding probe function; generate the second coverage information according to the position information of the probe function in the program that has not been called; The first coverage information is combined with the second coverage information, and the final coverage result is obtained through calculation. The invention more accurately and objectively reflects the real coverage rate of the program code, and is suitable for the test of background service programs.

Description

technical field [0001] The invention relates to software testing technology, in particular to a method and system for testing the coverage rate of software codes. Background technique [0002] In the quality assurance system of C / C++ software development, coverage (the operating ratio of the code in the software) test is usually an effective means of finding problems. Through the analysis of code coverage, you can quickly locate which codes are not running , so as to construct corresponding test cases to cover these codes to find errors in software design. [0003] At present, the open source gcov tool is widely used in software code coverage testing. The gcov tool is a tool for detecting code coverage integrated in gcc (GNU Compiler Collection, GUN Compiler Suite). It passes through the compilation phase (that is, compiling the source code into Executable code), insert a probe function into the source code (inserting a probe function is also called stub, which is used to i...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 吴云佳
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • 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