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

Function test_context_mark_failed

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

Source from the content-addressed store, hash-verified

1011
1012 #[test]
1013 fn test_context_mark_failed() {
1014 let mut context = ApplyContext::with_defaults();
1015
1016 assert!(!context.has_failed());
1017 context.mark_failed("test failure");
1018 assert!(context.has_failed());
1019 assert_eq!(context.failure_reason(), Some("test failure"));
1020 }
1021
1022 #[test]
1023 fn test_context_should_continue() {

Callers

nothing calls this directly

Calls 1

mark_failedMethod · 0.80

Tested by

no test coverage detected