CN111506342A - Version difference detection method and device, electronic equipment and storage medium - Google Patents

Version difference detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111506342A
CN111506342A CN202010329074.5A CN202010329074A CN111506342A CN 111506342 A CN111506342 A CN 111506342A CN 202010329074 A CN202010329074 A CN 202010329074A CN 111506342 A CN111506342 A CN 111506342A
Authority
CN
China
Prior art keywords
file
list
name
class
function
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.)
Pending
Application number
CN202010329074.5A
Other languages
Chinese (zh)
Inventor
贾永强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010329074.5A priority Critical patent/CN111506342A/en
Publication of CN111506342A publication Critical patent/CN111506342A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a version difference detection method, a version difference detection device, electronic equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a first version file and a second version file corresponding to the same SDK, comparing method names and C function names in header files of the first version file and the second version file to obtain a first difference list containing method name differences and C function name differences, comparing the method names and the C function names in static library files of the first version file and the second version file to obtain a second difference list containing method name differences and C function name differences, and generating a difference file based on the first difference list and the second difference list. The embodiment of the invention can facilitate developers to quickly know the content difference among SDKs of different versions, conveniently eliminate the problems of related content loss and the like caused by the different content based on the different content, improve the stability of the SDK of the upgraded version, facilitate the developers to quickly upgrade the SDK and quickly access and use the SDK, improve the working efficiency and reduce the cost.

Description

