mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
eab77e21dd
* test: add more tests * test: add more tests
13 lines
253 B
Go
13 lines
253 B
Go
package trace
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
gcodes "google.golang.org/grpc/codes"
|
|
)
|
|
|
|
func TestStatusCodeAttr(t *testing.T) {
|
|
assert.Equal(t, GRPCStatusCodeKey.Int(int(gcodes.DataLoss)), StatusCodeAttr(gcodes.DataLoss))
|
|
}
|