pub enum SuiteEventPayload {
CaseFound(CaseFound),
CaseStarted(CaseStarted),
CaseStopped(CaseStopped),
CaseFinished(CaseFinished),
CaseArtifact(CaseArtifact),
SuiteArtifact(SuiteArtifact),
SuiteStarted(SuiteStarted),
SuiteStopped(SuiteStopped),
// some variants omitted
}
Expand description
Various events for test execution.
First event for a test case will always be case_found
and last will be
case_finished
. Events case_started
and case_artifact
can come in any
order. There can be some case_artifact
between case_stopped
and
case_finished
. suite_stopped
event will always fire when the whole
suite has finished executing. Note suite_artifact
may fire at any time.
In the case where the client completely drains all events for a suite,
case_stopped
and case_finished
will be reported for all found test
cases, even if the test component fails to report a result.
In the case a test is hung, GetEvents will hang and not complete, unless
a timeout has been specified in RunOptions.
Variants§
CaseFound(CaseFound)
A case was found.
CaseStarted(CaseStarted)
A case started execution
CaseStopped(CaseStopped)
A case stopped executing, includes the pass/fail/skipped result of the case. The client might still get artifacts pertaining to this test after this event.
CaseFinished(CaseFinished)
A case has finished and all artifact events have been dispatched to the client.
CaseArtifact(CaseArtifact)
Artifact from a case
SuiteArtifact(SuiteArtifact)
Artifact from a suite.
SuiteStarted(SuiteStarted)
Suite started execution
SuiteStopped(SuiteStopped)
Suite run stopped executing, includes the result of the suite. The client might still get artifacts pertaining to this suite after this event.
Implementations§
Source§impl SuiteEventPayload
impl SuiteEventPayload
pub fn ordinal(&self) -> u64
pub fn unknown_variant_for_testing() -> Self
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Debug for SuiteEventPayload
impl Debug for SuiteEventPayload
Source§impl Decode<SuiteEventPayload, DefaultFuchsiaResourceDialect> for SuiteEventPayload
impl Decode<SuiteEventPayload, DefaultFuchsiaResourceDialect> for SuiteEventPayload
Source§impl Encode<SuiteEventPayload, DefaultFuchsiaResourceDialect> for &mut SuiteEventPayload
impl Encode<SuiteEventPayload, DefaultFuchsiaResourceDialect> for &mut SuiteEventPayload
Source§impl PartialEq for SuiteEventPayload
impl PartialEq for SuiteEventPayload
Source§impl ResourceTypeMarker for SuiteEventPayload
impl ResourceTypeMarker for SuiteEventPayload
Source§type Borrowed<'a> = &'a mut SuiteEventPayload
type Borrowed<'a> = &'a mut SuiteEventPayload
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for SuiteEventPayload
impl TypeMarker for SuiteEventPayload
Source§type Owned = SuiteEventPayload
type Owned = SuiteEventPayload
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.