pub struct CheckResult {
pub name: String,
pub argv: Vec<String>,
pub status: CheckStatus,
pub exit_code: Option<i32>,
pub duration_ms: u64,
pub junit: bool,
pub tests: Option<Vec<TestResult>>,
pub stdout_tail: String,
pub stderr_tail: String,
pub truncated: bool,
pub note: Option<String>,
pub flaky: bool,
}Expand description
One check run.
Fields§
§name: StringName from speccoder.toml.
argv: Vec<String>The command, as run.
status: CheckStatusWhat happened.
exit_code: Option<i32>Process exit code, if it exited.
duration_ms: u64Wall-clock duration.
junit: boolWhether the check declares a JUnit report.
tests: Option<Vec<TestResult>>Tests from the JUnit report, if one was declared and freshly written.
stdout_tail: StringLast part of stdout (lossy UTF-8).
stderr_tail: StringLast part of stderr (lossy UTF-8).
truncated: boolOutput exceeded the capture cap.
note: Option<String>Why the check was skipped, errored, or has no tests.
flaky: boolIt failed once and passed when run again: named, never trusted as task evidence.
Implementations§
Source§impl CheckResult
impl CheckResult
Sourcepub fn test_counts(&self) -> Option<(usize, usize, usize)>
pub fn test_counts(&self) -> Option<(usize, usize, usize)>
Counts of (passed, failed, skipped) tests.
Sourcepub fn is_evidence(&self) -> bool
pub fn is_evidence(&self) -> bool
Whether this check, as a task-specific check, is evidence for the task: it passed, and either declares no report (a command check) or its report has at least one passing test.
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§impl Debug for CheckResult
impl Debug for CheckResult
Source§impl<'de> Deserialize<'de> for CheckResult
impl<'de> Deserialize<'de> for CheckResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CheckResult
Source§impl JsonSchema for CheckResult
impl JsonSchema for CheckResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CheckResult
impl PartialEq for CheckResult
Source§impl Serialize for CheckResult
impl Serialize for CheckResult
impl StructuralPartialEq for CheckResult
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin for CheckResult
impl UnwindSafe for CheckResult
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