pub struct Config {
pub schema: String,
pub name: String,
pub run: Vec<String>,
pub normalize: Vec<String>,
pub normalizers: BTreeMap<String, String>,
pub timeout_secs: u64,
pub http: Option<HttpConfig>,
pub float_tolerance: Option<f64>,
pub float_files: BTreeMap<String, String>,
pub unordered: BTreeMap<String, Vec<String>>,
pub effects: Option<EffectsConfig>,
pub fresh: Vec<String>,
}Expand description
rust/app-cases/rust-anything.json: how to run the original, and the normalizers.
Fields§
§schema: String§name: String§run: Vec<String>§normalize: Vec<String>§normalizers: BTreeMap<String, String>§timeout_secs: u64§http: Option<HttpConfig>Set when the app is a server: cases are requests, in http/.
float_tolerance: Option<f64>Numbers in the output match within this relative tolerance.
float_files: BTreeMap<String, String>Written files holding raw floats, by path: compared value by value (f32le, f64le).
unordered: BTreeMap<String, Vec<String>>Outputs whose line order the original’s own runs disagreed on, by case: their lines must match in any order.
effects: Option<EffectsConfig>§fresh: Vec<String>CLIs: repository paths copied (from the snapshot in files/) into the working directory
before every case; a path ending in / gives its contents.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more