pub struct CoverageReportV1 {
pub schema_version: u32,
pub contract_sha256: String,
pub planned_ids: Vec<String>,
pub executed_ids: Vec<String>,
pub passed_ids: Vec<String>,
pub failed_ids: Vec<String>,
pub blocked_ids: Vec<String>,
}Expand description
Deterministic execution result for a coverage contract.
Fields§
§schema_version: u32Schema discriminator.
contract_sha256: StringSHA-256 of the canonical contract JSON.
planned_ids: Vec<String>Required IDs planned by the producer.
executed_ids: Vec<String>IDs for which a journey actually executed.
passed_ids: Vec<String>IDs whose deterministic and semantic checks passed.
failed_ids: Vec<String>IDs that executed and produced a failure.
blocked_ids: Vec<String>IDs that could not execute because required infrastructure was absent.
Implementations§
Source§impl CoverageReportV1
impl CoverageReportV1
Sourcepub fn validate_against(
&self,
contract: &CoverageContractV1,
) -> Result<(), Vec<String>>
pub fn validate_against( &self, contract: &CoverageContractV1, ) -> Result<(), Vec<String>>
Validates execution accounting against a coverage contract.
Sourcepub fn is_complete_pass(&self, contract: &CoverageContractV1) -> bool
pub fn is_complete_pass(&self, contract: &CoverageContractV1) -> bool
Returns true only when every required item executed and passed.
Trait Implementations§
Source§impl Clone for CoverageReportV1
impl Clone for CoverageReportV1
Source§impl Debug for CoverageReportV1
impl Debug for CoverageReportV1
Source§impl<'de> Deserialize<'de> for CoverageReportV1
impl<'de> Deserialize<'de> for CoverageReportV1
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 CoverageReportV1
Source§impl PartialEq for CoverageReportV1
impl PartialEq for CoverageReportV1
Source§impl Serialize for CoverageReportV1
impl Serialize for CoverageReportV1
impl StructuralPartialEq for CoverageReportV1
Auto Trait Implementations§
impl Forget for CoverageReportV1
impl Freeze for CoverageReportV1
impl Move for CoverageReportV1
impl RefUnwindSafe for CoverageReportV1
impl Send for CoverageReportV1
impl Sync for CoverageReportV1
impl Unpin for CoverageReportV1
impl UnsafeUnpin for CoverageReportV1
impl UnwindSafe for CoverageReportV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.