pub struct TestExpect {
pub status: Option<i32>,
pub stdout: Option<String>,
pub stdout_contains: Option<Vec<String>>,
pub stdout_regex: Option<String>,
pub stderr: Option<String>,
pub stderr_contains: Option<Vec<String>>,
pub files: HashMap<String, String>,
pub env: HashMap<String, String>,
pub max_time_ms: u64,
}Expand description
Expected results — supports status, stdout, stderr, VFS state, env state.
Fields§
§status: Option<i32>§stdout: Option<String>§stdout_contains: Option<Vec<String>>§stdout_regex: Option<String>§stderr: Option<String>§stderr_contains: Option<Vec<String>>§files: HashMap<String, String>Expected VFS file contents after execution.
env: HashMap<String, String>Expected environment variable values after execution.
max_time_ms: u64Maximum allowed execution time in milliseconds (0 = no limit).
Trait Implementations§
Source§impl Clone for TestExpect
impl Clone for TestExpect
Source§fn clone(&self) -> TestExpect
fn clone(&self) -> TestExpect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestExpect
impl Debug for TestExpect
Source§impl Default for TestExpect
impl Default for TestExpect
Source§fn default() -> TestExpect
fn default() -> TestExpect
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TestExpect
impl<'de> Deserialize<'de> for TestExpect
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 Freeze for TestExpect
impl RefUnwindSafe for TestExpect
impl Send for TestExpect
impl Sync for TestExpect
impl Unpin for TestExpect
impl UnsafeUnpin for TestExpect
impl UnwindSafe for TestExpect
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