(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestVectorIndex_NilIsSafe(t *testing.T) { |
| 41 | var v *VectorIndex |
| 42 | if v.Enabled() { |
| 43 | t.Error("nil index must report not enabled") |
| 44 | } |
| 45 | if v.Count() != 0 { |
| 46 | t.Error("nil index must count 0") |
| 47 | } |
| 48 | if got := v.MissingFor([]string{"x"}); got != nil { |
| 49 | t.Errorf("nil index MissingFor must be nil; got %v", got) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestVectorIndex_NullProviderDisablesAll(t *testing.T) { |
| 54 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected