Struct tendermint_testgen::tester::TestEnv [−][src]
pub struct TestEnv { /* fields omitted */ }
Expand description
A test environment, which is essentially a wrapper around some directory, with some utility functions operating relative to that directory.
Implementations
Read a file from a path relative to the environment current dir into a string
Write a file to a path relative to the environment current dir
Parse a file from a path relative to the environment current dir as the given type
Copy a file from the path outside environment into the environment current dir Returns None if copying was not successful
Copy a file from the path outside environment into the environment current dir Assigns the file a new_name in the current environment Returns None if copying was not successful
Copy a file from the path relative to the other environment into the environment current dir Returns None if copying was not successful
Copy a file from the path relative to the other environment into the environment current dir Assigns the file a new_name in the current environment Returns None if copying was not successful
Remove a file from a path relative to the environment current dir
Convert a relative path to the full path from the test root Return None if the full path can’t be formed
Convert a full path to the path relative to the test root Returns None if the full path doesn’t contain test root as prefix
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TestEnv
impl UnwindSafe for TestEnv
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V