pub struct TestConfiguration {
pub test_command: String,
pub test_args: Vec<String>,
pub working_directory: Option<String>,
pub required_exit_code: i32,
pub timeout_seconds: u64,
pub required_patterns: Vec<String>,
pub forbidden_patterns: Vec<String>,
}
Expand description
Test configuration
Fields§
§test_command: String
§test_args: Vec<String>
§working_directory: Option<String>
§required_exit_code: i32
§timeout_seconds: u64
§required_patterns: Vec<String>
§forbidden_patterns: Vec<String>
Implementations§
Source§impl TestConfiguration
impl TestConfiguration
pub fn new(test_command: String) -> Self
pub fn cargo_test() -> Self
pub fn with_args(self, args: Vec<String>) -> Self
pub fn with_timeout(self, seconds: u64) -> Self
pub fn with_required_pattern(self, pattern: String) -> Self
Trait Implementations§
Source§impl Clone for TestConfiguration
impl Clone for TestConfiguration
Source§fn clone(&self) -> TestConfiguration
fn clone(&self) -> TestConfiguration
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 TestConfiguration
impl Debug for TestConfiguration
Source§impl<'de> Deserialize<'de> for TestConfiguration
impl<'de> Deserialize<'de> for TestConfiguration
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 TestConfiguration
impl RefUnwindSafe for TestConfiguration
impl Send for TestConfiguration
impl Sync for TestConfiguration
impl Unpin for TestConfiguration
impl UnwindSafe for TestConfiguration
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