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

Function test_outcome_new

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

Source from the content-addressed store, hash-verified

332
333#[test]
334fn test_outcome_new() {
335 let header = ChangeHeader::builder().message("Test").build();
336 let change = Change::empty(header);
337 let hash = Hash::of(b"test");
338 let stats = RecordStats::new();
339
340 let outcome = RecordOutcome::new(change, hash, stats);
341 assert!(!outcome.was_saved());
342 assert!(!outcome.was_applied());
343 assert!(outcome.new_state().is_none());
344}
345
346#[test]
347fn test_outcome_set_saved() {

Callers

nothing calls this directly

Calls 2

buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected