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

Function test_unrecord_outcome_new

atomic-repository/src/unrecord.rs:763–772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

761
762 #[test]
763 fn test_unrecord_outcome_new() {
764 let hash = Hash::of(b"test");
765 let state = Merkle::of(b"state");
766 let outcome = UnrecordOutcome::new(vec![hash], state, 10);
767
768 assert_eq!(outcome.count(), 1);
769 assert!(outcome.has_changes());
770 assert_eq!(outcome.new_count, 10);
771 assert!(!outcome.was_dry_run);
772 }
773
774 #[test]
775 fn test_unrecord_outcome_empty() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected