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

Function test_outcome_clone

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

Source from the content-addressed store, hash-verified

1188
1189 #[test]
1190 fn test_outcome_clone() {
1191 let mut context = ApplyContext::with_defaults();
1192 context.record_trunk_created();
1193
1194 let outcome = context.finish();
1195 let cloned = outcome.clone();
1196
1197 assert_eq!(outcome.is_success(), cloned.is_success());
1198 assert_eq!(
1199 outcome.stats().trunks_created(),
1200 cloned.stats().trunks_created()
1201 );
1202 }
1203}

Callers

nothing calls this directly

Calls 3

record_trunk_createdMethod · 0.80
finishMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected