MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_content_chunk_data

Function test_content_chunk_data

atomic-core/src/change/format_v3/chunking.rs:1006–1015  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected