Find checks off an item
(t *testing.T, obj fs.Object, precision time.Duration)
| 184 | |
| 185 | // Find checks off an item |
| 186 | func (is *Items) Find(t *testing.T, obj fs.Object, precision time.Duration) { |
| 187 | remote := Normalize(obj.Remote()) |
| 188 | i, ok := is.byName[remote] |
| 189 | if !ok { |
| 190 | i, ok = is.byNameAlt[remote] |
| 191 | assert.True(t, ok, fmt.Sprintf("Unexpected file %q", remote)) |
| 192 | } |
| 193 | if i != nil { |
| 194 | delete(is.byName, i.Path) |
| 195 | i.Check(t, obj, precision) |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | // Done checks all finished |
| 200 | func (is *Items) Done(t *testing.T) { |
no test coverage detected