pub struct Draft {Show 13 fields
pub requirement: DraftRequirement,
pub samples: u8,
pub tests: Vec<DraftTest>,
pub discarded: Vec<OracleDiscarded>,
pub rejected: Vec<OracleRejected>,
pub expectations: Samples<Expectation>,
pub untestable: Samples<Untestable>,
pub ambiguities: Vec<Ambiguity>,
pub held_out: HeldOutSummary,
pub sealed: Option<SealedRef>,
pub notes: Vec<String>,
pub runs: Vec<String>,
pub context: Vec<ContextEntry>,
}Expand description
A requirement’s draft as the author and the person left it.
Fields§
§requirement: DraftRequirementThe requirement as it read when the tests were written.
samples: u8Author calls per Write Tests ([review] oracle_samples).
tests: Vec<DraftTest>The kept tests.
discarded: Vec<OracleDiscarded>Tests not kept, and why.
rejected: Vec<OracleRejected>Tests the person rejected.
expectations: Samples<Expectation>What each author stated it asserts.
untestable: Samples<Untestable>What each author found untestable.
ambiguities: Vec<Ambiguity>Readings that disagree.
held_out: HeldOutSummaryThe held-out set: count and digest.
sealed: Option<SealedRef>Its sealed reference, when kept.
notes: Vec<String>The person’s notes to later author calls (comments, readings).
runs: Vec<String>The journaled author runs.
context: Vec<ContextEntry>What reached each author call (constitution VIII): {source, label, sha256} in the context manifest’s shape.
Implementations§
Source§impl Draft
impl Draft
Sourcepub fn red(&self) -> impl Iterator<Item = &DraftTest>
pub fn red(&self) -> impl Iterator<Item = &DraftTest>
The tests that can be frozen: red on the checkout’s HEAD.
Sourcepub fn manifest(&self) -> Option<String>
pub fn manifest(&self) -> Option<String>
The red set’s manifest digest; None when nothing is red.
Sourcepub fn open_ambiguities(&self) -> impl Iterator<Item = &Ambiguity>
pub fn open_ambiguities(&self) -> impl Iterator<Item = &Ambiguity>
Whether a scenario’s reading is still open.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Draft
impl<'de> Deserialize<'de> for Draft
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 Draft
impl StructuralPartialEq for Draft
Auto Trait Implementations§
impl Freeze for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.