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

Function test_hash_position

atomic-core/src/change/change.rs:878–880  ·  view source on GitHub ↗
(pos: u64)

Source from the content-addressed store, hash-verified

876 use std::io::Cursor;
877
878 fn test_hash_position(pos: u64) -> Position<Option<Hash>> {
879 Position::new(Some(Hash::of(b"test")), ChangePosition::new(pos))
880 }
881
882 fn test_new_vertex() -> Insertion<Option<Hash>> {
883 Insertion {

Calls

no outgoing calls

Tested by

no test coverage detected