aa
This commit is contained in:
29
business/jxcallback/orderman/order_test.go
Normal file
29
business/jxcallback/orderman/order_test.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package orderman
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestSaveJdsOrders(t *testing.T) {
|
||||
type args struct {
|
||||
ctx *jxcontext.Context
|
||||
orderCreatedStart time.Time
|
||||
orderCreatedEnd time.Time
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
wantErr bool
|
||||
}{
|
||||
// TODO: Add test cases.
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if err := SaveJdsOrders(tt.args.ctx, tt.args.orderCreatedStart, tt.args.orderCreatedEnd); (err != nil) != tt.wantErr {
|
||||
t.Errorf("SaveJdsOrders() error = %v, wantErr %v", err, tt.wantErr)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user