Unlock instant, AI-driven research and patent intelligence for your innovation.

Program scanning method, terminal equipment and computer readable storage medium

A scanning method and program technology, applied in the Internet field, can solve problems such as low query efficiency and timeliness, and achieve the effect of improving efficiency and accuracy

Pending Publication Date: 2020-04-14
上海品顺信息科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of the present invention is to provide a program scanning method, a terminal device and a computer-readable storage medium, aiming to solve the problem of low query efficiency and timeliness in the current program code analysis and testing process

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
  • Program scanning method, terminal equipment and computer readable storage medium
  • Program scanning method, terminal equipment and computer readable storage medium
  • Program scanning method, terminal equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0084] refer to figure 2 , figure 2 It is the first embodiment of the program scanning method of the present invention, and the program scanning method includes the following steps:

[0085] Step S10, after obtaining the source file of the target program, extracting the organizational relationship in the source file;

[0086] Step S20, generating a method call chain of the target program according to the organizational relationship;

[0087] In this embodiment, the target program is a program written in a common program development language, such as Java, Object C, C++, Python, and PHP. The organizational relationship reflects the calling relationship between variables in the source file. For example, in a source file A, there are two classes Class A and Class B, where Class A contains Method A, Method B, and Method C, Class B contains Method E, Method E, and Method F, and Method C can call Method A, Method A can call Method E; Method D can call Method B, Method B can ca...

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 invention provides a program scanning method, terminal equipment and a computer readable storage medium. The program scanning method provided by the invention comprises the following steps: afterobtaining a source file of a target program, extracting an organization relationship in the source file; generating the method call chain of the target program according to the organization relationship; obtaining the code coverage rate of the target program; and searching a target method according to the call chain and the code coverage rate. According to the scheme, the method for generating themethod call chain is provided for various common development languages, the method calling chain and the code coverage rate are combined in a static scanning mode, the unexecuted target method is analyzed, and in the analysis process, the target method is searched according to the position of the unexecuted method in the code coverage rate result in the calling chain on the basis of obtaining thecode coverage rate result. Therefore, the source code does not need to be compiled each time, and the efficiency and accuracy of program code analysis and test work are greatly improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a program scanning method, terminal equipment and a computer-readable storage medium. Background technique [0002] At present, the analysis of code coverage is mainly performed manually. This process requires the operator to analyze the unexecuted functions and the scenarios that need to be supplemented according to experience while detecting the code and collecting coverage data. However, most programming languages ​​do not have a ready-made solution for function call chains. It is necessary to query the call relationship between functions based on IDE (Integrated Development Environment) tools. In this process, operators need to compile programs for specific scenarios to find It takes a long time to complete the compilation of a call relationship, resulting in low timeliness of query work efficiency. Contents of the invention [0003] The main purpose of the present in...

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
IPC IPC(8): G06F11/36
CPCG06F11/3624Y02D10/00
Inventor 陈超咏
Owner 上海品顺信息科技有限公司