()
| 233 | |
| 234 | #[test] |
| 235 | fn test_manifest_with_entries() { |
| 236 | let manifest = ChunkManifest::new(vec![ |
| 237 | ChunkManifestEntry::new(0, [0xAA; 32], 32000, 65536), |
| 238 | ChunkManifestEntry::new(1, [0xBB; 32], 28000, 65536), |
| 239 | ChunkManifestEntry::new(2, [0xCC; 32], 15000, 40000), |
| 240 | ]); |
| 241 | |
| 242 | assert_eq!(manifest.chunk_count(), 3); |
| 243 | assert!(!manifest.is_empty()); |
| 244 | assert_eq!(manifest.total_compressed(), 75000); |
| 245 | assert_eq!(manifest.total_uncompressed(), 171072); |
| 246 | } |
| 247 | |
| 248 | #[test] |
| 249 | fn test_manifest_hash_set() { |
nothing calls this directly
no outgoing calls
no test coverage detected