test: add more tests (#1147)

* test: add more tests

* test: add more tests
This commit is contained in:
Kevin Wan
2021-10-19 22:37:56 +08:00
committed by GitHub
parent d41163f5c1
commit eab77e21dd
5 changed files with 112 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ var (
RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
)
// StatusCodeAttr returns a attribute.KeyValue that represents the give c.
// StatusCodeAttr returns an attribute.KeyValue that represents the give c.
func StatusCodeAttr(c gcodes.Code) attribute.KeyValue {
return GRPCStatusCodeKey.Int64(int64(c))
}