(expected, actual fs.FileInfo, label string)
| 707 | } |
| 708 | |
| 709 | func (s *system) checkFileInfosEqual(expected, actual fs.FileInfo, label string) { |
| 710 | if expected == nil && actual == nil { |
| 711 | return |
| 712 | } |
| 713 | diff := cmp.Diff(fileInfoToStatic(expected, true), fileInfoToStatic(actual, false)) |
| 714 | if diff != "" { |
| 715 | s.t.Errorf("%v (-got, +want):\n%s", label, diff) |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | func fileInfoToStatic(fi fs.FileInfo, fixupMode bool) fs.FileInfo { |
| 720 | mode := fi.Mode() |
no test coverage detected