()
| 1126 | |
| 1127 | #[test] |
| 1128 | fn test_archive_outcome_display() { |
| 1129 | let state = Merkle::of(b"test"); |
| 1130 | let mut manifest = ArchiveManifest::new(); |
| 1131 | manifest.add(ArchiveEntry::file("test.txt", 100)); |
| 1132 | |
| 1133 | let outcome = ArchiveOutcome::new( |
| 1134 | PathBuf::from("test.tar.gz"), |
| 1135 | ArchiveFormat::TarGz, |
| 1136 | state, |
| 1137 | manifest, |
| 1138 | ) |
| 1139 | .with_archive_size(50); |
| 1140 | |
| 1141 | let display = format!("{}", outcome); |
| 1142 | assert!(display.contains("tar.gz")); |
| 1143 | assert!(display.contains("1 files")); |
| 1144 | } |
| 1145 | |
| 1146 | // DirectoryArchive Tests |
| 1147 |
nothing calls this directly
no test coverage detected