(t *testing.T)
| 56 | } |
| 57 | |
| 58 | func TestFormatMemoryNotice(t *testing.T) { |
| 59 | // Empty summary -> empty notice. |
| 60 | if s := formatMemoryNotice(memory.ExtractionSummary{}); s != "" { |
| 61 | t.Errorf("empty summary should yield empty notice, got %q", s) |
| 62 | } |
| 63 | // Non-empty summary -> non-empty notice mentioning the prefix. |
| 64 | s := formatMemoryNotice(memory.ExtractionSummary{FactsAdded: 2, ProfileUpdated: true, ProjectsUpserted: 1, TopicsRecorded: 3}) |
| 65 | if s == "" { |
| 66 | t.Error("non-empty summary should yield a notice") |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func TestSplitProfileKV(t *testing.T) { |
| 71 | cases := []struct { |
nothing calls this directly
no test coverage detected