Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/GetStream/stream-go2
/ TestErrorString
Function
TestErrorString
errors_test.go:29–32 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
27
}
28
29
func
TestErrorString(t *testing.T) {
30
apiErr := stream.APIError{Detail:
"boom"
}
31
assert.Equal(t,
"boom"
, apiErr.Error())
32
}
33
34
func
TestToAPIError(t *testing.T) {
35
testCases := []
struct
{
Callers
nothing calls this directly
Calls
1
Error
Method · 0.95
Tested by
no test coverage detected