surrealpatch/src/dbs/test.rs

12 lines
286 B
Rust
Raw Normal View History

use crate::ctx::Context;
use crate::dbs::executor::Executor;
use crate::dbs::Options;
use crate::dbs::Runtime;
pub fn mock<'a>() -> (Runtime, Options, Executor<'a>) {
let ctx = Context::default().freeze();
let opt = Options::default();
let exe = Executor::new();
(ctx, opt, exe)
}