pub struct TestServer<T: ComponentLauncher> {
pub launcher: T,
}
Expand description
Implements fuchsia.test.Suite
and runs provided test.
Fields§
§launcher: T
Implementations§
Source§impl<T> TestServer<T>where
T: ComponentLauncher + 'static,
impl<T> TestServer<T>where
T: ComponentLauncher + 'static,
Trait Implementations§
Source§impl<T: Default + ComponentLauncher> Default for TestServer<T>
impl<T: Default + ComponentLauncher> Default for TestServer<T>
Source§fn default() -> TestServer<T>
fn default() -> TestServer<T>
Returns the “default value” for a type. Read more
Source§impl<T> SuiteServer for TestServer<T>where
T: ComponentLauncher + 'static,
impl<T> SuiteServer for TestServer<T>where
T: ComponentLauncher + 'static,
Source§fn enumerate_tests<'life0, 'async_trait>(
&'life0 self,
_test_component: Arc<Component>,
) -> Pin<Box<dyn Future<Output = Result<EnumeratedTestCases, EnumerationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn enumerate_tests<'life0, 'async_trait>(
&'life0 self,
_test_component: Arc<Component>,
) -> Pin<Box<dyn Future<Output = Result<EnumeratedTestCases, EnumerationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Launches test process and gets test list out. Returns list of tests names in the format defined by gtests, i.e FOO.Bar. It only runs enumeration logic once, caches and returns the same result back on subsequent calls.
Source§fn run(
self,
weak_component: Weak<Component>,
test_url: &str,
stream: SuiteRequestStream,
) -> AbortHandle
fn run( self, weak_component: Weak<Component>, test_url: &str, stream: SuiteRequestStream, ) -> AbortHandle
Run this server.
Source§fn run_tests<'life0, 'life1, 'async_trait>(
&'life0 self,
invocations: Vec<Invocation>,
run_options: RunOptions,
component: Arc<Component>,
run_listener: &'life1 RunListenerProxy,
) -> Pin<Box<dyn Future<Output = Result<(), RunTestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run_tests<'life0, 'life1, 'async_trait>(
&'life0 self,
invocations: Vec<Invocation>,
run_options: RunOptions,
component: Arc<Component>,
run_listener: &'life1 RunListenerProxy,
) -> Pin<Box<dyn Future<Output = Result<(), RunTestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Runs requested tests and sends test events to the given listener.
fn get_parallel_count(parallel: u16) -> usize
§fn serve_test_suite<'async_trait>(
self,
stream: SuiteRequestStream,
component: Weak<Component>,
) -> Pin<Box<dyn Future<Output = Result<(), SuiteServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn serve_test_suite<'async_trait>(
self,
stream: SuiteRequestStream,
component: Weak<Component>,
) -> Pin<Box<dyn Future<Output = Result<(), SuiteServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
Implements
fuchsia.test.Suite
service and runs test.Auto Trait Implementations§
impl<T> Freeze for TestServer<T>where
T: Freeze,
impl<T> RefUnwindSafe for TestServer<T>where
T: RefUnwindSafe,
impl<T> Send for TestServer<T>
impl<T> Sync for TestServer<T>
impl<T> Unpin for TestServer<T>where
T: Unpin,
impl<T> UnwindSafe for TestServer<T>where
T: UnwindSafe,
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