(actual, expected []fileInfo)
| 382 | } |
| 383 | |
| 384 | func compareDirectoryContents(actual, expected []fileInfo) error { |
| 385 | if len(actual) != len(expected) { |
| 386 | return fmt.Errorf("len(actual) = %d; len(expected) = %d", len(actual), len(expected)) |
| 387 | } |
| 388 | |
| 389 | for i := range actual { |
| 390 | if actual[i] != expected[i] { |
| 391 | return fmt.Errorf("mismatch; actual %#v != expected %#v", actual[i], expected[i]) |
| 392 | } |
| 393 | } |
| 394 | return nil |
| 395 | } |
| 396 | |
| 397 | type fileInfo struct { |
| 398 | name string |
no outgoing calls