CN111881046A - Code detection method, device, equipment and readable medium - Google Patents
Code detection method, device, equipment and readable medium Download PDFInfo
- Publication number
- CN111881046A CN111881046A CN202010751589.4A CN202010751589A CN111881046A CN 111881046 A CN111881046 A CN 111881046A CN 202010751589 A CN202010751589 A CN 202010751589A CN 111881046 A CN111881046 A CN 111881046A
- Authority
- CN
- China
- Prior art keywords
- paths
- total number
- parameter
- branch
- errors
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 54
- 238000013515 script Methods 0.000 claims abstract description 29
- 230000002159 abnormal effect Effects 0.000 claims abstract description 22
- 238000012545 processing Methods 0.000 claims abstract description 7
- 230000006870 function Effects 0.000 claims description 24
- 238000000034 method Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 5
- 238000012360 testing method Methods 0.000 abstract description 9
- 238000011161 development Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 8
- 238000012937 correction Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 206010029412 Nightmare Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3628—Software debugging of optimised code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3636—Software debugging by tracing the execution of the program
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a code detection method, which comprises the following steps: acquiring a script to be detected, judging whether the parameters of the function in the script have default values, if the parameters do not have the default values, filling edge values in a parameter value range randomly; detecting each branch, recording abnormal branches and processing; and counting the total number of the paths, traversing all the paths, recording errors on the paths, and generating a detection report based on the errors. The invention also discloses a code detection device, computer equipment and a readable storage medium. The invention is simple and rapid, saves the time and energy of development and test personnel, and simultaneously records or corrects various errors which are easy to be ignored in the code to a certain extent.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a code detection method, apparatus, device, and readable medium.
Background
In order to ensure the quality and the performability of codes, developers can write unit test programs by themselves to carry out self test on partial programs so as to detect the correctness of the codes.
However, for simpler scripts, the developer still needs to spend more effort than the script itself to develop the proposed unit test program, which brings about no small obstacle to the development efficiency. In actual work, most of testing or developers do not actively develop unit test programs in the development work of the small scripts, the hidden danger which cannot be ignored is buried in the correctness of a large number of small scripts, a rare exception or error report is often caused, and nightmare-like workload is brought to the development and testing personnel.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a code detection method, device, apparatus and readable medium, which are simple and fast, save time and effort of development and testing personnel, and record or correct various errors that are easily ignored in the code to a certain extent.
Based on the above object, an aspect of the embodiments of the present invention provides a code detection method, including the following steps: acquiring a script to be detected, judging whether the parameters of the function in the script have default values, if the parameters do not have the default values, filling edge values in a parameter value range randomly; detecting each branch, recording abnormal branches and processing; and counting the total number of the paths, traversing all the paths, recording errors on the paths, and generating a detection report based on the errors.
In some embodiments, detecting each branch, recording abnormal branches and processing comprises: scanning key words to position key nodes, and adding breakpoints into the positioned key nodes; and if the error correction program is executed to the breakpoint, interpolating the breakpoint, and setting the judgment result of each branch to be yes, no or abnormal.
In some embodiments, counting the total number of paths comprises: counting the total number of branches, and calculating the total number of branch paths based on the power of 2; counting the total number of loops, and calculating the total number of loop paths based on the product of the total number of loops and the total number of branches; the total number of paths is calculated based on the sum of the total number of branch paths and the total number of circular paths.
In some embodiments, if there is no default value for entering parameter, randomly filling the edge values in the parameter value range includes: if the entries have no default value, all entries of the functions in the script are refilled.
In some embodiments, if there is no default value for entering parameter, randomly filling the edge values in the parameter value range includes: and if the entries have no default values, the entries without the default values of the functions in the script are refilled.
In some embodiments, traversing all paths and recording errors on the paths, and generating a detection report based on the errors further comprises: judging whether the number of the traversal paths is equal to the total number of the paths; if the number of the traversal paths is not equal to the total number of the paths, the traversal paths are continued.
In some embodiments, traversing all paths and recording errors on the paths, and generating a detection report based on the errors further comprises: judging whether the number of the traversal paths is equal to the total number of the paths; and if the number of the traversal paths is equal to the total number of the paths, ending the traversal and generating a detection report.
In another aspect of the embodiments of the present invention, there is also provided a code detection apparatus, including: the parameter entering detection module is configured for acquiring a script to be detected, judging whether the parameter entering of the function in the script has a default value or not, and if the parameter entering has no default value, randomly filling an edge value in a parameter value range; the branch detection module is configured to detect each branch, record abnormal branches and process the abnormal branches; and the statistics traversing module is configured for counting the total number of the paths, traversing all the paths, recording errors on the paths, and generating a detection report based on the errors.
In some embodiments, the branch detection module is further configured to: scanning key words to position key nodes, and adding breakpoints into the positioned key nodes; and if the error correction program is executed to the breakpoint, interpolating the breakpoint, and setting the judgment result of each branch to be yes, no or abnormal.
In some embodiments, the statistical traversal module is further configured to: counting the total number of branches, and calculating the total number of branch paths based on the power of 2; counting the total number of loops, and calculating the total number of loop paths based on the product of the total number of loops and the total number of branches; the total number of paths is calculated based on the sum of the total number of branch paths and the total number of circular paths.
In some embodiments, the entry detection module is further configured to: if the entries have no default value, all entries of the functions in the script are refilled.
In some embodiments, the entry detection module is further configured to: and if the entries have no default values, the entries without the default values of the functions in the script are refilled.
In some embodiments, the statistical traversal module is further configured to: judging whether the number of the traversal paths is equal to the total number of the paths; if the number of the traversal paths is not equal to the total number of the paths, the traversal paths are continued.
In some embodiments, the statistical traversal module is further configured to: judging whether the number of the traversal paths is equal to the total number of the paths; and if the number of the traversal paths is equal to the total number of the paths, ending the traversal and generating a detection report.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the method is simple and rapid, saves time and energy of development testers, and simultaneously records or corrects various errors which are easy to ignore in codes to a certain extent.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a code detection method provided by the present invention;
FIG. 2 is a schematic diagram of an embodiment of a code detection apparatus provided in the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
FIG. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above object, a first aspect of an embodiment of the present invention proposes an embodiment of a code detection method. Fig. 1 is a schematic diagram illustrating an embodiment of a code detection method provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, acquiring the script to be detected, judging whether the parameter of the function in the script has a default value, if the parameter has no default value, filling the edge value in the parameter value range randomly;
s2, detecting each branch, recording abnormal branches and processing; and
and S3, counting the total number of the paths, traversing all the paths, recording errors on the paths, and generating a detection report based on the errors.
In the present embodiment, code detection in a non-compiled language is taken as an example. The computer cannot understand the high-level language, cannot directly execute the high-level language, and only can directly understand the machine language, so that a program written by using any high-level language must be converted into the computer language, namely machine code, if the program is to be run by the computer. The conversion mode includes compiled language and interpreted language. The compiling type language uses a special compiler to compile high-level language source codes into machine codes which can be executed by platform hardware at one time aiming at a specific platform, and packages the machine codes into an executable program format which can be recognized by the platform; interpreted languages, i.e., non-compiled languages, use a specialized interpreter to interpret a source program line by line into platform-specific machine code and execute it immediately. It is the code that is dynamically translated and executed in a row by the interpreter upon execution, rather than the translation being completed prior to execution.
In this embodiment, the entries are checked, and the entries of the function may have default values or may not have default values. The input is divided into normal condition and abnormal condition, under normal condition, only necessary item without default value can be selected to be input, and all input parameters can also be selected to be input. In abnormal conditions, the input parameter can be selected not to be input, or the input parameter type with an input error type can be selected, such as only inputting character strings or only inputting numbers. After the variable type of each parameter is set, the variable is automatically filled in by adopting a random number taking mode. For the selection principle of the error correction system to take random numbers, we will preferentially select the edge values in the value range of the input variables, for example, the value range is 1-200, and preferentially select the edge values such as 1 or 200, and the character string will also mainly select the simplest input by taking random values, such as 'a', 'aa', 'xx', 'China', etc.
The critical nodes of the program path, i.e., branches and loops in the program code, are located. For each branch decision there are at least two different paths Y/N. If there are a plurality of branch nodes, paths may overlap, and increase by the power of 2. For each loop structure, there is no path added, but only the sequential execution of different statements on 1 path, it should be noted that, for a loop structure with n repetitions in total, our error correction system records m/n at runtime, which means that there is n cycles, and the current cycle is the m-th cycle. Therefore, even if the program interruption is caused by an error in the circulation, the error correction system can record the position of the error, and is convenient for error troubleshooting. Regarding the positioning of the program path key node, at the beginning of program operation, the positioning is performed by scanning the key words, such as if-elif-else, try-catch, switch, etc. in python.
And (3) positioning the abnormal branches, namely recording the error positions of the program, wherein at each conditional branch judgment position, 1 abnormal branch is required to prevent errors. At critical functions, there should also be an exception branch to ensure correct execution of the critical function. Each error branch adds only 1 program execution path.
And counting the total number of the paths, and traversing all the paths so as to find out errors in the script. And recording the error on each execution path for development and test personnel to revise.
In some embodiments of the present invention, detecting each branch, recording abnormal branches, and processing includes: scanning key words to position key nodes, and adding breakpoints into the positioned key nodes; and if the error correction program is executed to the breakpoint, interpolating the breakpoint, and setting the judgment result of each branch to be yes, no or abnormal.
In this embodiment, after the positioning is completed, a breakpoint is marked on the line of the corresponding code, breakpoint interpolation is performed when the subsequent Error correction system is executed to this point, and the judgment result of the corresponding branch is modified to the set value True/False/Error, etc.
In some embodiments of the invention, the statistical path total comprises: counting the total number of branches, and calculating the total number of branch paths based on the power of 2; counting the total number of loops, and calculating the total number of loop paths based on the product of the total number of loops and the total number of branches; the total number of paths is calculated based on the sum of the total number of branch paths and the total number of circular paths.
In the present embodiment, it is assumed that the program code under test has 3 branch structures, and each branch has a True/False/Error branch; 1 cycle structure, total 10 cycles. The total number of paths is: 2^3+3 ^ 11.
In some embodiments of the present invention, if the parameter is entered without default, randomly filling the edge values in the parameter value range comprises: if the entries have no default value, all entries of the functions in the script are refilled.
In some embodiments of the present invention, if the parameter is entered without default, randomly filling the edge values in the parameter value range comprises: and if the entries have no default values, the entries without the default values of the functions in the script are refilled.
In some embodiments of the invention, traversing all paths and recording errors on the paths, and generating a detection report based on the errors further comprises: judging whether the number of the traversal paths is equal to the total number of the paths; if the number of the traversal paths is not equal to the total number of the paths, the traversal paths are continued.
In some embodiments of the invention, traversing all paths and recording errors on the paths, and generating a detection report based on the errors further comprises: judging whether the number of the traversal paths is equal to the total number of the paths; and if the number of the traversal paths is equal to the total number of the paths, ending the traversal and generating a detection report.
It should be particularly noted that, the steps in the embodiments of the code detection method described above can be mutually intersected, replaced, added, or deleted, and therefore, the code detection method based on these reasonable permutation and combination transformations shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a code detection apparatus. Fig. 2 is a schematic diagram of an embodiment of a code detection apparatus provided in the present invention. As shown in fig. 2, the embodiment of the present invention includes the following modules: the parameter entering detection module S11 is configured to acquire a script to be detected, judge whether the parameter entering of the function in the script has a default value, and randomly fill an edge value in a parameter value range if the parameter entering has no default value; a branch detection module S12 configured to detect each branch, record an abnormal branch, and process the abnormal branch; and a statistical traversing module S13 configured to count the total number of paths, traverse all paths and record errors on the paths, and generate a detection report based on the errors.
In some embodiments, the branch detection module S12 is further configured to: scanning key words to position key nodes, and adding breakpoints into the positioned key nodes; and if the error correction program is executed to the breakpoint, interpolating the breakpoint, and setting the judgment result of each branch to be yes, no or abnormal.
In some embodiments, the statistical traversal module S13 is further configured to: counting the total number of branches, and calculating the total number of branch paths based on the power of 2; counting the total number of loops, and calculating the total number of loop paths based on the product of the total number of loops and the total number of branches; the total number of paths is calculated based on the sum of the total number of branch paths and the total number of circular paths.
In some embodiments, the participation detection module S11 is further configured to: if the entries have no default value, all entries of the functions in the script are refilled.
In some embodiments, the participation detection module S11 is further configured to: and if the entries have no default values, the entries without the default values of the functions in the script are refilled.
In some embodiments, the statistical traversal module S13 is further configured to: judging whether the number of the traversal paths is equal to the total number of the paths; if the number of the traversal paths is not equal to the total number of the paths, the traversal paths are continued.
In some embodiments, the statistical traversal module S13 is further configured to: judging whether the number of the traversal paths is equal to the total number of the paths; and if the number of the traversal paths is equal to the total number of the paths, ending the traversal and generating a detection report.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor implementing the steps of the above method.
The invention also provides a computer readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium stores S31 a computer program that, when executed by a processor, performs the method as described above S32.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate, all or part of the processes of the methods of the above embodiments may be implemented by a computer program to instruct related hardware, and the program of the code detection method may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.
Claims (10)
1. A code detection method, comprising the steps of:
acquiring a script to be detected, judging whether the input parameter of a function in the script has a default value, and if the input parameter has no default value, randomly filling an edge value in the input parameter value range;
detecting each branch, recording abnormal branches and processing; and
and counting the total number of the paths, traversing all the paths, recording errors on the paths, and generating a detection report based on the errors.
2. The code detection method of claim 1, wherein detecting each branch, recording abnormal branches and processing comprises:
scanning key words to position key nodes, and adding breakpoints into the positioned key nodes;
and if the error correction program is executed to the breakpoint, interpolating the breakpoint, and setting the judgment result of each branch to be yes, no or abnormal.
3. The code detection method of claim 1, wherein counting the total number of paths comprises:
counting the total number of the branches, and calculating the total number of the branch paths based on the power of 2 to the total number of the branches;
counting the total number of loops, and calculating the total number of loop paths based on the product of the total number of loops and the total number of branches;
calculating a total number of paths based on a sum of the total number of branch paths and the total number of circular paths.
4. The method of claim 1, wherein randomly populating the edge values within the range of entry parameter values if the entry parameter has no default value comprises:
and if the input parameter has no default value, refilling all input parameters of the functions in the script.
5. The method of claim 1, wherein randomly populating the edge values within the range of entry parameter values if the entry parameter has no default value comprises:
and if the parameter is not provided with the default value, refilling the parameter without the default value of the function in the script.
6. The code detection method of claim 1, wherein traversing all of the paths and recording errors on the paths, and generating a detection report based on the errors further comprises:
judging whether the number of the traversal paths is equal to the total number of the paths;
and if the number of the traversal paths is not equal to the total number of the paths, continuously traversing the paths.
7. The code detection method of claim 1, wherein traversing all of the paths and recording errors on the paths, and generating a detection report based on the errors further comprises:
judging whether the number of the traversal paths is equal to the total number of the paths;
and if the number of the traversal paths is equal to the total number of the paths, ending traversal and generating a detection report.
8. A code detection apparatus, comprising:
the parameter entering detection module is configured to acquire a script to be detected, judge whether the parameter entering of a function in the script has a default value, and randomly fill an edge value in the parameter entering value range if the parameter entering has no default value;
the branch detection module is configured to detect each branch, record abnormal branches and process the abnormal branches; and
and the statistical traversing module is configured to count the total number of the paths, traverse all the paths, record errors on the paths and generate a detection report based on the errors.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010751589.4A CN111881046A (en) | 2020-07-30 | 2020-07-30 | Code detection method, device, equipment and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010751589.4A CN111881046A (en) | 2020-07-30 | 2020-07-30 | Code detection method, device, equipment and readable medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111881046A true CN111881046A (en) | 2020-11-03 |
Family
ID=73204548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010751589.4A Withdrawn CN111881046A (en) | 2020-07-30 | 2020-07-30 | Code detection method, device, equipment and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111881046A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117076333A (en) * | 2023-10-16 | 2023-11-17 | 成都无糖信息技术有限公司 | Vulnerability verification method based on script breakpoint and browser automation |
-
2020
- 2020-07-30 CN CN202010751589.4A patent/CN111881046A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117076333A (en) * | 2023-10-16 | 2023-11-17 | 成都无糖信息技术有限公司 | Vulnerability verification method based on script breakpoint and browser automation |
CN117076333B (en) * | 2023-10-16 | 2024-02-23 | 成都无糖信息技术有限公司 | Vulnerability verification method based on script breakpoint and browser automation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109063477B (en) | Automatic intelligent contract code defect detection system and method | |
US10459695B2 (en) | Correction of code errors using machine learning | |
CN100547562C (en) | The method and system of the unit testing use-case of problem when generation can be reproduced operation automatically | |
US9355019B2 (en) | Method for test case reduction based on program behavior slices | |
Swain et al. | Test case generation based on use case and sequence diagram | |
US9582394B2 (en) | Encapsulating and managing diagnostic information | |
US20080126867A1 (en) | Method and system for selective regression testing | |
CN108804326B (en) | Automatic software code detection method | |
CN104021084A (en) | Method and device for detecting defects of Java source codes | |
US10496379B2 (en) | Facilitated production of code for software testing | |
CN110673837B (en) | Code repairing method and device, electronic equipment and computer readable storage medium | |
CN111767076A (en) | Code reconstruction method and device | |
Silva et al. | Flacoco: Fault localization for java based on industry-grade coverage | |
CN111881046A (en) | Code detection method, device, equipment and readable medium | |
CN110633199A (en) | Testing apparatus, method, and medium for block chain supporting intelligent contract | |
US20150331782A1 (en) | Validating correctness of expression evaluation within a debugger | |
Shimmi et al. | Patterns of code-to-test co-evolution for automated test suite maintenance | |
CN105630678A (en) | Intelligent ammeter software reliability detector and detection method for intelligent ammeter software reliability | |
Clerissi et al. | Test driven development of web applications: A lightweight approach | |
CN117193852A (en) | Code analysis method, system and readable storage medium | |
US9710360B2 (en) | Optimizing error parsing in an integrated development environment | |
CN116610558A (en) | Code detection method, device, electronic equipment and computer readable storage medium | |
CN113326046B (en) | Method and device for acquiring compiling time length | |
Alaküla et al. | Property probes: Live exploration of program analysis results | |
CN116775040B (en) | Pile inserting method for realizing code vaccine and application testing method based on code vaccine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20201103 |