Method and test device for confirming code coverage rate
A code coverage and code technology, applied in the direction of software testing/debugging, can solve problems such as unfavorable stability and security of the program under test, and achieve the effect of ensuring stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] Before performing the method of the present embodiment, the file path of dbghelp.dll, the file path of the program to be tested, and the program database (Program DataBase, PDB for short) file path can be delivered to the code coverage testing tool so as to initialize the test environment information, thereby You can use the code coverage test tool to test in this test environment. The code coverage test tool can start the tested module in a suspended debugging mode to prepare for subsequent tests:
[0032] figure 1 A schematic flowchart of a method for determining code coverage provided in this embodiment, as shown in the figure, the method may include:
[0033] Step 101: Determine the total code size of the program under test, the base address of the program under test, and the relative virtual address of each code line.
[0034] Analyze the PE header information of the program under test to find the base address of the program.
[0035] According to the PDB file of...
Embodiment 2
[0060] figure 2 Shown is a schematic structural diagram of the test device provided in this embodiment. As shown in the figure, the device may include:
[0061] The parameter determination unit 201 is configured to determine the total code amount of the program under test, the base address of the program under test, and the relative virtual address of each code line.
[0062] The interrupt setting unit 202 is configured to set an interrupt in each code line according to the base address determined by the parameter determination unit 201 and the relative virtual address of each code line.
[0063] The interrupt monitoring unit 203 is configured to monitor whether an interrupt occurs during the program under test.
[0064] The marking interrupt operation unit 204 is used to mark the code line where the interrupt is located when the interrupt monitoring unit 203 detects that an interrupt is currently occurring. According to the relative virtual address of the interrupt, inform...
PUM

Abstract
Description
Claims
Application Information

- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com