Version difference detection method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting version differences, an electronic device, and a storage medium.
Background
With the development of the internet, it is the most common way to rely on the basic SDK to perform function development in iOS/MacOS development, and especially, the number of SDKs used by a large APP basically exceeds 100, and the SDKs are updated frequently.
The great use of the SDK and the frequent modification and maintenance of multiple persons bring much convenience and benefits to APP development, but the content of the SDK of different versions is changed frequently, developers cannot fully know the difference of the SDK content of different versions, when a new version of the SDK is used, the conditions that other libraries relying on the content are compiled wrongly and the like due to the fact that the lack of some content relative to the previous version cannot be understood can occur, the problems are difficult to be solved, and in addition, the bug of other services using the content can be caused to occur.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the present application provides a version difference detection method, apparatus, electronic device and storage medium.
In a first aspect, the present application provides a version difference detection method, including:
acquiring a first version file and a second version file corresponding to the same Software Development Kit (SDK);
comparing the method names and the C function names in the header files of the first version file and the second version file to obtain a first difference list containing the method name difference and the C function name difference;
comparing the method names and the C function names in the static library files of the first version file and the second version file to obtain a second difference list containing the method name difference and the C function name difference;
generating a difference file based on the first difference list and the second difference list.
Optionally, the step of comparing the method name and the C function name in the header files of the first version file and the second version file to obtain a first difference list including a difference between the method name and a difference between the C function name includes:
searching a class, a classification, a protocol and a C function in a header file of the first edition file through keyword matching and/or format matching, and constructing a first header file list based on a method name in the class, a method name in the classification, a method name in the protocol and a C function name;
searching a class, a classification, a protocol and a C function in a header file of the second version file through keyword matching and/or format matching, and constructing a second header file list based on a method name in the class, a method name in the classification, a method name in the protocol and a C function name;
and comparing the first header file list with the second header file list to obtain the first difference list.
Optionally, the step of searching for a class, a classification, a protocol, and a C function in the header file of the first version file through keyword matching and/or format matching, and constructing the first header file list based on a method name in the class, a method name in the classification, a method name in the protocol, and a C function name includes:
searching the range of the class, the classification and the protocol in the header file of the first edition file through keyword matching and/or format matching by utilizing keywords and/or formats for searching the class, the classification and the protocol;
respectively searching the method names in the classes, the method names in the classes and the method names in the protocols within the ranges of the classes, the classes and the protocols by keyword matching and/or format matching by using keywords and/or formats used for searching the method names in the classes, the method names in the classes and the method names in the protocols;
searching the C function name in other ranges except the range of the class, the classification and the protocol in the header file through keyword matching and/or format matching by utilizing keywords and/or formats used for searching the C function name;
constructing a method list, a classified method list, a protocol method list and a C function list of the class according to the method names in the class, the method names in the classification, the method names in the protocol and the C function names respectively;
according to the corresponding relation between classes and the classification in the first edition file and the use relation of the class use protocol, adding a method list of the classification corresponding to the class and a method list of the protocol having the use relation with the class to the method list of the class aiming at each class in the first edition file;
and combining the method list of the class and the C function list to obtain the first header file list.
Optionally, the step of comparing the method name and the C function name in the static library file of the first version file and the second version file to obtain a second difference list including a method name difference and a C function name difference includes:
searching for a method name in the class, a method name in the protocol and a C function name in the protocol of the static library file of the first edition file through matching of an identifier, a format character and a character string rule, and constructing a first static library list based on the method name in the class, the method name in the protocol and the C function name;
searching for the method name, the method name in the classification, the method name in the protocol and the C function name in the class of the static library file of the second version file through matching of the identifier, the format character and the character string rule, and constructing a second static library list based on the method name, the method name in the classification, the method name in the protocol and the C function name in the protocol;
and comparing the first static library list with the second static library list to obtain the second difference list.
Optionally, the step of finding classes, classifications, protocols, and C functions in the static library files of the first edition file through identifier matching and string matching, and constructing the first static library list based on the method names, the method names in the classifications, the method names in the protocols, and the C function names in the static library files of the first edition file includes:
splitting the static library file of the first edition file to obtain a plurality of binary packages with architectures;
selecting a binary package of a target architecture to be used from the binary packages of the plurality of architectures;
splitting the binary package of the target architecture to obtain a plurality of object files;
respectively carrying out symbol extraction on the plurality of object files to obtain a plurality of symbol files containing symbols;
searching the class, the classification, the protocol and the C function in a plurality of symbol files through identifier matching by utilizing identifiers used for searching the class, the classification, the protocol and the C function in the symbol files;
searching the method names in the classes, the method names in the protocols and the C function names through character string matching by utilizing the character strings for searching the method names;
and combining the method names in the classes, the method names in the protocols and the C function names to obtain a first static library list.
In a second aspect, the present application provides a version difference detection apparatus, including:
the acquisition module is used for acquiring a first version file and a second version file corresponding to the same SDK;
the first comparison module is used for comparing the method lists in the header files of the first version file and the second version file with the C function to obtain a first difference list containing the difference of the method lists and the difference of the C function;
the second comparison module is used for comparing the method lists in the static library files of the first version file and the second version file with the C function to obtain a second difference list containing the method list difference and the C function difference;
a generating module for generating a difference file based on the first difference list and the second difference list.
Optionally, the first comparison module includes:
the first searching sub-module is used for searching the class, the classification, the protocol and the C function in the header file of the first edition file through keyword matching and/or format matching, and constructing a first header file list based on the method name in the class, the method name in the classification, the method name in the protocol and the C function name;
the second searching submodule is used for searching the class, the classification, the protocol and the C function in the header file of the second version file through keyword matching and/or format matching, and constructing a second header file list based on the method name in the class, the method name in the classification, the method name in the protocol and the C function name;
and the first comparison sub-module is used for comparing the first header file list with the second header file list to obtain the first difference list.
Optionally, the header file element includes: the first lookup sub-module includes:
a first search unit, configured to search a range of classes, classifications and protocols in a header file of the first version file through keyword matching and/or format matching using keywords and/or formats used for searching the classes, classifications and protocols;
the second searching unit is used for respectively searching the method names in the classes, the method names in the classes and the method names in the protocols within the ranges of the classes, the classes and the protocols through keyword matching and/or format matching by utilizing keywords and/or formats used for searching the method names in the classes, the method names in the classes and the method names in the protocols;
a third searching unit, configured to search, by using a keyword and/or a format for searching for a C function name, the C function name in the other ranges except for the range of the class, the category, and the protocol in the header file through keyword matching and/or format matching;
the building unit is used for building a method list, a classified method list, a protocol method list and a C function list of the class according to the method name in the class, the method name in the protocol and the C function name respectively;
an adding unit, configured to add, for each class in the first edition file, a method list of the class corresponding to the class and a method list of the protocol having a use relationship with the class to the method list of the class according to a correspondence relationship between the class and the class in the first edition file and a use relationship of a class use protocol;
and the first combination unit is used for combining the method list of the class and the C function list to obtain the first header file list.
Optionally, the second comparison module comprises:
the third searching submodule is used for searching the method names in the class, the method names in the protocol and the C function names of the static library files of the first edition file through the identifier, the format character and the character string rule matching, and constructing a first static library list based on the method names in the class, the method names in the protocol and the C function names;
the fourth searching submodule is used for searching the method names in the class, the method names in the protocol and the C function names of the static library files of the second version files through the identifier, the format character and the character string rule in a matching mode, and constructing a second static library list based on the method names in the class, the method names in the protocol and the C function names;
and the second comparison submodule is used for comparing the first static library list with the second static library list to obtain the second difference list.
Optionally, the first splitting unit is configured to split the static library file of the first version file to obtain a binary package with multiple architectures;
the selection unit is used for selecting a binary package of a target architecture to be used from the binary packages of the plurality of architectures;
the second splitting unit is used for splitting the binary package of the target architecture to obtain a plurality of object files;
the extraction unit is used for respectively extracting symbols of the object files to obtain a plurality of symbol files containing the symbols;
the fourth searching unit is used for searching the class, the classification, the protocol and the C function in the plurality of symbol files through identifier matching by utilizing the identifiers used for searching the class, the classification, the protocol and the C function in the symbol files;
the fifth searching unit is used for searching the method names in the classes, the method names in the protocols and the C function names through character string matching by utilizing the character strings used for searching the method names;
and the second combination unit is used for combining the method names in the classes, the method names in the protocols and the C function names to obtain a first static library list.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor configured to implement the version difference detection method according to any one of the first aspect when executing a program stored in a memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a program of the version difference detection method, which when executed by a processor, implements the steps of the version difference detection method of any one of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method comprises the steps of firstly obtaining a first version file and a second version file corresponding to the same software development kit SDK, comparing method names and C function names in header files of the first version file and the second version file to obtain a first difference list containing method name differences and C function name differences, comparing the method names and the C function names in static library files of the first version file and the second version file to obtain a second difference list containing method name differences and C function name differences, and generating a difference file based on the first difference list and the second difference list.
According to the embodiment of the invention, the method names and the C function names in the header files of the SDKs of different versions are compared, and the method names and the C function names in the static library files of the SDKs of different versions are compared to obtain the difference content between the SDKs of different versions, so that a developer can quickly know the difference of the content between the SDKs of different versions, the problems of loss of related content and the like caused by the difference content are conveniently checked based on the difference content, the situations of wrong compiling and reporting and the like caused by the fact that the version difference is not known are avoided, the stability of the SDK of the upgraded version is improved, the developer can quickly upgrade the SDK and quickly access the SDK, the working efficiency is improved, and the cost is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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 for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a version difference detection method according to an embodiment of the present application;
FIG. 2 is a flowchart of step S102 in FIG. 1;
FIG. 3 is a flowchart of step S201 in FIG. 2;
FIG. 4 is a flowchart of step S103 in FIG. 1;
FIG. 5 is a flowchart of step S401 in FIG. 4;
fig. 6 is a structural diagram of a version difference detection apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Due to the fact that documents of the SDK are extremely difficult to maintain due to the fact that the SDK is used in a large amount and multiple persons frequently modify and maintain, the document contents of the SDK are possibly lost, for example: the method name in the header file of the SDK may not correspond to a symbolic method file or the like used to implement the method name. The lack of the document content of the SDK can cause the compiling error of other libraries depending on the SDK, the problem is difficult to be solved, and bugs can be caused to occur in other services using the SDK. To this end, an embodiment of the present invention provides a version difference detection method, an apparatus, an electronic device, and a storage medium, where as shown in fig. 1, the version difference detection method may include the following steps:
step S101, a first version file and a second version file corresponding to the same SDK are obtained;
software Development Kit (SDK) refers to a collection of Development tools used by some Software engineers to build application Software for a particular Software package, Software framework, hardware platform, operating system, etc. The SDK includes a header file and a binary static library file obtained after compiling, and in order to facilitate developers to know differences between different versions of the same SDK, a first version file and a second version file of two different versions need to be obtained first.
Step S102, comparing the method names and the C function names in the header files of the first version file and the second version file to obtain a first difference list containing the method name difference and the C function name difference;
in this step, the method names and the C function names in the header files of the first version file and the second version file may be compared, and the method names and the C function names that are newly added/deleted may be combined to obtain the method difference list.
Step S103, comparing the method names and the C function names in the static library files of the first version file and the second version file to obtain a second difference list containing the method name difference and the C function name difference;
in this step, the method name and the C function name in the static library file of the first version file and the static library file of the second version file may be compared, and the newly added/deleted method name and the C function name may be combined to obtain the symbol difference list.
Step S104, generating a difference file based on the first difference list and the second difference list.
And combining the difference contents in the first difference list and the second difference list to obtain a difference file, wherein the difference contents in the difference file are the method name and the C function name of the second version file which are added/deleted relative to the first version file.
In practical application, a developer can determine a function of a difference between a first version file and a second version file directly according to the difference content between the first version file and the second version file, and then determine which version file is useful for the development according to the function of the difference between the first version file and the second version file, at this time, the developer can select to update the version file useful for the development, and can also perform other purposes according to practical situations, which is only an example and does not limit the present invention.
The method comprises the steps of firstly obtaining a first version file and a second version file corresponding to the same software development kit SDK, comparing method names and C function names in header files of the first version file and the second version file to obtain a first difference list containing method name differences and C function name differences, comparing the method names and the C function names in static library files of the first version file and the second version file to obtain a second difference list containing method name differences and C function name differences, and generating a difference file based on the first difference list and the second difference list.
According to the embodiment of the invention, the method names and the C function names in the header files of the SDKs of different versions are compared, and the method names and the C function names in the static library files of the SDKs of different versions are compared to obtain the difference content between the SDKs of different versions, so that a developer can quickly know the difference of the content between the SDKs of different versions, the problems of loss of related content and the like caused by the difference content are conveniently checked based on the difference content, the situations of wrong compiling and reporting and the like caused by the fact that the version difference is not known are avoided, the stability of the SDK of the upgraded version is improved, the developer can quickly upgrade the SDK and quickly access the SDK, the working efficiency is improved, and the cost is reduced.
In still another embodiment of the present invention, as shown in fig. 2, step S102 may include the steps of:
step S201, searching a class, a classification, a protocol and a C function in a header file of the first edition file through keyword matching and/or format matching, and constructing a first header file list based on a method name in the class, a method name in the classification, a method name in the protocol and a C function name;
in this step, a class, a category, a protocol, or a C function may be searched for in the header file of the first version file through keyword matching and/or format matching, and a method name in the searched class, a method name in the category, a method name and a C function name in the protocol, and the like are added to the first header file list.
Step S202, searching a class, a classification, a protocol and a C function in a header file of the second version file through keyword matching and/or format matching, and constructing a second header file list based on a method name in the class, a method name in the classification, a method name in the protocol and a C function name;
in this step, a class, a classification, a protocol, or a C function may be searched for in the header file of the second version file through keyword matching and/or format matching, and a method name in the searched class, a method name in the classification, a method name and a C function name in the protocol, and the like are added to the second header file list.
Step S203, comparing the first header file list and the second header file list to obtain the first difference list.
In this step, contents in the first header file list and the second header file list are compared to obtain a first difference list including a difference in method name and a difference in C-function name of the second header file list with respect to the first header file list.
The embodiment of the invention can construct the first difference list by searching the class, the classification, the protocol or the C function in the header file, the method name in the class, the method name in the classification, the method name in the protocol and the C function name so as to compare the header files of the two versions of files, finally obtain the difference content of the header files of the different versions of files, and store the difference content into the first difference list, thereby being beneficial to developing personnel to quickly know the difference between the header files of the SDKs of the different versions and further being convenient for reasonably selecting the header files meeting the requirement based on the difference content to use; or the problems of relevant content loss and the like caused by different contents are solved, the situations of compiling error and the like caused by the unknown version difference are avoided, the stability of the SDK of the upgraded version is improved, developers can conveniently and quickly upgrade the SDK and quickly access the SDK for use, the working efficiency is improved, and the cost is reduced.
In still another embodiment of the present invention, as shown in fig. 3, step S201 may include the steps of:
step S301, searching the range of the class, the classification and the protocol in the header file of the first edition file through keyword matching and/or format matching by using keywords and/or formats for searching the class, the classification and the protocol;
in the embodiment of the present invention, the keywords and/or formats used in matching the keywords and/or formats may be predetermined according to the characteristics of the programming language used in the first edition of file, for example, assuming that the SDK is written in the OC language, the keywords and/or formats used in performing the regular matching may be predetermined according to the characteristics of the OC language, such as in the OC language, "/,/" is an annotation in the OC language; the start @ end of the interface identification class/the end of the classification/protocol identifies the start of the protocol, so that "/,///" can be set as keywords for filtering out invalid annotation information, @ interface and @ end can be set as keywords for searching classes, classifications or protocols, and @ protocol can be set as keywords for searching the protocol.
Before the step, the first version file can be recursively traversed to obtain the addresses of a plurality of header files contained in the first version file, the contents of the plurality of header files are read through the addresses, the contents of each header file are matched through//, and/and other invalid keywords used for matching invalid information, and the matched invalid information is deleted to obtain the residual content; in this step, a regular expression can be used to perform keyword matching and/or format matching by using keywords and/or formats for searching classes, classifications and protocols, and keyword matching is performed in the remaining content by using keywords for matching classes, classifications and protocols such as @ interface, @ protocol, @ end, etc., to obtain the range of each class, the range of classification and the range of protocols;
step S302, respectively searching the method names in the classes, the method names in the classes and the method names in the protocols within the ranges of the classes, the classes and the protocols through keyword matching and/or format matching by using keywords and/or formats used for searching the method names in the classes, the method names in the classes and the method names in the protocols;
in this step, the method names of the classes, and the method names of the protocols may be matched by the keywords for finding the classes, the classifications, and the protocols within the range of the respective classes, the range of the classifications, and the range of the protocols using the keywords and/or formats for finding the method names in the classes, the method names in the classifications, and the method names in the protocols.
Step S303, searching the C function name in other ranges except the range of the class, the classification and the protocol in the header file through keyword matching and/or format matching by utilizing keywords and/or formats for searching the C function name;
in this step, the C function name may be matched by a keyword for finding the C function name in the remaining range except for the range of the class, the classification, and the protocol in the header file.
Step S304, respectively constructing a method list, a classified method list, a protocol method list and a C function list of the class according to the method name in the class, the method name in the protocol and the C function name;
for example, in practical applications, the header file of a first version of the file may include the following:
// class A
/*
The primary function of class A is … …
*/
@interface A:B
+(void)test;
@end
For example, when performing keyword and/or format matching on the header file of the above content, the comments may be identified by regular expression matching "//" and "////", and then the comments are all deleted; identifying three keywords of '@ interface', ': and' @ end 'through regular expressions, identifying a class, and then defining a method name' + (void) test in the range of the class; the method names are the method names in the class, the method list of the class can be obtained by combining the method names, and the classified method list, the method list of the protocol, the C function list and the like can be obtained in the same way.
Step S305, adding a method list of the classification corresponding to the class and a method list of the protocol having the use relation with the class to a method list of the class for each class in the first edition file according to the corresponding relation between the classes and the use relation of the class use protocol in the first edition file;
in practical applications, the first version of the file may include at least one class, each class may have a plurality of corresponding classifications, and each class may use at least one protocol, so that there is a correspondence between the class and the classification, and there is a usage relationship between the class and the protocol used by the class, and further, according to the correspondence between the class and the classification and the usage relationship between the class and the protocol used by the class, for each class in the first version of the file, a method list of the classification corresponding to the class and a method list of the protocol associated with the class are added to the method list of the class.
Step S306, combining the method list of the class and the C function list to obtain the first header file list.
In this step, since the sorted method list corresponding to the class and the method list of the protocol associated with the class have already been added to the method list of the class, the method list of the class and the C-function list can be directly combined to obtain the first header file list.
Similarly, referring to steps S301 to S306, a second header file list can be obtained.
The embodiment of the invention can automatically carry out keyword matching and/or format matching, obtain the first head file list after combination, further facilitate comparison with the second head file list, finally obtain the difference content of the head files of the SDKs of different versions, and store the difference content into the first difference list, thereby being beneficial to developers to quickly know the difference content between the head files of the SDKs of different versions, and further facilitating reasonable selection of the head files meeting requirements based on the difference content for use; or the problems of relevant content loss and the like caused by different contents are solved, the situations of compiling error and the like caused by the unknown version difference are avoided, the stability of the SDK of the upgraded version is improved, developers can conveniently and quickly upgrade the SDK and quickly access the SDK for use, the working efficiency is improved, and the cost is reduced.
In still another embodiment of the present invention, as shown in fig. 4, step S103 may include the steps of:
step S401, searching for a method name, a method name in a classification, a method name in a protocol and a C function name in a class of a static library file of the first edition file through matching of an identifier, a format character and a character string rule, and constructing a first static library list based on the method name, the method name in the classification, the method name in the protocol and the C function name in the protocol;
since the static library file is a binary file, the class, the classification, the protocol and the C function included in the static library file are identified by different identifiers, format characters and character string rules, and the identifiers, format characters and character string rules which are used for identifying the class, the classification, the protocol and the C function in practical application can be respectively used as matching bases, namely, the identifiers, the format characters and the character string rules are set as preset identifiers, preset format characters and preset character string rules, so as to search the method names in the class, the method names in the classification, the method names in the protocol and the C function names.
In this step, the preset identifier, the preset format and the preset string rule may be sequentially compared with the content in the static library file, the method name in the class, the method name in the protocol and the C function name of the static library file are found, and then the found method name in the class, the method name in the protocol and the C function name are added to the first static library list.
Step S402, searching for a method name, a method name in a classification, a method name in a protocol and a C function name in a class of the static library file of the second version file through matching of an identifier, a format character and a character string rule, and constructing a second static library list based on the method name, the method name in the classification, the method name in the protocol and the C function name in the protocol;
similarly, referring to step S401, a second static library list may be obtained.
Step S403, comparing the first static library list and the second static library list to obtain the second difference list.
The method comprises the steps that the identifier, the format character matching and the character string rule matching are carried out on the static library file of the SDK, so that the method name in the class of the static library file, the method name in the class, the method name in the protocol and the C function name in the protocol can be searched, a first static library list and a second static library list can be constructed based on the method name in the class, the method name in the protocol and the C function name in the protocol, and then the second difference list of the difference content of the static library file comprising the second version file relative to the static library file of the first version file is obtained by comparing the first static library list with the second static library list, so that developers can know the difference between the static library files of different versions of the SDK quickly, and further the developers can reasonably select the static library files meeting the requirements based on the difference content to use; or the problems of relevant content loss and the like caused by different contents are solved, the situations of compiling error and the like caused by the unknown version difference are avoided, the stability of the SDK of the upgraded version is improved, developers can conveniently and quickly upgrade the SDK and quickly access the SDK for use, the working efficiency is improved, and the cost is reduced.
In still another embodiment of the present invention, as shown in fig. 5, step S401 includes the steps of:
step S501, splitting the static library file of the first edition file to obtain a plurality of structured binary packages;
in practical applications, the static library file of the first edition file corresponds to a compressed packet of a binary packet of a plurality of architectures, so in this step, the static library file of the first edition file can be decompressed to obtain the binary packet of the plurality of architectures.
Step S502, selecting a binary package of a target architecture to be used from the binary packages of a plurality of architectures;
in this step, the binary package of the architecture that needs to be used may be selected from the binary packages of the plurality of architectures according to actual requirements as the binary package of the target architecture, for example, if the software application of the mobile terminal is actually performed, the binary package of the arm64 architecture may be selected.
Step S503, splitting the binary package of the target architecture to obtain a plurality of object files;
in practical applications, the binary package of the schema corresponds to a compressed file of a plurality of object files (o files), so in this step, the binary package of the target schema can be decompressed to obtain a plurality of object files.
Step S504, respectively carrying out symbol extraction on a plurality of object files to obtain a plurality of symbol files containing symbols;
because the object file is a binary file and cannot be directly searched by using the regular expression, the binary file needs to be converted into a symbol file which can be searched by using the regular expression, and in the step, effective symbols in a plurality of object files can be respectively extracted by using a nm command to obtain a plurality of symbol files.
Step S505, searching the method name in the class, the method name in the classification, the method name in the protocol and the C function name in the protocol in a plurality of symbol files through the identifier, the format character and the character string rule matching by using the identifier, the format character and the character string rule used for searching the class, the classification, the protocol and the C function in the symbol files;
in this step, the method name in the class may be found in the plurality of symbol files by finding an identifier of the method name, a format, and a string rule in the class, the method name in the class by finding an identifier of the method name, a format, and a string rule in the class, the method name in the protocol by finding an identifier of the method name, a format, and a string rule in the protocol, and the C function name by finding an identifier of the C function, a format, and a string rule.
For example, in practical applications, the static library of a first version of the file may include the following:
……
00000000000006b8 t-[ABC startDownload]
00000000000039d8 t-[ABC status]
00000000000019b8 t-[ABC versionChangedByPackageID:]
……
00000000000019b8 t-[ABC(Category)versionChangedByPackageID:]
……
0000000000000000T_test1
0000000000000050T_test2
……
in practical application, the identifiers, the format symbols and the character string rules for searching the classes and the protocols in the symbol files may be the same, so that the method names startDownload, status and versionChangedByPackageID in the classes/protocols ABC can be found sequentially through the identifiers t, the format symbols- [ ] and the character string rules 'space';
the method name versionchange PackageID in the class Category of class ABC can be found sequentially through the identifier t, the format symbol- [ () ] and the character string rule 'space';
the C-functions T _ test1 and T _ test2 may be found "none" via the identifier T, the format _ and the string rule in order.
Step S506, combining the method names in the classes, the method names in the protocols and the C function names to obtain a first static library list.
Similarly, referring to steps S501 to S506, a second static library list can be obtained.
The embodiment of the invention can automatically split the static library files, and split the binary system package of the target architecture again, a plurality of symbol files are obtained by symbol extraction in a plurality of object files obtained by splitting, then the identifier, the format character and the character string rule used for searching the class, the classification, the protocol and the C function in the symbol files are utilized, the method name in the class, the method name in the classification, the method name in the protocol and the C function name are searched in a plurality of symbol files through the matching of the identifier, the format character and the character string rule, and then the first static library list is obtained by combination, the comparison with the second static library list is facilitated, the difference content of the static library lists of different versions of SDK is finally obtained, the difference content is stored in the second difference list, and the development personnel can be facilitated to quickly know the difference content between the static library files of different versions of SDK, thereby being convenient for reasonably selecting the materials meeting the requirements for use based on the difference content; or the problems of relevant content loss and the like caused by different contents are solved, the situations of compiling error and the like caused by the unknown version difference are avoided, the stability of the SDK of the upgraded version is improved, developers can conveniently and quickly upgrade the SDK and quickly access the SDK for use, the working efficiency is improved, and the cost is reduced.
In still another embodiment of the present invention, there is also provided a version difference detecting apparatus, as shown in fig. 6, including:
the acquiring module 11 is configured to acquire a first version file and a second version file corresponding to the same SDK;
a first comparison module 12, configured to compare the method name and the C function name in the header files of the first version file and the second version file to obtain a first difference list including a method name difference and a C function name difference;
a second comparison module 13, configured to compare the method name and the C function name in the static library files of the first version file and the second version file, so as to obtain a second difference list including a method name difference and a C function name difference;
a generating module 14, configured to generate a difference file based on the first difference list and the second difference list.
In another embodiment of the present invention, the first comparison module 12 includes:
the first searching sub-module is used for searching the class, the classification, the protocol and the C function in the header file of the first edition file through keyword matching and/or format matching, and constructing a first header file list based on the method name in the class, the method name in the classification, the method name in the protocol and the C function name;
the second searching submodule is used for searching the class, the classification, the protocol and the C function in the header file of the second version file through keyword matching and/or format matching, and constructing a second header file list based on the method name in the class, the method name in the classification, the method name in the protocol and the C function name;
and the first comparison sub-module is used for comparing the first header file list with the second header file list to obtain the first header file list.
In another embodiment of the present invention, the first lookup sub-module includes:
a first search unit, configured to search a range of classes, classifications and protocols in a header file of the first version file through keyword matching and/or format matching using keywords and/or formats used for searching the classes, classifications and protocols;
the second searching unit is used for respectively searching the method names in the classes, the method names in the classes and the method names in the protocols within the ranges of the classes, the classes and the protocols through keyword matching and/or format matching by utilizing keywords and/or formats used for searching the method names in the classes, the method names in the classes and the method names in the protocols;
a third searching unit, configured to search, by using a keyword and/or a format for searching for a C function name, the C function name in the other ranges except for the range of the class, the category, and the protocol in the header file through keyword matching and/or format matching;
the building unit is used for building a method list, a classified method list, a protocol method list and a C function list of the class according to the method name in the class, the method name in the protocol and the C function name respectively;
an adding unit, configured to add, for each class in the first edition file, a method list of the class corresponding to the class and a method list of the protocol having a use relationship with the class to the method list of the class according to a correspondence relationship between the class and the class in the first edition file and a use relationship of a class use protocol;
and the first combination unit is used for combining the method list of the class and the C function list to obtain the first difference list.
In another embodiment of the present invention, the second comparison module 13 includes:
the third searching submodule is used for searching the method names in the class, the method names in the protocol and the C function names of the static library files of the first edition file through the identifier, the format character and the character string rule matching, and constructing a first static library list based on the method names in the class, the method names in the protocol and the C function names;
the fourth searching submodule is used for searching the method names in the class, the method names in the protocol and the C function names of the static library files of the second version files through the identifier, the format character and the character string rule in a matching mode, and constructing a second static library list based on the method names in the class, the method names in the protocol and the C function names;
and the second comparison submodule is used for comparing the first static library list with the second static library list to obtain the second difference list.
In another embodiment of the present invention, the third searching sub-module includes:
the first splitting unit is used for splitting the static library file of the first edition file to obtain a plurality of architected binary packages;
the selection unit is used for selecting a binary package of a target architecture to be used from the binary packages of the plurality of architectures;
the second splitting unit is used for splitting the binary package of the target architecture to obtain a plurality of object files;
the extraction unit is used for respectively extracting symbols of the object files to obtain a plurality of symbol files containing the symbols;
the fourth searching unit is used for searching the class, the classification, the protocol and the C function in the plurality of symbol files through identifier matching by utilizing the identifiers used for searching the class, the classification, the protocol and the C function in the symbol files;
the fifth searching unit is used for searching the method names in the classes, the method names in the protocols and the C function names through character string matching by utilizing the character strings used for searching the method names;
and the second combination unit is used for combining the method names in the classes, the method names in the protocols and the C function names to obtain a first static library list.
In another embodiment of the present invention, an electronic device is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the version difference detection method in the embodiment of the method when executing the program stored in the memory.
In the electronic device provided by the embodiment of the invention, the processor implements comparison of the method names and the C function names in the header files of the first version file and the second version file by acquiring the first version file and the second version file corresponding to the same software development kit SDK through executing the program stored in the memory to obtain a first difference list containing method name differences and C function name differences, compares the method names and the C function names in the static library files of the first version file and the second version file to obtain a second difference list containing method name differences and C function name differences, generates a difference file based on the first difference list and the second difference list, ensures that the method names and the C function names in the static library files of different versions of the SDK are compared through comparing the method names and the C function names in the header files of different versions of the SDK, the method has the advantages that the difference content among the SDKs of different versions is obtained, developers can know the difference of the content among the SDKs of different versions quickly, the problems of loss of related content and the like caused by the difference content are checked conveniently based on the difference content, the situations of compiling error and the like caused by the fact that the difference of versions is not known are avoided, the stability of the SDK of the upgraded version is improved, the developers can upgrade the SDK quickly and access the SDK quickly to use the SDK conveniently, the working efficiency is improved, and the cost is reduced.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is also provided, on which a program of the version difference detection method is stored, which when executed by a processor implements the steps of the version difference detection method described in the aforementioned method embodiment.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A version difference detection method, comprising:
acquiring a first version file and a second version file corresponding to the same Software Development Kit (SDK);
comparing the method names and the C function names in the header files of the first version file and the second version file to obtain a first difference list containing the method name difference and the C function name difference;
comparing the method names and the C function names in the static library files of the first version file and the second version file to obtain a second difference list containing the method name difference and the C function name difference;
generating a difference file based on the first difference list and the second difference list.
2. The version difference detection method according to claim 1, wherein the step of comparing the method name and the C function name in the header files of the first version file and the second version file to obtain a first difference list including a method name difference and a C function name difference comprises:
searching a class, a classification, a protocol and a C function in a header file of the first edition file through keyword matching and/or format matching, and constructing a first header file list based on a method name in the class, a method name in the classification, a method name in the protocol and a C function name;
searching a class, a classification, a protocol and a C function in a header file of the second version file through keyword matching and/or format matching, and constructing a second header file list based on a method name in the class, a method name in the classification, a method name in the protocol and a C function name;
and comparing the first header file list with the second header file list to obtain the first difference list.
3. The version difference detection method according to claim 2, wherein the step of finding a class, a classification, a protocol and a C function in the header file of the first version file by keyword matching and/or format matching, and constructing the first header file list based on a method name in the class, a method name in the classification, a method name in the protocol and a C function name comprises:
searching the range of the class, the classification and the protocol in the header file of the first edition file through keyword matching and/or format matching by utilizing keywords and/or formats for searching the class, the classification and the protocol;
respectively searching the method names in the classes, the method names in the classes and the method names in the protocols within the ranges of the classes, the classes and the protocols by keyword matching and/or format matching by using keywords and/or formats used for searching the method names in the classes, the method names in the classes and the method names in the protocols;
searching the C function name in other ranges except the range of the class, the classification and the protocol in the header file through keyword matching and/or format matching by utilizing keywords and/or formats used for searching the C function name;
constructing a method list, a classified method list, a protocol method list and a C function list of the class according to the method names in the class, the method names in the classification, the method names in the protocol and the C function names respectively;
according to the corresponding relation between classes and the classification in the first edition file and the use relation of the class use protocol, adding a method list of the classification corresponding to the class and a method list of the protocol having the use relation with the class to the method list of the class aiming at each class in the first edition file;
and combining the method list of the class and the C function list to obtain the first header file list.
4. The version difference detection method according to claim 1, wherein the step of comparing the method name and the C function name in the static library file of the first version file and the second version file to obtain a second difference list including a method name difference and a C function name difference comprises:
searching for a method name in a static library file of the first edition file, a method name in a classification, a method name in a protocol and a C function name through matching of an identifier, a format character and a character string rule, and constructing a first static library list based on the method name in the classification, the method name in the protocol and the C function name;
searching for the method name, the method name in the classification, the method name in the protocol and the C function name in the class of the static library file of the second version file through matching of the identifier, the format character and the character string rule, and constructing a second static library list based on the method name, the method name in the classification, the method name in the protocol and the C function name in the protocol;
and comparing the first static library list with the second static library list to obtain the second difference list.
5. The version difference detection method according to claim 4, wherein the step of searching for the method name in the class, the method name in the protocol, and the C function name of the static library file of the first version file through identifier, format, and string rule matching, and constructing the first static library list based on the method name in the class, the method name in the protocol, and the C function name comprises:
splitting the static library file of the first edition file to obtain a plurality of binary packages with architectures;
selecting a binary package of a target architecture to be used from the binary packages of the plurality of architectures;
splitting the binary package of the target architecture to obtain a plurality of object files;
respectively carrying out symbol extraction on the plurality of object files to obtain a plurality of symbol files containing symbols;
searching the class, the classification, the protocol and the C function in a plurality of symbol files through identifier matching by utilizing identifiers used for searching the class, the classification, the protocol and the C function in the symbol files;
searching the method names in the classes, the method names in the protocols and the C function names through character string matching by utilizing the character strings for searching the method names;
and combining the method names in the classes, the method names in the protocols and the C function names to obtain a first static library list.
6. A version difference detection apparatus, comprising:
the acquisition module is used for acquiring a first version file and a second version file corresponding to the same SDK;
the first comparison module is used for comparing the method names and the C function names in the header files of the first version file and the second version file to obtain a first difference list containing the method name difference and the C function name difference;
the second comparison module is used for comparing the method names and the C function names in the static library files of the first version file and the second version file to obtain a second difference list containing the method name difference and the C function name difference;
a generating module for generating a difference file based on the first difference list and the second difference list.
7. The version difference detection device according to claim 6, wherein the first comparison module comprises:
the first searching sub-module is used for searching the class, the classification, the protocol and the C function in the header file of the first edition file through keyword matching and/or format matching, and constructing a first header file list based on the method name in the class, the method name in the classification, the method name in the protocol and the C function name;
the second searching submodule is used for searching the class, the classification, the protocol and the C function in the header file of the second version file through keyword matching and/or format matching, and constructing a second header file list based on the method name in the class, the method name in the classification, the method name in the protocol and the C function name;
and the first comparison sub-module is used for comparing the first header file list with the second header file list to obtain the first header file list.
8. The version difference detection device according to claim 7, wherein the first lookup sub-module comprises:
a first search unit, configured to search a range of classes, classifications and protocols in a header file of the first version file through keyword matching and/or format matching using keywords and/or formats used for searching the classes, classifications and protocols;
the second searching unit is used for respectively searching the method names in the classes, the method names in the classes and the method names in the protocols within the ranges of the classes, the classes and the protocols through keyword matching and/or format matching by utilizing keywords and/or formats used for searching the method names in the classes, the method names in the classes and the method names in the protocols;
a third searching unit, configured to search, by using a keyword and/or a format for searching for a C function name, the C function name in the other ranges except for the range of the class, the category, and the protocol in the header file through keyword matching and/or format matching;
the building unit is used for building a method list, a classified method list, a protocol method list and a C function list of the class according to the method name in the class, the method name in the protocol and the C function name respectively;
an adding unit, configured to add, for each class in the first edition file, a method list of the class corresponding to the class and a method list of the protocol having a use relationship with the class to the method list of the class according to a correspondence relationship between the class and the class in the first edition file and a use relationship of a class use protocol;
and the first combination unit is used for combining the method list of the class and the C function list to obtain the first difference list.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the version difference detection method according to any one of claims 1 to 5 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program of the version difference detection method, which when executed by a processor implements the steps of the version difference detection method of any one of claims 1 to 5.
CN202010329074.5A 2020-04-23 2020-04-23 Version difference detection method and device, electronic equipment and storage medium Pending CN111506342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010329074.5A CN111506342A (en) 2020-04-23 2020-04-23 Version difference detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010329074.5A CN111506342A (en) 2020-04-23 2020-04-23 Version difference detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111506342A true CN111506342A (en) 2020-08-07

