MCPcopy
hub / github.com/rclone/rclone / TestPatternYears

Function TestPatternYears

backend/googlephotos/pattern_test.go:395–405  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

393}
394
395func TestPatternYears(t *testing.T) {
396 f := newTestLister(t)
397 entries, err := years(context.Background(), f, "potato/", nil)
398 require.NoError(t, err)
399
400 year := 2000
401 for _, entry := range entries {
402 assert.Equal(t, "potato/"+fmt.Sprint(year), entry.Remote())
403 year++
404 }
405}
406
407func TestPatternMonths(t *testing.T) {
408 f := newTestLister(t)

Callers

nothing calls this directly

Calls 4

newTestListerFunction · 0.85
yearsFunction · 0.85
RemoteMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…