(t *testing.T)
| 121 | } |
| 122 | |
| 123 | func TestVectorIndex_ForgetRemoves(t *testing.T) { |
| 124 | dir := t.TempDir() |
| 125 | provider := &fakeProvider{dim: 16} |
| 126 | v := NewVectorIndex(dir, provider, nil) |
| 127 | _ = v.BackfillFacts(context.Background(), map[string]string{"f1": "alpha", "f2": "beta"}) |
| 128 | v.Forget("f1") |
| 129 | if v.Count() != 1 { |
| 130 | t.Errorf("Forget should leave 1 entry; got %d", v.Count()) |
| 131 | } |
| 132 | } |
nothing calls this directly
no test coverage detected