github.com/turingchain2020/turingchain@v1.1.21/system/dapp/coins/autotest/coins.go (about) 1 // Copyright Turing Corp. 2018 All Rights Reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package autotest 系统级coins dapp自动测试包 6 package autotest 7 8 import ( 9 "reflect" 10 11 "github.com/turingchain2020/turingchain/cmd/autotest/types" 12 ) 13 14 type coinsAutoTest struct { 15 SimpleCaseArr []types.SimpleCase `toml:"SimpleCase,omitempty"` 16 TransferCaseArr []TransferCase `toml:"TransferCase,omitempty"` 17 WithdrawCaseArr []WithdrawCase `toml:"WithdrawCase,omitempty"` 18 } 19 20 func init() { 21 22 types.RegisterAutoTest(coinsAutoTest{}) 23 24 } 25 26 // GetName return name = "coins" 27 func (config coinsAutoTest) GetName() string { 28 29 return "coins" 30 } 31 32 // GetTestConfigType return type of config 33 func (config coinsAutoTest) GetTestConfigType() reflect.Type { 34 35 return reflect.TypeOf(config) 36 }