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

Function test_outcome_new

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

Source from the content-addressed store, hash-verified

347
348#[test]
349fn test_outcome_new() {
350 let header = ChangeHeader::builder().message("Test").build();
351 let change = Change::empty(header);
352 let hash = Hash::of(b"test");
353 let stats = RecordStats::new();
354
355 let outcome = RecordOutcome::new(change, hash, stats);
356 assert!(!outcome.was_saved());
357 assert!(!outcome.was_applied());
358 assert!(outcome.new_state().is_none());
359}
360
361#[test]
362fn test_outcome_set_saved() {

Callers

nothing calls this directly

Calls 2

buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected