checkIndexConsistency verifies a number of invariants on FileInfos received in index messages.
(fs []FileInfo)
| 610 | // checkIndexConsistency verifies a number of invariants on FileInfos received in |
| 611 | // index messages. |
| 612 | func checkIndexConsistency(fs []FileInfo) error { |
| 613 | for _, f := range fs { |
| 614 | if err := checkFileInfoConsistency(f); err != nil { |
| 615 | return fmt.Errorf("%q: %w", f.Name, err) |
| 616 | } |
| 617 | } |
| 618 | return nil |
| 619 | } |
| 620 | |
| 621 | // checkFileInfoConsistency verifies a number of invariants on the given FileInfo |
| 622 | func checkFileInfoConsistency(f FileInfo) error { |
no test coverage detected