MCPcopy Create free account
hub / github.com/InferCore/InferCore / TestNew

Function TestNew

internal/upstream/errors_test.go:18–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestNew(t *testing.T) {
19 e := New(KindBackendError, "msg")
20 if e.Kind != KindBackendError || e.Message != "msg" {
21 t.Fatalf("%+v", e)
22 }
23}

Callers

nothing calls this directly

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected