Differential line code coverage rate enhancement marking method, system and device and storage medium
A code coverage and marking method technology, applied in the field of systems, differential line code coverage enhancement marking methods, equipment and storage media, can solve the difficulty of code line difference rate inspection, reduce the priority of marking, and fail to go deep into code logic, etc. problems, to save testing time and improve user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] In view of the defects existing in the existing technology, the inventor actively researches and innovates based on years of rich practical experience and professional knowledge in this industry, and cooperates with the application of academic theories, in order to create a feasible differential line code coverage test technology to make it more practical. After continuous research, design and repeated trials and improvements, the present invention with real practical value is finally created.
[0049] see figure 1 , figure 1It is a schematic flow chart of a method for marking difference line code coverage enhancement disclosed in the embodiment of the present invention. The method is applicable to the scene of checking code difference rate. The method is executed by the difference line code coverage enhancement marking system. The system can be Implemented in software and / or hardware, integrated inside the computer. Such as figure 1 As shown, the differential line ...
Embodiment 2
[0065] Such as figure 2 As shown, the differential line code coverage enhancement marking method provided by Embodiment 2 of the present invention is based on the technical solution provided by Embodiment 1, and in step S106 "code blocks with low business priority in the syntax tree AST After filtering and generating a code coverage report for different lines, further optimization has been made. Explanations of terms that are the same as or corresponding to the above embodiments are not repeated here. The method also includes:
[0066] Extracting the file path in the difference line code coverage report, and analyzing the difference line code coverage rate of each file path;
[0067] According to the preset path business mapping relationship table, the difference line code coverage rate of the file path belonging to the same business line is summarized, and the difference line code coverage rate statistics of each business line are obtained.
[0068] Based on the above opt...
Embodiment 3
[0080] Please refer to the attached image 3 , image 3 Embodiment 3 of the present invention provides a differential line code coverage enhancement marking system, which is suitable for implementing the differential line code coverage enhancement marking method provided in the embodiment of the present invention. The system specifically includes the following modules:
[0081] The merging module 301 is used to merge the data file gcda generated during testing with the symbol file gcno generated by code compilation to obtain full code line coverage data;
[0082] An acquisition module 302, configured to acquire a version number commit_id and a difference comparison benchmark commit_baseline corresponding to the full line code coverage data;
[0083] A comparison module 303, configured to compare the version number commit_id with the difference comparison baseline commit_baseline to obtain a code difference log;
[0084] A marking module 304, configured to enhance and mark t...
PUM

Abstract
Description
Claims
Application Information

- 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