You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
2.9 KiB
138 lines
2.9 KiB
2 months ago
|
package result
|
||
|
|
||
|
import (
|
||
|
"reflect"
|
||
|
"testing"
|
||
|
v1 "wallet-system/api/walletSystem/v1"
|
||
|
)
|
||
|
|
||
|
func TestCodeResult(t *testing.T) {
|
||
|
type args struct {
|
||
|
check bool
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
want uint32
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if got := CodeResult(tt.args.check); got != tt.want {
|
||
|
t.Errorf("CodeResult() = %v, want %v", got, tt.want)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestSignatureTrc20GrpcResult(t *testing.T) {
|
||
|
type args struct {
|
||
|
check bool
|
||
|
data *v1.Data
|
||
|
ret string
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
want *v1.SignatureTrc20Reply
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if got := SignatureTrc20GrpcResult(tt.args.check, tt.args.data, tt.args.ret); !reflect.DeepEqual(got, tt.want) {
|
||
|
t.Errorf("SignatureTrc20GrpcResult() = %v, want %v", got, tt.want)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestWalletApproveResult(t *testing.T) {
|
||
|
type args struct {
|
||
|
check bool
|
||
|
data []byte
|
||
|
ret string
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
want *v1.WalletApproveReply
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if got := WalletApproveResult(tt.args.check, tt.args.data, tt.args.ret); !reflect.DeepEqual(got, tt.want) {
|
||
|
t.Errorf("WalletApproveResult() = %v, want %v", got, tt.want)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestWalletKeyReplyErrorResult(t *testing.T) {
|
||
|
type args struct {
|
||
|
check bool
|
||
|
data []*v1.Keys
|
||
|
ret string
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
want *v1.WalletKeyReply
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if got := WalletKeyReplyErrorResult(tt.args.check, tt.args.data, tt.args.ret); !reflect.DeepEqual(got, tt.want) {
|
||
|
t.Errorf("WalletKeyReplyErrorResult() = %v, want %v", got, tt.want)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestWalletPKeysReplyErrorResult(t *testing.T) {
|
||
|
type args struct {
|
||
|
check bool
|
||
|
data string
|
||
|
ret string
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
want *v1.WalletPKeysReply
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if got := WalletPKeysReplyErrorResult(tt.args.check, tt.args.data, tt.args.ret); !reflect.DeepEqual(got, tt.want) {
|
||
|
t.Errorf("WalletPKeysReplyErrorResult() = %v, want %v", got, tt.want)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestWalletReplyErrorResult(t *testing.T) {
|
||
|
type args struct {
|
||
|
check bool
|
||
|
data []string
|
||
|
ret string
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
want *v1.WalletReply
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if got := WalletReplyErrorResult(tt.args.check, tt.args.data, tt.args.ret); !reflect.DeepEqual(got, tt.want) {
|
||
|
t.Errorf("WalletReplyErrorResult() = %v, want %v", got, tt.want)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|