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

Function TestInvalidName

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

Source from the content-addressed store, hash-verified

144}
145
146func TestInvalidName(t *testing.T) {
147 ctx := context.Background()
148 s := newTestStore(t)
149 for _, bad := range []string{"", " ", "a/b", `a\b`} {
150 if _, err := s.Create(ctx, bad, "", "x"); !isErr(err, ErrInvalidName) {
151 t.Fatalf("name %q: expected ErrInvalidName, got %v", bad, err)
152 }
153 }
154}
155
156func TestDeleteCascadesInstalls(t *testing.T) {
157 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