pub struct TestServer<T: ComponentLauncher> {
pub launcher: T,
}Expand description
Implements fuchsia.test.Suite and runs provided test.
Fields§
§launcher: TImplementations§
Source§impl<T> TestServer<T>where
T: ComponentLauncher + 'static,
impl<T> TestServer<T>where
T: ComponentLauncher + 'static,
pub fn new(launcher_: T) -> Self
pub fn validate_args(_args: &Vec<String>) -> Result<(), ArgumentError>
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
Source§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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
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