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

Function create_test_changelist_entry

atomic-cli/src/commands/pull/helpers.rs:471–479  ·  view source on GitHub ↗

Create a test changelist entry for testing.

(
        hash_bytes: &[u8],
        sequence: u64,
        tagged: bool,
    )

Source from the content-addressed store, hash-verified

469
470 /// Create a test changelist entry for testing.
471 fn create_test_changelist_entry(
472 hash_bytes: &[u8],
473 sequence: u64,
474 tagged: bool,
475 ) -> ChangelistEntry {
476 let hash = Hash::of(hash_bytes);
477 let merkle = Merkle::of(hash_bytes);
478 ChangelistEntry::new(sequence, hash.to_base32(), merkle.to_base32(), tagged)
479 }
480
481 /// Test calculating delta with empty remote.
482 #[test]

Callers

nothing calls this directly

Calls 1

to_base32Method · 0.45

Tested by

no test coverage detected