Code testing method and device, storage medium, electronic equipment

A code testing and target code technology, applied in the field of software testing, can solve problems such as low code detection accuracy, and achieve the effect of improving code quality, avoiding limitations, and improving accuracy

Active Publication Date: 2022-02-18
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present disclosure is to provide a code testing method, a code testing device, a computer-readable storage medium, and an electronic device, thereby at least to a certain extent overcoming the problem of low code detection accuracy caused by limitations and defects of related technologies

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code testing method and device, storage medium, electronic equipment
  • Code testing method and device, storage medium, electronic equipment
  • Code testing method and device, storage medium, electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details being omitted, or other methods, components, devices, steps, etc. may be adopted. In other instances, well-known technical solution...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The disclosure relates to a code testing method, device, storage medium and electronic equipment, belonging to the technical field of software testing. The method includes: obtaining the abstract syntax tree of the target code, and obtaining at least one piece of static information from the abstract syntax tree; The at least one piece of static information analyzes the target code to obtain an analysis result corresponding to each static information; each of the analysis results is compared with reference information associated with each static information to determine whether the target code meet preset conditions. The method tests the target code through static information, which improves the test accuracy.

Description

technical field [0001] The present disclosure relates to the technical field of software testing, and in particular, to a code testing method, a code testing device, a computer-readable storage medium, and electronic equipment. Background technique [0002] In the process of writing or debugging the program file, testing the program file can ensure the accuracy of the program file. [0003] In related technologies, when testing a program file, it is generally a static test. Static testing refers to checking whether there are grammatical problems in the program file and whether it complies with the code writing specification by analyzing or checking the syntax, structure, process, interface, etc. of the source program without running the program file itself. [0004] However, with the rapid development of the software industry, due to the limitations of static code inspection results, it will lead to uncontrollable code quality problems or unpredictable destructive results; ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3608G06F11/3612
Inventor 周羽奇
Owner NETEASE (HANGZHOU) NETWORK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products