Struct TestSuite

Source
pub struct TestSuite {
Show 19 fields pub name: Option<String>, pub tests: Option<u32>, pub failures: Option<u32>, pub errors: Option<u32>, pub group: Option<String>, pub time: Option<f32>, pub disabled: Option<u32>, pub skipped: Option<u32>, pub timestamp: Option<String>, pub hostname: Option<String>, pub id: Option<String>, pub package: Option<String>, pub file: Option<String>, pub log: Option<String>, pub url: Option<String>, pub system_out: Option<Vec<String>>, pub system_err: Option<Vec<String>>, pub properties: Option<Properties>, pub testcase: Option<Vec<TestCase>>,
}
Expand description

It corresponds to <testsuite>

<testsuite name="testsuite1" tests=1 time=0.1>
</testsuite>

Fields§

§name: Option<String>§tests: Option<u32>§failures: Option<u32>§errors: Option<u32>§group: Option<String>§time: Option<f32>§disabled: Option<u32>§skipped: Option<u32>§timestamp: Option<String>§hostname: Option<String>§id: Option<String>§package: Option<String>§file: Option<String>§log: Option<String>§url: Option<String>§system_out: Option<Vec<String>>§system_err: Option<Vec<String>>§properties: Option<Properties>§testcase: Option<Vec<TestCase>>

Implementations§

Source§

impl TestSuite

Source

pub fn trim_empty_items(&mut self)

Source

pub fn filter_tags(&mut self, tags: &[PossibleFilterTags])

Trait Implementations§

Source§

impl Debug for TestSuite

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TestSuite

Source§

fn default() -> TestSuite

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TestSuite

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for TestSuite

Source§

fn eq(&self, other: &TestSuite) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TestSuite

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TestSuite

Auto Trait Implementations§

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> 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, 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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,