Code detection method, device and electronic equipment

A code detection and code technology, applied in program control devices, error detection/correction, electrical digital data processing, etc., can solve the problems of high programmer development ability requirements, high implementation costs, increased code development cycle, etc., to shorten the time Development cycle, reduce development cost, avoid the effect of test cases

Active Publication Date: 2017-11-21
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Unit testing needs to write test cases to test the code. Although the code is fully tested to a certain extent, it requires high development capabilities of programmers, which not only results in high implementation costs, but also increases the code development cycle.

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 detection method, device and electronic equipment
  • Code detection method, device and electronic equipment
  • Code detection method, device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0033] As mentioned earlier, unit testing tests the code by writing a large number of test cases to ensure that the code is fully tested, but it requires high development capabilities of programmers, which not only results in higher implementation costs, but also increases code Development cycle.

[0034] If unit testing is canceled in order to reduce code development costs, there will be...

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 discloses a code detection method, a code detection device and electronic equipment. The code detection method is applied to terminal equipment. The method comprises the steps of detecting a triggering operation submitted for a new-version code file; generating code change information according to the detected triggering operation, wherein the code change information indicates a difference between the new-version code file and an old-version code file; carrying out format conversion on source code information of the new-version code file according to the format of the code change information to obtain code detection information, wherein the source code information is generated when a code in the new-version code file is executed; judging whether the code detection information includes the code change information; and if not, adopting uncontained code change information as to-be-detected information corresponding to the new-version code file. By use of the code detection method, the code detection device and the electronic equipment, the code development cost is effectively reduced and the code quality is beneficially improved.

Description

technical field [0001] The present disclosure relates to the technical field of computer applications, and in particular to a code detection method, device and electronic equipment. Background technique [0002] The code is written by the programmer using the language supported by the program development tool, and is usually stored in the form of a file, that is, a code file. [0003] In practical applications, in order to ensure the usability of the code, programmers need to test the code after the code development is completed, so as to find problems in the code through detection, and then further improve the code, so as to ensure the quality of the code. [0004] Code detection methods in the prior art include: code scanning, code checking and unit testing. Among them, code scanning is only used to verify whether the code conforms to the specification, grammar and other issues, and it is difficult to find the actual loopholes in the code. Code inspection can be used to ...

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 Applications(China)
IPC IPC(8): G06F9/44G06F11/36
CPCG06F8/71G06F11/368
Inventor 贺辉超
Owner TENCENT TECH (SHENZHEN) 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