()
| 743 | |
| 744 | #[test] |
| 745 | fn test_chunk_tiny_data() { |
| 746 | let data = b"Hello"; |
| 747 | let chunks = chunk_content(data, &ChunkingOptions::default()); |
| 748 | |
| 749 | assert_eq!(chunks.len(), 1); |
| 750 | assert_eq!(chunks[0].offset, 0); |
| 751 | assert_eq!(chunks[0].length, 5); |
| 752 | assert_eq!(chunks[0].index, 0); |
| 753 | assert_eq!(chunks[0].hash, *blake3::hash(data).as_bytes()); |
| 754 | } |
| 755 | |
| 756 | #[test] |
| 757 | fn test_chunk_exactly_min_size() { |
nothing calls this directly
no test coverage detected