()
| 777 | |
| 778 | #[test] |
| 779 | fn test_chunk_medium_data() { |
| 780 | // 500 KB of varied data — should produce multiple chunks |
| 781 | let data: Vec<u8> = (0..500_000).map(|i| (i % 251) as u8).collect(); |
| 782 | let chunks = chunk_content(&data, &ChunkingOptions::default()); |
| 783 | |
| 784 | // 500KB / 64KB avg ≈ 7-8 chunks |
| 785 | assert!(chunks.len() >= 2, "should produce multiple chunks"); |
| 786 | assert!(chunks.len() <= 50, "shouldn't produce too many chunks"); |
| 787 | |
| 788 | // Verify contiguous coverage |
| 789 | verify_chunks_cover_data(&data, &chunks); |
| 790 | } |
| 791 | |
| 792 | #[test] |
| 793 | fn test_chunk_large_data() { |
nothing calls this directly
no test coverage detected