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

Function test_outcome_into_change

atomic-repository/src/record/tests.rs:419–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

417
418#[test]
419fn test_outcome_into_change() {
420 let header = ChangeHeader::builder().message("Take me").build();
421 let change = Change::empty(header);
422 let hash = Hash::of(b"test");
423 let stats = RecordStats::new();
424
425 let outcome = RecordOutcome::new(change, hash, stats);
426 let taken = outcome.into_change();
427 assert_eq!(taken.message(), "Take me");
428}
429
430// Helper Function Tests
431

Callers

nothing calls this directly

Calls 3

buildMethod · 0.45
messageMethod · 0.45
into_changeMethod · 0.45

Tested by

no test coverage detected