(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestIndex_Has(t *testing.T) { |
| 20 | t.Parallel() |
| 21 | idx := filefinder.NewIndex() |
| 22 | idx.Add("foo/bar.go", 0) |
| 23 | if !idx.Has("foo/bar.go") { |
| 24 | t.Fatal("expected Has to return true") |
| 25 | } |
| 26 | if idx.Has("foo/missing.go") { |
| 27 | t.Fatal("expected Has to return false for missing path") |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestIndex_Remove(t *testing.T) { |
| 32 | t.Parallel() |