MCPcopy 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
29func TestErrorString(t *testing.T) {
30 apiErr := stream.APIError{Detail: "boom"}
31 assert.Equal(t, "boom", apiErr.Error())
32}
33
34func TestToAPIError(t *testing.T) {
35 testCases := []struct {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected