package
0.0.0-20231224052254-3c905e5ef12b
Repository: https://github.com/assetcloud/chain.git
Documentation: pkg.go.dev

# Functions

AutoTestLogFormat customize log15 log format.
CalcTxUtxoAmount calculate total amount in tx in/out utxo set, key = ["keyinput" | "keyoutput"].
CalcUtxoAvailAmount calculate available utxo with specific addr and TxHash.
CalcUtxoSpendAmount calculate spend utxo with specific addr and TxHash.
CheckBalanceDeltaWithAddr diff balance.
CheckFrozenDeltaWithAddr check.
DefaultSend default send command implementation, only for transaction type case.
GetAutoTestConfig 获取测试配置类型.
GetTxInfo get tx receipt with tx hash code if exist.
GetTxRecpTyname get tx query -s TxHash.
Init 超时次数等于总超时时间除以每次check时睡眠时间.
IsBalanceEqualFloat according to the accuracy of coins balance.
RegisterAutoTest 注册测试配置类型.
RunChainCli invoke chain client.
SendPrivacyTxCommand 隐私交易执行回执哈希为json格式,需要解析.
SendTxCommand excute.

# Constants

FloatDiff const.

# Variables

用例check时超时次数.
chain cli可执行文件名.

# Structs

BaseCase base test case.
BaseCasePack pack testCase with some check info.
SimpleCase 简单用例.
SimplePack 简单pack.

# Interfaces

AutoTest dapp实现auto test的接口,需要提供每个dapp对应的测试配置类型,并注册.
CaseFunc interface for testCase.
PackFunc interface for check testCase result.

# Type aliases

CheckHandlerFunc 检查func.
CheckHandlerFuncDiscard 检查func.
CheckHandlerMap 检查map.
CheckHandlerMapDiscard 检查map.