just/tests/common.rs

31 lines
664 B
Rust
Raw Normal View History

pub(crate) use std::{
collections::BTreeMap,
2021-05-09 20:35:35 -07:00
env::{self, consts::EXE_SUFFIX},
2021-07-03 14:26:59 -07:00
error::Error,
fmt::Debug,
2021-05-09 20:35:35 -07:00
fs,
io::Write,
iter,
path::{Path, PathBuf, MAIN_SEPARATOR},
2021-07-03 14:26:59 -07:00
process::{Command, Output, Stdio},
str,
};
2021-11-17 00:07:48 -08:00
pub(crate) use ::{
cradle::input::Input,
executable_path::executable_path,
just::unindent,
libc::{EXIT_FAILURE, EXIT_SUCCESS},
pretty_assertions::Comparison,
regex::Regex,
serde_json::{json, Value},
tempfile::TempDir,
temptree::{temptree, tree, Tree},
which::which,
yaml_rust::YamlLoader,
};
2021-07-03 14:26:59 -07:00
pub(crate) use crate::{
assert_stdout::assert_stdout, assert_success::assert_success, tempdir::tempdir, test::Test,
2021-07-03 14:26:59 -07:00
};