Smart contract operation code coverage calculation method and system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WEBANK (CHINA)
- Publication Date
- 2019-10-18
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present invention relates to the technical field of block chains, in particular to a method and system for calculating the coverage ratio of operation codes of smart contracts. Background technique
[0002] Coverage is a measure used to measure the integrity of software functional testing and a measure of the effectiveness of testing techniques. At present, there are mainly two coverage calculation methods in the blockchain field. One is the interface method for manual or script recording of test case execution calls, followed by statistical summary of data, and finally output of analysis results. The other is to use the log event mechanism of the smart contract, first transcompile the source code of the smart contract, insert the custom log event information by analyzing the source code, and send a transaction request to the blockchain, and finally analyze it through the script Log event information of blockchain transactions, summarize the data...