Family

ID=71864291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010329074.5A Pending CN111506342A (en) 2020-04-23 2020-04-23 Version difference detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111506342A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113627320A (en) * 2021-08-09 2021-11-09 东云睿连(武汉)计算技术有限公司 Engineering drawing comparison device and method based on computer vision
CN114675866A (en) * 2022-03-11 2022-06-28 无锡蓝天电子股份有限公司 Remote upgrading method
CN116401147A (en) * 2023-02-08 2023-07-07 深圳开源互联网安全技术有限公司 Function library reference version detection method, equipment and storage medium
CN117251205A (en) * 2023-11-16 2023-12-19 沐曦集成电路(杭州)有限公司 Method, device, equipment and medium for processing header file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279377A (en) * 2013-05-09 2013-09-04 北京百度网讯科技有限公司 Method and device for comparing degrees of difference of codes
CN104252364A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Increment updating method, equipment and system
US20160062765A1 (en) * 2014-09-02 2016-03-03 International Business Machines Corporation Identifying semantic differences between source code versions
CN106951228A (en) * 2017-02-21 2017-07-14 腾讯科技(深圳)有限公司 The treating method and apparatus of difference in version iteration
CN107577476A (en) * 2017-08-07 2018-01-12 中国科学院软件研究所 A kind of Android system source code difference analysis method, server and medium based on Module Division
CN110837393A (en) * 2019-11-14 2020-02-25 北京知道创宇信息技术股份有限公司 Method and device for manufacturing firmware differential upgrade package and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279377A (en) * 2013-05-09 2013-09-04 北京百度网讯科技有限公司 Method and device for comparing degrees of difference of codes
CN104252364A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Increment updating method, equipment and system
US20160062765A1 (en) * 2014-09-02 2016-03-03 International Business Machines Corporation Identifying semantic differences between source code versions
CN106951228A (en) * 2017-02-21 2017-07-14 腾讯科技(深圳)有限公司 The treating method and apparatus of difference in version iteration
CN107577476A (en) * 2017-08-07 2018-01-12 中国科学院软件研究所 A kind of Android system source code difference analysis method, server and medium based on Module Division
CN110837393A (en) * 2019-11-14 2020-02-25 北京知道创宇信息技术股份有限公司 Method and device for manufacturing firmware differential upgrade package and readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113627320A (en) * 2021-08-09 2021-11-09 东云睿连(武汉)计算技术有限公司 Engineering drawing comparison device and method based on computer vision
CN113627320B (en) * 2021-08-09 2023-09-26 东云睿连(武汉)计算技术有限公司 Engineering drawing comparison device and method based on computer vision
CN114675866A (en) * 2022-03-11 2022-06-28 无锡蓝天电子股份有限公司 Remote upgrading method
CN114675866B (en) * 2022-03-11 2023-05-12 无锡蓝天电子股份有限公司 Remote upgrading method
CN116401147A (en) * 2023-02-08 2023-07-07 深圳开源互联网安全技术有限公司 Function library reference version detection method, equipment and storage medium
CN116401147B (en) * 2023-02-08 2024-05-03 深圳开源互联网安全技术有限公司 Function library reference version detection method, equipment and storage medium
CN117251205A (en) * 2023-11-16 2023-12-19 沐曦集成电路(杭州)有限公司 Method, device, equipment and medium for processing header file
CN117251205B (en) * 2023-11-16 2024-02-06 沐曦集成电路(杭州)有限公司 Method, device, equipment and medium for processing header file

