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

pub struct TestFailure {
    pub failure_message: String,
    pub exception_type: String,
    pub stack_trace: String,
    pub expected: Vec<String>,
    pub actual: Vec<String>,
}

Represents a violated assertion, as reported in a element within a . Some languages allow assertions to be made without stopping the test case when they’re violated, leading to multiple TestFailures. For Java, multiple TestFailures are used to represent a chained exception.

Fields

failure_message: String

The exception message reported in the message attribute. Typically short, but may be multi-line. Eg. “Expected ‘foo’ but was ‘bar’”.

exception_type: String

The type of the exception being thrown, reported in the type attribute. Eg: “org.junit.ComparisonFailure”

stack_trace: String

The stack trace reported as the content of the element, often in a CDATA block. This contains one line for each stack frame, each including a method/function name, a class/file name, and a line number. Most recent call is usually first, but not for Python stack traces. May contain the exception_type and message.

expected: Vec<String>

The expected values.

These values can be diffed against the actual values. Often, there is just one actual and one expected value. If there is more than one, they should be compared as an unordered collection.

actual: Vec<String>

The actual values.

These values can be diffed against the expected values. Often, there is just one actual and one expected value. If there is more than one, they should be compared as an unordered collection.

Trait Implementations

impl Clone for TestFailure[src]

impl Debug for TestFailure[src]

impl Default for TestFailure[src]

impl Message for TestFailure[src]

impl PartialEq<TestFailure> for TestFailure[src]

impl StructuralPartialEq for TestFailure[src]

Auto Trait Implementations

impl RefUnwindSafe for TestFailure

impl Send for TestFailure

impl Sync for TestFailure

impl Unpin for TestFailure

impl UnwindSafe for TestFailure

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]