Method, device and system for code coverage test
A code coverage and testing device technology, applied in the field of communications, can solve problems such as poor reliability, and achieve the effect of improving reliability and having little effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Embodiments of the present invention will be described from the perspective of a code coverage test device. The code coverage test device may be integrated into a terminal, and the terminal may specifically be a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, moving picture experts compressed standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture experts compressed standard audio layer 3) players, laptop portable computers and desktop computers, etc.
[0031] A code coverage testing method, comprising: obtaining a binary file and a symbol table generated after compiling source code, and parsing the binary file according to the symbol table to determine the position of a function defined by each source code. When loaded into memory but not executed, set a debug point for the image loaded into memory by the binary file according to the position of the function, determine the e...
Embodiment 2
[0060] According to the method described in Embodiment 1, an example will be given below for further detailed description.
[0061] Such as figure 2 As shown, a code coverage testing method, the specific process can be as follows:
[0062] 201. The code coverage testing device obtains the binary file and the symbol table generated after the source code is compiled.
[0063] Wherein, the binary file and the symbol table can be obtained by compiling the source code to be tested by the compiler.
[0064] 202. The code coverage testing device parses the binary file according to the obtained symbol table, so as to determine the position of the function defined by each source code in the binary file.
[0065] Wherein, the position of the function refers to the actual position of the function after compilation.
[0066] 203. The code coverage test device monitors the loading of each binary file in the operating system. When the binary file is loaded into the memory but not execut...
Embodiment 3
[0081] According to the methods described in Embodiments 1 and 2, the following will be described by taking the Windows driver program test under the Microsoft (Windows) system as an example. It should be understood that the embodiments of the present invention may also be applicable to other hardware platforms, other operating systems, and other programs, which will not be repeated here.
[0082] In the example of the present invention, the code coverage testing device may include a driver module and a user-mode console command-line tool module, referred to as the command-line tool module. Among them, the driver module can be installed on the test machine, and the command line tool module can be directly copied to the test machine. Among them, the functions of these two modules can be as follows:
[0083] (1) The driver module can complete the following functions:
[0084] In the Windows kernel, the user can specify a binary file of the tested driver and a function entry ad...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
