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

Function test_outcome_new

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

Source from the content-addressed store, hash-verified

339
340#[test]
341fn test_outcome_new() {
342 let header = ChangeHeader::builder().message("Test").build();
343 let change = Change::empty(header);
344 let hash = Hash::of(b"test");
345 let stats = RecordStats::new();
346
347 let outcome = RecordOutcome::new(change, hash, stats);
348 assert!(!outcome.was_saved());
349 assert!(!outcome.was_applied());
350 assert!(outcome.new_state().is_none());
351}
352
353#[test]
354fn test_outcome_set_saved() {

Callers

nothing calls this directly

Calls 2

buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected