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

Function test_context_finish_success

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

Source from the content-addressed store, hash-verified

1042
1043 #[test]
1044 fn test_context_finish_success() {
1045 let mut context = ApplyContext::with_defaults();
1046 context.record_trunk_created();
1047 context.record_branch_inserted();
1048
1049 let outcome = context.finish();
1050
1051 assert!(outcome.is_success());
1052 assert!(!outcome.is_failure());
1053 assert_eq!(outcome.stats().total_operations(), 2);
1054 assert!(!outcome.has_conflicts());
1055 }
1056
1057 #[test]
1058 fn test_context_finish_failure() {

Callers

nothing calls this directly

Calls 3

record_trunk_createdMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected