github.com/vmware/transport-go@v1.3.4/service/fabric_error_test.go (about)

     1  package service
     2  
     3  import (
     4  	"github.com/stretchr/testify/assert"
     5  	"testing"
     6  )
     7  
     8  func TestGetFabricError(t *testing.T) {
     9  
    10  	fe := GetFabricError("test", 500, "something is wrong")
    11  	assert.Equal(t, "test", fe.Title)
    12  	assert.Equal(t, "something is wrong", fe.Detail)
    13  	assert.Equal(t, 500, fe.Status)
    14  
    15  }