pub struct Config {Show 13 fields
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>,
pub recorded: 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.
recorded: Vec<String>The cases the last app record wrote, so the next one can remove those it no longer
writes without touching cases written by hand.
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 Configwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const LeafNode<String, Vec<String>> is !null: Freeze,
PhantomData<Box<(String, Vec<String>)>>: Freeze,
PhantomData<HttpResponseRule>: Freeze,
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Configwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const LeafNode<String, Vec<String>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<String>)>>: UnsafeUnpin,
PhantomData<HttpResponseRule>: UnsafeUnpin,
impl UnwindSafe for Configwhere
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, Vec<String>>: UnwindSafe,
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