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

Function test_from_pristine_error

atomic-core/src/crdt/apply/error.rs:1068–1076  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1066
1067 #[test]
1068 fn test_from_pristine_error() {
1069 let pristine_err = PristineError::ViewNotFound {
1070 name: "test".to_string(),
1071 };
1072 let err: ApplyError = pristine_err.into();
1073
1074 assert!(err.is_storage_error());
1075 assert!(err.to_string().contains("unknown operation"));
1076 }
1077
1078 // ApplyResult Tests
1079

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected