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

Function test_outcome_display_failure

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

Source from the content-addressed store, hash-verified

1160
1161 #[test]
1162 fn test_outcome_display_failure() {
1163 let mut context = ApplyContext::with_defaults();
1164 context.mark_failed("test reason");
1165
1166 let outcome = context.finish();
1167 let display = outcome.to_string();
1168
1169 assert!(display.contains("Failed"));
1170 assert!(display.contains("test reason"));
1171 }
1172
1173 #[test]
1174 fn test_outcome_display_with_conflicts() {

Callers

nothing calls this directly

Calls 2

mark_failedMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected