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

Function make_hash

atomic-core/src/change/format_v3/compact/tests.rs:20–22  ·  view source on GitHub ↗

Helper: make a Hash from a byte pattern.

(byte: u8)

Source from the content-addressed store, hash-verified

18
19/// Helper: make a Hash from a byte pattern.
20fn make_hash(byte: u8) -> Hash {
21 Hash::from_bytes([byte; 32])
22}
23
24/// Helper: make a Position<Option<Hash>> with a specific hash.
25fn make_position(hash: Option<Hash>, pos: u64) -> Position<Option<Hash>> {

Calls

no outgoing calls

Tested by

no test coverage detected