hello_test.go 399 B

12345678910111213141516171819
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. package tests
  4. import (
  5. v1 "adm-gateway/pb/v1"
  6. "testing"
  7. jsoniter "github.com/json-iterator/go"
  8. )
  9. var json = jsoniter.ConfigCompatibleWithStandardLibrary
  10. func Test_HelloV1(t *testing.T) {
  11. hello := v1.HelloRequest{Name: "Jackson Wall"}
  12. s, _ := json.MarshalToString(hello)
  13. t.Log(s)
  14. }