METHOD, DEVICE AND COMPUTER-READABLE STORAGE MEDIUM FOR CLOSURE TESTING
A method for closure testing is disclosed. The method includes: acquiring an identification of a closure to be tested; generating code to be inserted based on the identification of the closure to be tested; searching and obtaining a corresponding annotation based on the identification of the closure...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A method for closure testing is disclosed. The method includes: acquiring an identification of a closure to be tested; generating code to be inserted based on the identification of the closure to be tested; searching and obtaining a corresponding annotation based on the identification of the closure to be tested, and determining a closure corresponding to the identification of the closure to be tested based on the annotation; adding the generated code to be inserted to the searched closure; and testing the closure added the code to be inserted. In addition, the present disclosure also discloses a device for closure testing. For the above method and device for closure testing, it reduces the burden of the tester and improves testing efficiency, and the source code published to the network need not to make an internal interface in a closure be exposed for testing, which improves the security of the program. |
---|