Similar Documents

Publication Publication Date Title
CN111506342A (en) Version difference detection method and device, electronic equipment and storage medium
US9043757B2 (en) Identifying differences between source codes of different versions of a software when each source code is organized using incorporated files
CN114741070A (en) Code generation method and device, electronic equipment and storage medium
CN111124479A (en) Configuration file analysis method and system and electronic equipment
CN108427580B (en) Configuration pair naming repetition detection method, storage medium and intelligent device
CN112000690B (en) Method and device for analyzing structured operation statement
CN111158777A (en) Component calling method and device and computer readable storage medium
CN110716866A (en) Code quality scanning method and device, computer equipment and storage medium
CN114579203B (en) Script file checking method and device, electronic equipment and storage medium
CN111736848B (en) Packet conflict positioning method, device, electronic equipment and readable storage medium
CN112463596B (en) Test case data processing method, device and equipment and processing equipment
CN115437685A (en) Function positioning method and device and electronic equipment
CN113626108A (en) Method, device, equipment and storage medium for assisted configuration of webpack
US10204106B2 (en) Management method, management device, and management system
CN113342749A (en) File path matching method, device, equipment and computer readable storage medium
CN112433943A (en) Method, device, equipment and medium for detecting environment variable based on abstract syntax tree
CN112130860A (en) JSON object analysis method and device, electronic device and storage medium
CN113408250B (en) Project file processing method and device
CN111045657B (en) Program code operation method and device, and compiling method and device
CN111522627B (en) Docker mirror image management method, device, equipment and medium
CN117215965B (en) Test case identification-based test method and device, electronic equipment and medium
CN113704122B (en) UI (user interface) automatic test system and method based on standard interface
CN109101302B (en) File importing method and device, electronic equipment and storage medium
CN112328614A (en) Virus library updating method, equipment, storage medium and device
CN113590469A (en) Useless code detection method, useless code detection device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200807

RJ01 Rejection of invention patent application after publication