@@ -468,7 +468,7 @@ func DriverTestEcho(t testing.TB, drivername string, driverOptions ...string) {
468
468
var root string
469
469
components := 10
470
470
471
- for depth := 0 ; depth < components ; depth ++ {
471
+ for depth := range components {
472
472
base := stringid .GenerateRandomID ()
473
473
second := stringid .GenerateRandomID ()
474
474
third := stringid .GenerateRandomID ()
@@ -486,7 +486,7 @@ func DriverTestEcho(t testing.TB, drivername string, driverOptions ...string) {
486
486
}
487
487
paths := []string {}
488
488
path := "/"
489
- for i := 0 ; i < components - 1 ; i ++ {
489
+ for i := range components - 1 {
490
490
path = filepath .Join (path , fmt .Sprintf ("subdir%d" , i + 1 ))
491
491
paths = append (paths , path )
492
492
if err = os .Mkdir (filepath .Join (root , path ), 0o700 ); err != nil {
@@ -520,7 +520,7 @@ func DriverTestEcho(t testing.TB, drivername string, driverOptions ...string) {
520
520
t .Fatal (err )
521
521
}
522
522
expectedChanges = []archive.Change {}
523
- for i := 0 ; i < depth ; i ++ {
523
+ for i := range depth {
524
524
expectedChanges = append (expectedChanges , archive.Change {Kind : archive .ChangeModify , Path : paths [i ]})
525
525
}
526
526
expectedChanges = append (expectedChanges , archive.Change {Kind : archive .ChangeDelete , Path : paths [depth ]})
@@ -541,7 +541,7 @@ func DriverTestEcho(t testing.TB, drivername string, driverOptions ...string) {
541
541
}
542
542
543
543
expectedChanges = []archive.Change {}
544
- for i := 0 ; i < depth ; i ++ {
544
+ for i := range depth {
545
545
expectedChanges = append (expectedChanges , archive.Change {Kind : archive .ChangeModify , Path : paths [i ]})
546
546
}
547
547
for i := depth ; i < components - 1 ; i ++ {
0 commit comments