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

Function expect_unsupported

atomic-core/src/pristine/txn/pristine.rs:795–801  ·  view source on GitHub ↗
(result: PristineResult<Pristine>)

Source from the content-addressed store, hash-verified

793 }
794
795 fn expect_unsupported(result: PristineResult<Pristine>) -> PristineError {
796 match result {
797 Ok(_) => panic!("open must reject unsupported repository capabilities"),
798 Err(error @ PristineError::UnsupportedRequiredCapabilities { .. }) => error,
799 Err(error) => panic!("expected unsupported capability error, got {error}"),
800 }
801 }
802
803 #[test]
804 fn unsupported_capability_rejects_all_open_modes_before_table_initialization() {

Calls

no outgoing calls