Struct EntityReporter

Source
pub struct EntityReporter<E, T: Borrow<dyn Reporter + Send + Sync + 'static>> { /* private fields */ }

Implementations§

Source§

impl<E, T: Borrow<dyn Reporter + Send + Sync + 'static>> EntityReporter<E, T>

Source

pub fn new_artifact( &self, artifact_type: &ArtifactType, ) -> Result<Box<dyn Write + Send + Sync + 'static>, Error>

Create a new artifact scoped to the suite.

Source

pub fn new_directory_artifact( &self, artifact_type: &DirectoryArtifactType, component_moniker: Option<String>, ) -> Result<Box<dyn DirectoryWrite + Send + Sync + 'static>, Error>

Create a new directory artifact scoped to the suite.

Source

pub fn started(&self, timestamp: Timestamp) -> Result<(), Error>

Record that the suite has started.

Source

pub fn stopped( &self, outcome: &ReportedOutcome, timestamp: Timestamp, ) -> Result<(), Error>

Record the outcome of the suite.

Source

pub fn finished(self) -> Result<(), Error>

Finalize and persist the test run.

Source§

impl EntityReporter<(), Box<dyn Reporter + Sync + Send>>

Source

pub fn new_ansi_filtered<R: 'static + Reporter + Send + Sync>( reporter: R, ) -> Self

Create a RunReporter, where stdout, stderr, syslog, and restricted log artifact types are sanitized for ANSI escape sequences before being passed along to |reporter|.

Source

pub fn new<R: 'static + Reporter + Send + Sync>(reporter: R) -> Self

Create a RunReporter.

Source

pub fn set_expected_suites(&self, expected_suites: u32)

Set the number of expected suites for the run.

Source

pub fn new_suite( &self, url: &str, suite_id: &SuiteId, ) -> Result<SuiteReporter<'_>, Error>

Record a new suite under the test run.

Source§

impl<'a> EntityReporter<SuiteId, &'a (dyn Reporter + Sync + Send + 'static)>

Source

pub fn new_case( &self, name: &str, case_id: &CaseId, ) -> Result<CaseReporter<'_>, Error>

Record a new suite under the suite.

Source

pub fn set_tags(&self, tags: Vec<TestTag>)

Set the tags for this suite.

Auto Trait Implementations§

§

impl<E, T> Freeze for EntityReporter<E, T>
where T: Freeze,

§

impl<E, T> RefUnwindSafe for EntityReporter<E, T>

§

impl<E, T> Send for EntityReporter<E, T>
where T: Send, E: Send,

§

impl<E, T> Sync for EntityReporter<E, T>
where T: Sync, E: Sync,

§

impl<E, T> Unpin for EntityReporter<E, T>
where T: Unpin, E: Unpin,

§

impl<E, T> UnwindSafe for EntityReporter<E, T>
where T: UnwindSafe, E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoAny for T
where T: 'static + Send + Sync,

Source§

fn into_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Cast the given object into a dyn std::any::Any.
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V