hello_test.go 408 B

12345678910111213141516171819
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package tests
  4. import (
  5. v1 "access-control-monitor/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. }