@ -62,7 +62,7 @@ func TestDataUsageUpdate(t *testing.T) {
return 0 , nil
}
got , err := crawlDataFolder ( context . Background ( ) , base , dataUsageCache { Info : dataUsageCacheInfo { Name : bucket } } , func ( ) { } , getSize )
got , err := crawlDataFolder ( context . Background ( ) , base , dataUsageCache { Info : dataUsageCacheInfo { Name : bucket } } , getSize )
if err != nil {
t . Fatal ( err )
}
@ -183,7 +183,7 @@ func TestDataUsageUpdate(t *testing.T) {
} ,
}
createUsageTestFiles ( t , base , bucket , files )
got , err = crawlDataFolder ( context . Background ( ) , base , got , func ( ) { } , getSize )
got , err = crawlDataFolder ( context . Background ( ) , base , got , getSize )
if err != nil {
t . Fatal ( err )
}
@ -268,7 +268,7 @@ func TestDataUsageUpdate(t *testing.T) {
}
// Changed dir must be picked up in this many cycles.
for i := 0 ; i < dataUsageUpdateDirCycles ; i ++ {
got , err = crawlDataFolder ( context . Background ( ) , base , got , func ( ) { } , getSize )
got , err = crawlDataFolder ( context . Background ( ) , base , got , getSize )
if err != nil {
t . Fatal ( err )
}
@ -355,7 +355,7 @@ func TestDataUsageUpdatePrefix(t *testing.T) {
}
return 0 , nil
}
got , err := crawlDataFolder ( context . Background ( ) , base , dataUsageCache { Info : dataUsageCacheInfo { Name : "bucket" } } , func ( ) { } , getSize )
got , err := crawlDataFolder ( context . Background ( ) , base , dataUsageCache { Info : dataUsageCacheInfo { Name : "bucket" } } , getSize )
if err != nil {
t . Fatal ( err )
}
@ -465,7 +465,7 @@ func TestDataUsageUpdatePrefix(t *testing.T) {
} ,
}
createUsageTestFiles ( t , base , "" , files )
got , err = crawlDataFolder ( context . Background ( ) , base , got , func ( ) { } , getSize )
got , err = crawlDataFolder ( context . Background ( ) , base , got , getSize )
if err != nil {
t . Fatal ( err )
}
@ -548,7 +548,7 @@ func TestDataUsageUpdatePrefix(t *testing.T) {
}
// Changed dir must be picked up in this many cycles.
for i := 0 ; i < dataUsageUpdateDirCycles ; i ++ {
got , err = crawlDataFolder ( context . Background ( ) , base , got , func ( ) { } , getSize )
got , err = crawlDataFolder ( context . Background ( ) , base , got , getSize )
if err != nil {
t . Fatal ( err )
}
@ -652,7 +652,7 @@ func TestDataUsageCacheSerialize(t *testing.T) {
}
return 0 , nil
}
want , err := crawlDataFolder ( context . Background ( ) , base , dataUsageCache { Info : dataUsageCacheInfo { Name : bucket } } , func ( ) { } , getSize )
want , err := crawlDataFolder ( context . Background ( ) , base , dataUsageCache { Info : dataUsageCacheInfo { Name : bucket } } , getSize )
if err != nil {
t . Fatal ( err )
}