pub struct TestExecutable {
pub package: String,
pub target: String,
pub executable: PathBuf,
pub working_dir: PathBuf,
pub env: BTreeMap<String, OsString>,
}Expand description
One executable in a TestPlan.
Fields§
§package: StringWorkspace package the test belongs to. Used both for summary output and for the executable’s working directory.
target: StringManifest-declared target name (without any path / extension).
executable: PathBufFilesystem path of the linked test executable.
working_dir: PathBufManifest directory of the producing package. Used as the working directory when the executable runs so tests can reach repository-relative fixture data deterministically.
env: BTreeMap<String, OsString>Deterministic env overlay applied on top of the
inherited environment when the executable runs. Intended
for CABIN_* keys produced by the orchestration layer
via cabin_env::package_env. Empty by default; callers
that do not populate the overlay see the inherited
environment unchanged.
Trait Implementations§
Source§impl Clone for TestExecutable
impl Clone for TestExecutable
Source§fn clone(&self) -> TestExecutable
fn clone(&self) -> TestExecutable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TestExecutable
impl Debug for TestExecutable
impl Eq for TestExecutable
Source§impl PartialEq for TestExecutable
impl PartialEq for TestExecutable
Source§fn eq(&self, other: &TestExecutable) -> bool
fn eq(&self, other: &TestExecutable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestExecutable
Auto Trait Implementations§
impl Freeze for TestExecutable
impl RefUnwindSafe for TestExecutable
impl Send for TestExecutable
impl Sync for TestExecutable
impl Unpin for TestExecutable
impl UnsafeUnpin for TestExecutable
impl UnwindSafe for TestExecutable
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§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.