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

Function TestContextBuilder_EmptyFiles

cli/workspace/context_builder_test.go:39–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestContextBuilder_EmptyFiles(t *testing.T) {
40 bl := NewBootstrapLoader(t.TempDir(), t.TempDir(), testLogger())
41 ms := NewMemoryStore(t.TempDir(), testLogger())
42 cb := NewContextBuilder(bl, ms, t.TempDir())
43
44 result := cb.BuildSystemPromptPrefix()
45 if result != "" {
46 t.Errorf("expected empty result for missing files, got %q", result)
47 }
48}
49
50func TestContextBuilder_Cache(t *testing.T) {
51 wsDir := t.TempDir()

Callers

nothing calls this directly

Calls 6

NewBootstrapLoaderFunction · 0.85
NewContextBuilderFunction · 0.85
ErrorfMethod · 0.80
testLoggerFunction · 0.70
NewMemoryStoreFunction · 0.70

Tested by

no test coverage detected