Method and device for generating function test code
A technology for testing code and functions, applied in software testing/debugging, error detection/correction, electrical digital data processing, etc., can solve problems such as low test efficiency, and achieve the effect of solving low test efficiency and improving test efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] Please refer to figure 1 , the embodiment of the present application provides a method for generating a function test code, the method comprising:
[0047] S101: Setting a function test buried point for the target function to be tested, where the function test buried point is a position representing each component of the target function;
[0048] S102: Based on the function test buried point, read and parse the code source file of the target function, and obtain the value of the function name, function parameter, and function return type of the target function;
[0049] S103: Construct a test function of the target function based on the value of the function name, function parameters, and function return type of the target, and generate a test code file of the target function.
[0050] In the specific implementation process, in order to be able to automatically generate test codes, the embodiment of the present application first executes S101 to set buried points in th...
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