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

Function make_hash

atomic-core/src/change/format_v3/hash_table.rs:757–759  ·  view source on GitHub ↗

Helper: create a hash filled with a single byte value.

(byte: u8)

Source from the content-addressed store, hash-verified

755
756 /// Helper: create a hash filled with a single byte value.
757 fn make_hash(byte: u8) -> [u8; 32] {
758 [byte; 32]
759 }
760
761 // ── Construction ───────────────────────────────────────────────
762

Callers 15

test_from_hashes_singleFunction · 0.70
test_insert_new_hashFunction · 0.70
test_insert_idempotentFunction · 0.70
test_lookup_existingFunction · 0.70
test_lookup_missingFunction · 0.70
test_require_existingFunction · 0.70
test_require_missingFunction · 0.70

Calls

no outgoing calls

Tested by 15

test_from_hashes_singleFunction · 0.56
test_insert_new_hashFunction · 0.56
test_insert_idempotentFunction · 0.56
test_lookup_existingFunction · 0.56
test_lookup_missingFunction · 0.56
test_require_existingFunction · 0.56
test_require_missingFunction · 0.56