vehicle_configuration_test.go 457 B

12345678910111213141516171819
  1. package order
  2. import (
  3. "context"
  4. "gd_vehicle/apis"
  5. "encoding/json"
  6. "testing"
  7. )
  8. func Test_VehicleGetConfiguration(t *testing.T) {
  9. req := apis.VehicleGetConfigurationReq{AppKey: "123456", PlateNo: "川A33E22"}
  10. reply := apis.VehicleGetConfigurationReply{}
  11. if err := xcli.Call(context.Background(), "VehicleGetConfiguration", req, &reply); err != nil {
  12. t.Error("failed to call: ", err)
  13. } else {
  14. d, _ := json.Marshal(reply)
  15. t.Log(string(d))
  16. }
  17. }