Struct cargo_tarpaulin::cargo::TestBinary
source · pub struct TestBinary { /* private fields */ }
Implementations§
source§impl TestBinary
impl TestBinary
pub fn new(path: PathBuf, ty: Option<RunType>) -> Self
pub fn path(&self) -> &Path
pub fn run_type(&self) -> Option<RunType>
pub fn manifest_dir(&self) -> &Option<PathBuf>
pub fn pkg_name(&self) -> &Option<String>
pub fn pkg_version(&self) -> &Option<String>
pub fn has_linker_paths(&self) -> bool
pub fn is_test_type(&self) -> bool
sourcepub fn ld_library_path(&self) -> String
pub fn ld_library_path(&self) -> String
Convert linker paths to an LD_LIBRARY_PATH. TODO this won’t work for windows when it’s implemented
sourcepub fn should_panic(&self) -> bool
pub fn should_panic(&self) -> bool
Should be false
for normal tests and for doctests either true
or
false
depending on the test attribute
Trait Implementations§
source§impl Clone for TestBinary
impl Clone for TestBinary
source§fn clone(&self) -> TestBinary
fn clone(&self) -> TestBinary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TestBinary
impl Debug for TestBinary
source§impl<'de> Deserialize<'de> for TestBinary
impl<'de> Deserialize<'de> for TestBinary
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
source§impl Hash for TestBinary
impl Hash for TestBinary
source§impl Ord for TestBinary
impl Ord for TestBinary
source§fn cmp(&self, other: &TestBinary) -> Ordering
fn cmp(&self, other: &TestBinary) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TestBinary
impl PartialEq for TestBinary
source§impl PartialOrd for TestBinary
impl PartialOrd for TestBinary
source§impl Serialize for TestBinary
impl Serialize for TestBinary
impl Eq for TestBinary
impl StructuralPartialEq for TestBinary
Auto Trait Implementations§
impl Freeze for TestBinary
impl RefUnwindSafe for TestBinary
impl Send for TestBinary
impl Sync for TestBinary
impl Unpin for TestBinary
impl UnwindSafe for TestBinary
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.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.