Method and device for generating function test code
A technology for testing codes and functions, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc., can solve problems such as low testing efficiency, achieve the effect of solving low testing efficiency and improving testing 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 , an embodiment of the present application provides a method for generating a function test code, the method comprising:
[0047] S101: the target function to be tested is set with a function test buried point, and the function test buried point is a position characterizing 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 function name, function parameters, and value of the 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 the test code, the embodiment of the present application first executes S101 to set buried points in ...
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