pub enum EventDetails {
SuiteStarted(SuiteStartedEventDetails),
TestCaseFound(TestCaseFoundEventDetails),
TestCaseStarted(TestCaseStartedEventDetails),
TestCaseArtifactGenerated(TestCaseArtifactGeneratedEventDetails),
TestCaseStopped(TestCaseStoppedEventDetails),
TestCaseFinished(TestCaseFinishedEventDetails),
SuiteArtifactGenerated(SuiteArtifactGeneratedEventDetails),
SuiteStopped(SuiteStoppedEventDetails),
// some variants omitted
}
Expand description
Details of an event delivered via SuiteController.GetEvents
.
A suite_started
event always precedes any events relating to test cases, and a
suite_stopped
event always follows any test case events. suite_artifact_generated
may
occur at any point, including before suite_started
and after suite_stopped
.
A test_case_found
event is produced for all test cases found in the suite.
If a particular test case run is enabled (based on RunSuiteOptions.test_case_filters
and
RunSuiteOptions.run_disabled_tests
), the following sequence is produced, regardless of whether
the test case is actually run, the run completes or whether or not it succeeds:
test_case_found
test_case_started
test_case_stopped
test_case_finished
test_case_artifact_generated
events for the test case may occur at any point after the
test_case_found
event and before test_case_finished
event for that test case. Note that
test case events for multiple events may be interleaved.
If a test case run is not enabled, only the test_case_found
event will be produced for
that test case.
Variants§
SuiteStarted(SuiteStartedEventDetails)
Suite started execution. suite_artifact_generated
events may occur before this event.
TestCaseFound(TestCaseFoundEventDetails)
A test_case was found. This is always the first event for a given test case.
TestCaseStarted(TestCaseStartedEventDetails)
A test case started execution. Only one test_case_started
event is produced for a given test case,
and it always precedes the test_case_stopped
event for that test case.
test_case_artifact_generated
events for the test case may occur before this event.
TestCaseArtifactGenerated(TestCaseArtifactGeneratedEventDetails)
Artifact from a test case. Note that test_case_artifact_generated
events for a given test
case may occur before test_case_started
and after test_case_stopped
.
TestCaseStopped(TestCaseStoppedEventDetails)
A test case stopped executing. This event includes the resulting TestCaseResult
of the test case.
test_case_artifact_generated
events for the case may occur after this event.
TestCaseFinished(TestCaseFinishedEventDetails)
A test case has finished and all artifact events have been dispatched to the client. This is always the last event for a given test case.
SuiteArtifactGenerated(SuiteArtifactGeneratedEventDetails)
Artifact pertaining to the entire suite.
SuiteStopped(SuiteStoppedEventDetails)
Suite run stopped executing. This event includes the resulting SuiteResult
of the suite.
suite_artifact_generated
events may occur after this event.
Implementations§
Source§impl EventDetails
impl EventDetails
pub fn ordinal(&self) -> u64
pub fn unknown_variant_for_testing() -> Self
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Debug for EventDetails
impl Debug for EventDetails
Source§impl Decode<EventDetails, DefaultFuchsiaResourceDialect> for EventDetails
impl Decode<EventDetails, DefaultFuchsiaResourceDialect> for EventDetails
Source§impl Encode<EventDetails, DefaultFuchsiaResourceDialect> for &mut EventDetails
impl Encode<EventDetails, DefaultFuchsiaResourceDialect> for &mut EventDetails
Source§impl PartialEq for EventDetails
impl PartialEq for EventDetails
Source§impl ResourceTypeMarker for EventDetails
impl ResourceTypeMarker for EventDetails
Source§type Borrowed<'a> = &'a mut EventDetails
type Borrowed<'a> = &'a mut EventDetails
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 EventDetails
impl TypeMarker for EventDetails
Source§type Owned = EventDetails
type Owned = EventDetails
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.