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

Function TestManager_GetMemoryContext

cli/workspace/memory/store_test.go:41–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func TestManager_GetMemoryContext(t *testing.T) {
42 dir := t.TempDir()
43 mgr := NewManager(dir, DefaultConfig(), testLogger())
44
45 _ = mgr.AppendLongTerm("- Important architectural decision about memory")
46 _ = mgr.WriteDailyNote("Worked on memory system today")
47
48 ctx := mgr.GetMemoryContext()
49 if ctx == "" {
50 t.Error("expected non-empty memory context")
51 }
52 if !strings.Contains(ctx, "Important architectural") {
53 t.Error("expected fact in context")
54 }
55}
56
57func TestManager_ProcessExtraction(t *testing.T) {
58 dir := t.TempDir()

Callers

nothing calls this directly

Calls 7

AppendLongTermMethod · 0.95
WriteDailyNoteMethod · 0.95
GetMemoryContextMethod · 0.95
NewManagerFunction · 0.70
DefaultConfigFunction · 0.70
testLoggerFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected