MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestGetPrompt_ChiefExclusion

Function TestGetPrompt_ChiefExclusion

embed/embed_test.go:63–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}
62
63func TestGetPrompt_ChiefExclusion(t *testing.T) {
64 prompt := GetPrompt("/path/progress.md", `{"id":"US-001"}`, "US-001", "Test Story")
65
66 // The prompt must instruct Claude to never stage or commit .chief/ files
67 if !strings.Contains(prompt, ".chief/") {
68 t.Error("Expected prompt to contain .chief/ exclusion instruction")
69 }
70 if !strings.Contains(prompt, "NEVER stage or commit") {
71 t.Error("Expected prompt to explicitly say NEVER stage or commit .chief/ files")
72 }
73}
74
75func TestGetInitPrompt(t *testing.T) {
76 prdDir := "/path/to/.chief/prds/main"

Callers

nothing calls this directly

Calls 1

GetPromptFunction · 0.85

Tested by

no test coverage detected