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

Function make_hash

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

Helper: make a Hash from a byte pattern.

(byte: u8)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected