Build an in-memory store sufficient for wiring `health_router` in tests where the persistence layer itself is not under test.
()
| 626 | /// Build an in-memory store sufficient for wiring `health_router` in tests |
| 627 | /// where the persistence layer itself is not under test. |
| 628 | pub async fn test_health_store() -> Arc<Store> { |
| 629 | Arc::new( |
| 630 | Store::connect("sqlite::memory:") |
| 631 | .await |
| 632 | .expect("connect in-memory sqlite store for tests"), |
| 633 | ) |
| 634 | } |
| 635 | |
| 636 | /// Parse PEM cert bytes into a `RootCertStore`. |
| 637 | pub fn build_tls_root(cert_pem: &[u8]) -> RootCertStore { |
no test coverage detected