pub struct PythonExecutor { /* private fields */ }Expand description
Executor that runs tests via Python subprocess.
Implementations§
Source§impl PythonExecutor
impl PythonExecutor
Sourcepub fn configure(&mut self, config: ExecutorConfig)
pub fn configure(&mut self, config: ExecutorConfig)
Configure the executor.
Sourcepub fn python_path(&self) -> &PathBuf
pub fn python_path(&self) -> &PathBuf
Get Python path.
Sourcepub async fn run_test(&self, node_id: &str) -> Result<TestResult>
pub async fn run_test(&self, node_id: &str) -> Result<TestResult>
Run a single test.
Sourcepub async fn run_tests(&self, node_ids: &[String]) -> Vec<TestResult>
pub async fn run_tests(&self, node_ids: &[String]) -> Vec<TestResult>
Run multiple tests in batch.
Trait Implementations§
Source§impl Clone for PythonExecutor
impl Clone for PythonExecutor
Source§fn clone(&self) -> PythonExecutor
fn clone(&self) -> PythonExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PythonExecutor
impl Debug for PythonExecutor
Source§impl Default for PythonExecutor
impl Default for PythonExecutor
Source§impl TestExecutor for PythonExecutor
impl TestExecutor for PythonExecutor
Source§fn run_test<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TestResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run_test<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TestResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run a single test and return the result.
Source§fn run_tests<'life0, 'life1, 'async_trait>(
&'life0 self,
node_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Vec<TestResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run_tests<'life0, 'life1, 'async_trait>(
&'life0 self,
node_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Vec<TestResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run multiple tests and return all results.
Source§fn configure(&mut self, config: ExecutorConfig)
fn configure(&mut self, config: ExecutorConfig)
Configure the executor with the given settings.
Source§fn execution_mode(&self) -> &'static str
fn execution_mode(&self) -> &'static str
Get the execution mode name for logging.
Auto Trait Implementations§
impl !RefUnwindSafe for PythonExecutor
impl !UnwindSafe for PythonExecutor
impl Freeze for PythonExecutor
impl Send for PythonExecutor
impl Sync for PythonExecutor
impl Unpin for PythonExecutor
impl UnsafeUnpin for PythonExecutor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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