MCPcopy
hub / github.com/rclone/rclone / Find

Method Find

fstest/fstest.go:186–197  ·  view source on GitHub ↗

Find checks off an item

(t *testing.T, obj fs.Object, precision time.Duration)

Source from the content-addressed store, hash-verified

184
185// Find checks off an item
186func (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
200func (is *Items) Done(t *testing.T) {

Callers 6

CheckListingWithRootFunction · 0.95
CompareItemsFunction · 0.95
readMetaDataForPathMethod · 0.45
NewObjectMethod · 0.45
GenerateParamsFunction · 0.45
StatMethod · 0.45

Calls 3

NormalizeFunction · 0.85
RemoteMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected