(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestReadWriteLongTerm(t *testing.T) { |
| 12 | dir := t.TempDir() |
| 13 | ms := NewMemoryStore(dir, testLogger()) |
| 14 | |
| 15 | if err := ms.WriteLongTerm("# Key Facts\n- Go project"); err != nil { |
| 16 | t.Fatalf("write failed: %v", err) |
| 17 | } |
| 18 | |
| 19 | content := ms.ReadLongTerm() |
| 20 | if !strings.Contains(content, "Go project") { |
| 21 | t.Errorf("expected 'Go project', got %q", content) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func TestAppendLongTerm(t *testing.T) { |
| 26 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected