pub struct TestMeta {
pub name: Option<String>,
pub browser: bool,
pub ram: Option<u32>,
pub requires_sudo: bool,
}Fields§
§name: Option<String>§browser: bool§ram: Option<u32>Optional RAM override (MB). When set, bypasses auto-calculation from service requirements. Use for tests that run many services and need more headroom than the sum of individual recommendations.
requires_sudo: boolDeclares that this test performs privileged operations (shells out to
sudo). When true, the bare runner acquires sudo credentials once up
front so captured, non-TTY steps don’t fail trying to prompt mid-run.
The runner already auto-detects the common case — writing *.internal
hostnames to /etc/hosts for OIDC/HTTPS URLs — so most tests never set
this; it’s the escape hatch for any other sudo a test needs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestMeta
impl<'de> Deserialize<'de> for TestMeta
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
Auto Trait Implementations§
impl Freeze for TestMeta
impl RefUnwindSafe for TestMeta
impl Send for TestMeta
impl Sync for TestMeta
impl Unpin for TestMeta
impl UnsafeUnpin for TestMeta
impl UnwindSafe for TestMeta
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