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

Function test_outcome_into_stats

atomic-core/src/crdt/apply/context.rs:1106–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1104
1105 #[test]
1106 fn test_outcome_into_stats() {
1107 let mut context = ApplyContext::with_defaults();
1108 context.record_trunk_created();
1109
1110 let outcome = context.finish();
1111 let stats = outcome.into_stats();
1112
1113 assert_eq!(stats.trunks_created(), 1);
1114 }
1115
1116 #[test]
1117 fn test_outcome_into_conflicts() {

Callers

nothing calls this directly

Calls 3

record_trunk_createdMethod · 0.80
into_statsMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected