Struct gapi_grpc::google::devtools::resultstore::v2::TestCase[][src]

pub struct TestCase {
    pub case_name: String,
    pub class_name: String,
    pub result: i32,
    pub failures: Vec<TestFailure>,
    pub errors: Vec<TestError>,
    pub timing: Option<Timing>,
    pub properties: Vec<Property>,
    pub files: Vec<File>,
}

The result of running a test case, as reported in a element of an XML log.

Fields

case_name: String

The name of the test case, as reported in the name attribute. For Java, this is normally the method name. Eg. “testBasic”.

class_name: String

The name of the class in which the test case was defined, as reported in the classname attribute. For Java, this is normally the fully qualified class name. Eg. “com.google.common.hash.BloomFilterTest”.

result: i32

An enum reported in the result attribute that is used in conjunction with failures and errors below to report the outcome.

failures: Vec<TestFailure>

Failures reported in elements within this .

errors: Vec<TestError>

Errors reported in elements within this .

timing: Option<Timing>

The timing for the TestCase, as reported by the time attribute.

properties: Vec<Property>

Arbitrary name-value pairs, as reported in custom attributes or in a element within this . Multiple properties are allowed with the same key. Properties will be returned in lexicographical order by key.

files: Vec<File>

Files produced by this test case, as reported by undeclared output annotations. The file IDs must be unique within this list. Duplicate file IDs will result in an error. Files will be returned in lexicographical order by ID.

Implementations

impl TestCase[src]

pub fn result(&self) -> Result[src]

Returns the enum value of result, or the default if the field is set to an invalid enum value.

pub fn set_result(&mut self, value: Result)[src]

Sets result to the provided enum value.

Trait Implementations

impl Clone for TestCase[src]

impl Debug for TestCase[src]

impl Default for TestCase[src]

impl Message for TestCase[src]

impl PartialEq<TestCase> for TestCase[src]

impl StructuralPartialEq for TestCase[src]

Auto Trait Implementations

impl RefUnwindSafe for TestCase

impl Send for TestCase

impl Sync for TestCase

impl Unpin for TestCase

impl UnwindSafe for TestCase

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]