pub struct TestConfig {
pub allow_real: Vec<String>,
}Expand description
The [test] table.
Like [check], this is one setting per package rather than per run: a
test declares no capabilities of its own, so there is no per-test table
for this to live in.
Fields§
§allow_real: Vec<String>The capabilities cove test grants with their real implementation
instead of their fake one.
Defaulting to fakes is what makes a suite deterministic and safe to run anywhere, so naming a capability here is how a package says it means the real thing for that one.
Trait Implementations§
Source§impl Clone for TestConfig
impl Clone for TestConfig
Source§fn clone(&self) -> TestConfig
fn clone(&self) -> TestConfig
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 TestConfig
impl Debug for TestConfig
Source§impl Default for TestConfig
impl Default for TestConfig
Source§fn default() -> TestConfig
fn default() -> TestConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for TestConfig
impl PartialEq for TestConfig
Source§fn eq(&self, other: &TestConfig) -> bool
fn eq(&self, other: &TestConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestConfig
Auto Trait Implementations§
impl Freeze for TestConfig
impl RefUnwindSafe for TestConfig
impl Send for TestConfig
impl Sync for TestConfig
impl Unpin for TestConfig
impl UnsafeUnpin for TestConfig
impl UnwindSafe for TestConfig
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