pub struct TestContext { /* private fields */ }Implementations§
Source§impl TestContext
impl TestContext
pub fn new() -> Self
pub fn write_out(&mut self, bytes: &[u8])
pub fn write_err(&mut self, bytes: &[u8])
pub fn set_exit(&mut self, exit: i32)
pub fn emit_metric(&mut self, name: &str, value: f64) -> bool
pub fn emit_vector(&mut self, name: &str, values: &[f64]) -> bool
pub fn emit_tag(&mut self, name: &str, value: &str) -> bool
pub fn fail_now(&mut self, msg: &str)
pub fn finish(self) -> TestOutcome
Trait Implementations§
Source§impl Clone for TestContext
impl Clone for TestContext
Source§fn clone(&self) -> TestContext
fn clone(&self) -> TestContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestContext
impl Debug for TestContext
Source§impl Default for TestContext
impl Default for TestContext
Source§fn default() -> TestContext
fn default() -> TestContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for TestContext
impl PartialEq for TestContext
impl StructuralPartialEq for TestContext
Auto Trait Implementations§
impl Freeze for TestContext
impl RefUnwindSafe for TestContext
impl Send for TestContext
impl Sync for TestContext
impl Unpin for TestContext
impl UnsafeUnpin for TestContext
impl UnwindSafe for TestContext
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