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

Function sample

atomic-repository/src/repository/conflict_object.rs:645–660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643 }
644
645 fn sample() -> ConflictSetObject {
646 ConflictSetObject {
647 version: CONFLICT_SET_VERSION,
648 files: vec![ConflictFileObject {
649 path: b"src/lib.rs".to_vec(),
650 inode: 7,
651 entries: vec![ConflictEntryObject {
652 kind: ConflictEntryKind::Order,
653 line: Some(3),
654 base: None,
655 sides: vec![side(1), side(2)],
656 claimants: Vec::new(),
657 }],
658 }],
659 }
660 }
661
662 #[test]
663 fn canonical_bytes_are_deterministic_and_hash_stable() {

Calls

no outgoing calls