Struct google_api_proto::google::devtools::resultstore::v2::TestCase
source · 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>,
pub retry_number: i32,
pub repeat_number: i32,
}
Expand description
The result of running a test case, as reported in a
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
errors: Vec<TestError>
Errors reported in
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
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.
retry_number: i32
The 0-indexed retry number of the test case. A value of 0
may indicate
either that this is the first in a series of retries, or that no retries
were requested.
repeat_number: i32
The 0-indexed repeat number of the test case. A value of 0
may indicate
either that this is the first in a series of repeats, or that no repeats
were requested.
Implementations§
Trait Implementations§
source§impl Message for TestCase
impl Message for TestCase
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TestCase
impl PartialEq for TestCase
impl StructuralPartialEq for TestCase
Auto Trait Implementations§
impl Freeze for TestCase
impl RefUnwindSafe for TestCase
impl Send for TestCase
impl Sync for TestCase
impl Unpin for TestCase
impl UnwindSafe for TestCase
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request