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.

119 lines
2.3 KiB

package order
import (
v1 "matchmaking-system/api/matchmaking/v1/order"
"reflect"
"testing"
)
func TestCheckShareError(t *testing.T) {
type args struct {
err error
}
tests := []struct {
name string
args args
want string
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := CheckShareError(tt.args.err); got != tt.want {
t.Errorf("CheckShareError() = %v, want %v", got, tt.want)
}
})
}
}
func TestResultCodeSrr(t *testing.T) {
type args struct {
check bool
err string
}
tests := []struct {
name string
args args
want int64
want1 string
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, got1 := ResultCodeSrr(tt.args.check, tt.args.err)
if got != tt.want {
t.Errorf("ResultCodeSrr() got = %v, want %v", got, tt.want)
}
if got1 != tt.want1 {
t.Errorf("ResultCodeSrr() got1 = %v, want %v", got1, tt.want1)
}
})
}
}
func TestResultTokenError(t *testing.T) {
type args struct {
err string
}
tests := []struct {
name string
args args
want int
want1 string
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, got1 := ResultTokenError(tt.args.err)
if got != tt.want {
t.Errorf("ResultTokenError() got = %v, want %v", got, tt.want)
}
if got1 != tt.want1 {
t.Errorf("ResultTokenError() got1 = %v, want %v", got1, tt.want1)
}
})
}
}
func TestSharePreReply(t *testing.T) {
type args struct {
check bool
err string
}
tests := []struct {
name string
args args
want *v1.SharePreReply
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := SharePreReply(tt.args.check, tt.args.err); !reflect.DeepEqual(got, tt.want) {
t.Errorf("SharePreReply() = %v, want %v", got, tt.want)
}
})
}
}
func TestVerificationSharePreTrade(t *testing.T) {
type args struct {
req *v1.SharePreRequest
}
tests := []struct {
name string
args args
want bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := VerificationSharePreTrade(tt.args.req); got != tt.want {
t.Errorf("VerificationSharePreTrade() = %v, want %v", got, tt.want)
}
})
}
}