googlephotos: make the start year configurable - fixes #3630

This commit is contained in:
Daven
2020-04-15 11:08:07 -06:00
committed by GitHub
parent 58ea15078f
commit 4c258787b5
3 changed files with 21 additions and 5 deletions

View File

@ -59,6 +59,11 @@ func (f *testLister) dirTime() time.Time {
return startTime
}
// mock startYear for testing
func (f *testLister) startYear() int {
return 2000
}
func TestPatternMatch(t *testing.T) {
for testNumber, test := range []struct {
// input