pub struct Runner { /* private fields */ }Implementations§
Source§impl Runner
impl Runner
pub fn new() -> Runner
pub fn with_config(cfg: Config) -> Runner
pub fn capture_http(&mut self)
pub fn capture_rust(&mut self)
pub fn terminate_channel(&mut self)
pub fn add_reporter(&mut self, reporter: impl Reporter + 'static + Send)
pub fn add_boxed_reporter( &mut self, reporter: Box<dyn Reporter + Send + 'static>, )
Sourcepub fn add_test(
&mut self,
name: &str,
module: &str,
factory: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'static>> + Sync + Send + 'static>,
)
pub fn add_test( &mut self, name: &str, module: &str, factory: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'static>> + Sync + Send + 'static>, )
Add a test case to the runner.
pub fn set_concurrency(&mut self, concurrency: usize)
Sourcepub async fn run(
&mut self,
project_names: &[String],
module_names: &[String],
test_names: &[String],
) -> Result<()>
pub async fn run( &mut self, project_names: &[String], module_names: &[String], test_names: &[String], ) -> Result<()>
Run tanu runner.
pub fn list(&self) -> Vec<&TestInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runner
impl !RefUnwindSafe for Runner
impl Send for Runner
impl !Sync for Runner
impl Unpin for Runner
impl !UnwindSafe for Runner
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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