package vehicle import ( "context" "gd_service/apis" "encoding/json" "fmt" //"time" "testing" ) /*func Test_VechicleVerifyOwner(t *testing.T) { req := apis.VechicleVerifyOwnerReq{PlateNo: "川A33E22", AppKey: "3333333", Owner: "熊杰"} reply := apis.VechicleVerifyOwnerReply{} fmt.Println(req) if err := xcli.Call(context.Background(), "VechicleVerifyOwner", req, &reply); err != nil { t.Error("failed to call: ", err) } else { d, _ := json.Marshal(reply) t.Log(string(d)) } }*/ /*func Test_VehicleGetStyle(t *testing.T) { req := apis.VehicleGetStyleReq{PlateNo: "川A33E22", AppKey: "3333333"} reply := apis.VehicleGetStyleReply{} fmt.Println(req) for i:=1;i<10000;i++{ go func(){ if err := xcli.Call(context.Background(), "VehicleGetStyle", req, &reply); err != nil { t.Error("failed to call: ", err) } else { d, _ := json.Marshal(reply) t.Log(string(d)) } }() } time.Sleep(time.Second*10) }*/ func Test_VehicleGetInfo(t *testing.T) { req := apis.VehicleGetInfoReq{PlateNo: "云F806TT", AppKey: "3333333"} reply := apis.VehicleGetInfoReply{} fmt.Println(req) if err := xcli.Call(context.Background(), "VehicleGetInfo", req, &reply); err != nil { t.Error("failed to call: ", err) } else { d, _ := json.Marshal(reply) t.Log(string(d)) } }