Method and apparatus for testing a code file
AssigneeBaidu USA LLC
InventorsPeng LI, Yaohui CHEN, Tao WEI
Life of this patent
Estimating the term…
Loading patent…
AssigneeBaidu USA LLC
InventorsPeng LI, Yaohui CHEN, Tao WEI
Estimating the term…
Embodiments of the present disclosure disclose a method and an apparatus for testing a code file. A preferred embodiment of the method comprises: compiling a to-be-tested code file to obtain an intermediate code file; instrumenting a code block identifier of each code block in the intermediate code file to the intermediate code file; determining an identifier of a jump relationship between two code blocks that have the jump relationship in the intermediate code file; performing dynamic testing to the instrumented intermediate code file based on respective code block identifiers and respective identifiers of jump relationships. This embodiment enhances bug detection capabilities for testing a code file.
A method for testing a code file, comprising:
An electronic device, comprising:
A computer-readable medium on which a computer program is stored, wherein the computer program, when being executed by or more processors, cause the one or more processors to:
Dependencies are inferred from the claim text.