Struct radicle_cli_test::TestFormula
source · pub struct TestFormula { /* private fields */ }Implementations§
source§impl TestFormula
impl TestFormula
pub fn new() -> Self
pub fn cwd(&mut self, path: impl AsRef<Path>) -> &mut Self
pub fn env(&mut self, key: impl Into<String>, val: impl Into<String>) -> &mut Self
pub fn envs<K: ToString, V: ToString>( &mut self, envs: impl IntoIterator<Item = (K, V)> ) -> &mut Self
pub fn file(&mut self, path: impl AsRef<Path>) -> Result<&mut Self, Error>
pub fn read(&mut self, r: impl BufRead) -> Result<&mut Self, Error>
pub fn substitute( &mut self, value: &'static str, other: impl Into<Cow<'static, str>> ) -> Result<&mut Self, Error>
pub fn run(&mut self) -> Result<bool, Error>
Trait Implementations§
source§impl Debug for TestFormula
impl Debug for TestFormula
source§impl Default for TestFormula
impl Default for TestFormula
source§fn default() -> TestFormula
fn default() -> TestFormula
Returns the “default value” for a type. Read more
source§impl PartialEq<TestFormula> for TestFormula
impl PartialEq<TestFormula> for TestFormula
source§fn eq(&self, other: &TestFormula) -> bool
fn eq(&self, other: &TestFormula) -> bool
This method tests for
self and other values to be equal, and is used
by ==.