()
| 1004 | |
| 1005 | #[test] |
| 1006 | fn test_content_chunk_data() { |
| 1007 | let source = b"Hello, World!"; |
| 1008 | let chunk = ContentChunk { |
| 1009 | offset: 7, |
| 1010 | length: 6, |
| 1011 | hash: [0; 32], |
| 1012 | index: 0, |
| 1013 | }; |
| 1014 | assert_eq!(chunk.data(source), b"World!"); |
| 1015 | } |
| 1016 | |
| 1017 | #[test] |
| 1018 | fn test_content_chunk_display() { |
nothing calls this directly
no outgoing calls
no test coverage detected