pub struct TestCaseBuilder { /* private fields */ }Expand description
Builder for test cases with mutations
Implementations§
Source§impl TestCaseBuilder
impl TestCaseBuilder
Sourcepub fn source_code(self, code: impl Into<String>) -> Self
pub fn source_code(self, code: impl Into<String>) -> Self
Set the source code
Sourcepub fn source_language(self, language: Language) -> Self
pub fn source_language(self, language: Language) -> Self
Set the source language
Sourcepub fn mutation_operator(self, operator: MutationOperator) -> Self
pub fn mutation_operator(self, operator: MutationOperator) -> Self
Add a mutation operator
Trait Implementations§
Source§impl Debug for TestCaseBuilder
impl Debug for TestCaseBuilder
Source§impl Default for TestCaseBuilder
impl Default for TestCaseBuilder
Source§fn default() -> TestCaseBuilder
fn default() -> TestCaseBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestCaseBuilder
impl RefUnwindSafe for TestCaseBuilder
impl Send for TestCaseBuilder
impl Sync for TestCaseBuilder
impl Unpin for TestCaseBuilder
impl UnsafeUnpin for TestCaseBuilder
impl UnwindSafe for TestCaseBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more