github.com/lingyao2333/mo-zero@v1.4.1/core/trace/attributes_test.go (about)

     1  package trace
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  	gcodes "google.golang.org/grpc/codes"
     8  )
     9  
    10  func TestStatusCodeAttr(t *testing.T) {
    11  	assert.Equal(t, GRPCStatusCodeKey.Int(int(gcodes.DataLoss)), StatusCodeAttr(gcodes.DataLoss))
    12  }