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

Function test_unrecord_outcome_with_warning

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

Source from the content-addressed store, hash-verified

790
791 #[test]
792 fn test_unrecord_outcome_with_warning() {
793 let state = Merkle::of(b"state");
794 let outcome = UnrecordOutcome::new(vec![], state, 0).with_warning("Test warning");
795
796 assert_eq!(outcome.warnings.len(), 1);
797 assert_eq!(outcome.warnings[0], "Test warning");
798 }
799
800 #[test]
801 fn test_unrecord_outcome_display() {

Callers

nothing calls this directly

Calls 1

with_warningMethod · 0.45

Tested by

no test coverage detected