You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
381 B
Go
26 lines
381 B
Go
package mall
|
|
|
|
import (
|
|
"context"
|
|
_ "joybuywork/test"
|
|
"testing"
|
|
|
|
pb "joybuywork/proto/go_proto/w_mall"
|
|
)
|
|
|
|
func TestItemList(t *testing.T) {
|
|
res := &pb.ItemListRes{}
|
|
|
|
container := new(ItemList)
|
|
{
|
|
container.Init(context.Background())
|
|
container.Req = &pb.ItemListReq{
|
|
MallId: 367716860052148224,
|
|
Status: 1,
|
|
}
|
|
container.Res = res
|
|
}
|
|
|
|
t.Log(container.Run(), res)
|
|
}
|