Lines
100 %
Functions
Branches
use super::*;
#[test]
fn without_the_flag_the_run_is_refused() {
let err = require(false, Some("postgres://h/nomisync_preflight_1"));
assert!(err.is_err_and(|e| e.contains("writes")));
}
fn a_restored_copy_is_allowed() {
assert_eq!(
require(true, Some("postgres://h/nomisync_preflight_1?x=y")),
Ok(())
);
require(true, Some("postgres://ray@localhost/nomisync_prodsnap")),
fn any_other_database_is_refused() {
assert!(require(true, Some("postgres://h/nomisync")).is_err());
assert!(require(true, None).is_err());