MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / TestDuplicateName

Function TestDuplicateName

internal/instructions/store_test.go:134–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

132}
133
134func TestDuplicateName(t *testing.T) {
135 ctx := context.Background()
136 s := newTestStore(t)
137 if _, err := s.Create(ctx, "Dup", "", "a"); err != nil {
138 t.Fatalf("Create: %v", err)
139 }
140 _, err := s.Create(ctx, "Dup", "", "b")
141 if !isErr(err, ErrDuplicateName) {
142 t.Fatalf("expected ErrDuplicateName, got %v", err)
143 }
144}
145
146func TestInvalidName(t *testing.T) {
147 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

newTestStoreFunction · 0.85
isErrFunction · 0.85
CreateMethod · 0.80

Tested by

no test coverage detected