Asserts that the two groups of [`PartitionedFile`] are the same (PartitionedFile doesn't implement PartialEq)
(
expected: Option<Vec<FileGroup>>,
actual: Option<Vec<FileGroup>>,
)
| 1203 | /// Asserts that the two groups of [`PartitionedFile`] are the same |
| 1204 | /// (PartitionedFile doesn't implement PartialEq) |
| 1205 | fn assert_partitioned_files( |
| 1206 | expected: Option<Vec<FileGroup>>, |
| 1207 | actual: Option<Vec<FileGroup>>, |
| 1208 | ) { |
| 1209 | match (expected, actual) { |
| 1210 | (None, None) => {} |
| 1211 | (Some(_), None) => panic!("Expected Some, got None"), |
| 1212 | (None, Some(_)) => panic!("Expected None, got Some"), |
| 1213 | (Some(expected), Some(actual)) => { |
| 1214 | let expected_string = format!("{expected:#?}"); |
| 1215 | let actual_string = format!("{actual:#?}"); |
| 1216 | assert_eq!(expected_string, actual_string); |
| 1217 | } |
| 1218 | } |
| 1219 | } |
| 1220 | |
| 1221 | /// returns a partitioned file with the specified path and size |
| 1222 | fn pfile(path: impl Into<String>, file_size: u64) -> PartitionedFile { |
no outgoing calls
searching dependent graphs…