#![allow(dead_code)]
use schematic::{Cacher, HandlerError};
use std::path::PathBuf;
use std::{env, fs};
pub fn get_fixture_path(name: &str) -> PathBuf {
PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap())
.join("tests/__fixtures__")
.join(name)
}
pub struct SandboxCacher {
pub root: PathBuf,
}
impl Cacher for SandboxCacher {
fn get_file_path(&self, url: &str) -> Result