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

Function seedEntity

internal/cli/cmd_skill_test.go:14–24  ·  view source on GitHub ↗

seedEntity writes an entity directly into the store so tests don't depend on commands that are no longer exposed (like the old "add" subcommand).

(t *testing.T, kind entities.Kind, name, content, description string)

Source from the content-addressed store, hash-verified

12// seedEntity writes an entity directly into the store so tests don't depend on
13// commands that are no longer exposed (like the old "add" subcommand).
14func seedEntity(t *testing.T, kind entities.Kind, name, content, description string) {
15 t.Helper()
16 store := entities.NewStore(kind)
17 if err := store.Put(entities.Entity{
18 Name: name,
19 Content: content,
20 Description: description,
21 }); err != nil {
22 t.Fatalf("seedEntity: %v", err)
23 }
24}
25
26// installEntityToApp installs an entity directly into an app directory for
27// testing the list command's installed-scan behavior.

Calls 2

PutMethod · 0.95
NewStoreFunction · 0.92

Tested by

no test coverage detected