()
| 448 | |
| 449 | #[test] |
| 450 | fn test_negotiation_empty_manifest() { |
| 451 | let manifest = ChunkManifest::empty(); |
| 452 | let result = ChunkNegotiation::compute(&manifest, &[[0xAA; 32]]); |
| 453 | assert!(result.is_complete()); |
| 454 | assert_eq!(result.total_chunks, 0); |
| 455 | } |
| 456 | |
| 457 | #[test] |
| 458 | fn test_negotiation_extra_haves_ignored() { |
nothing calls this directly
no outgoing calls
no test coverage detected