MCPcopy Create free account
hub / github.com/diillson/chatcli / TestLoadBootstrapContent_AllFiles

Function TestLoadBootstrapContent_AllFiles

cli/workspace/bootstrap_test.go:18–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestLoadBootstrapContent_AllFiles(t *testing.T) {
19 dir := t.TempDir()
20 _ = os.WriteFile(filepath.Join(dir, "SOUL.md"), []byte("Be helpful"), 0o644)
21 _ = os.WriteFile(filepath.Join(dir, "USER.md"), []byte("I prefer Go"), 0o644)
22
23 bl := NewBootstrapLoader(dir, "", testLogger())
24 content := bl.LoadBootstrapContent()
25
26 if !strings.Contains(content, "Be helpful") {
27 t.Error("expected SOUL.md content")
28 }
29 if !strings.Contains(content, "I prefer Go") {
30 t.Error("expected USER.md content")
31 }
32}
33
34func TestLoadBootstrapContent_Priority(t *testing.T) {
35 workspace := t.TempDir()

Callers

nothing calls this directly

Calls 4

LoadBootstrapContentMethod · 0.95
NewBootstrapLoaderFunction · 0.85
testLoggerFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected