pub struct CrateRead {
pub binaries: Vec<CrateBinary>,
pub dropped: Vec<EvidenceDropped>,
}Expand description
What cargo test’s output held: the integration binaries a claim can name, and what it
cannot, listed in CrateRead::dropped in the order the output held it.
use majordomus_cli::evidence::{read_crate_output, CrateRead};
let read: CrateRead = read_crate_output(
" Doc-tests majordomus_cli\n\
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; \
finished in 2.00s\n",
);
assert!(read.binaries.is_empty(), "no claim can name a doctest yet");
assert_eq!(read.dropped[0].what, "doc-tests majordomus_cli");Fields§
§binaries: Vec<CrateBinary>Each binary under tests/ that the output named, in order, with its outcome.
dropped: Vec<EvidenceDropped>What the output held that no claim can name yet, with the reason for each.
Trait Implementations§
impl Eq for CrateRead
impl StructuralPartialEq for CrateRead
Auto Trait Implementations§
impl Freeze for CrateRead
impl RefUnwindSafe for CrateRead
impl Send for CrateRead
impl Sync for CrateRead
impl Unpin for CrateRead
impl UnsafeUnpin for CrateRead
impl UnwindSafe for CrateRead
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.