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

Function test_context_finish_failure

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

Source from the content-addressed store, hash-verified

1056
1057 #[test]
1058 fn test_context_finish_failure() {
1059 let mut context = ApplyContext::with_defaults();
1060 context.mark_failed("test failure reason");
1061
1062 let outcome = context.finish();
1063
1064 assert!(outcome.is_failure());
1065 assert!(!outcome.is_success());
1066 assert_eq!(outcome.failure_reason(), Some("test failure reason"));
1067 }
1068
1069 #[test]
1070 fn test_context_stats_mut() {

Callers

nothing calls this directly

Calls 2

mark_failedMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected