Struct io_conformance_util::test_harness::TestHarness
source · pub struct TestHarness {
pub proxy: Io1HarnessProxy,
pub config: Io1Config,
pub dir_rights: Rights,
pub file_rights: Rights,
pub executable_file_rights: Rights,
}
Expand description
Helper struct for connecting to an io1 test harness and running a conformance test on it.
Fields§
§proxy: Io1HarnessProxy
FIDL proxy to the io1 test harness.
config: Io1Config
Config for the filesystem.
dir_rights: Rights
All io_test::Directory
rights supported by the filesystem.
file_rights: Rights
All io_test::File
rights supported by the filesystem.
executable_file_rights: Rights
All io_test::ExecutableFile
rights supported by the filesystem.
Implementations§
source§impl TestHarness
impl TestHarness
sourcepub async fn new() -> TestHarness
pub async fn new() -> TestHarness
Connects to the test harness and returns a TestHarness
struct.
sourcepub fn get_directory(&self, root: Directory, flags: OpenFlags) -> DirectoryProxy
pub fn get_directory(&self, root: Directory, flags: OpenFlags) -> DirectoryProxy
Creates a fio::DirectoryProxy
with the given root directory structure.
sourcepub fn supported_file_abilities(&self) -> Abilities
pub fn supported_file_abilities(&self) -> Abilities
Returns the abilities io_test::File
objects should have for the harness.
sourcepub fn supported_dir_abilities(&self) -> Abilities
pub fn supported_dir_abilities(&self) -> Abilities
Returns the abilities io_test::Directory
objects should have for the harness.
Auto Trait Implementations§
impl Freeze for TestHarness
impl !RefUnwindSafe for TestHarness
impl Send for TestHarness
impl Sync for TestHarness
impl Unpin for TestHarness
impl !UnwindSafe for TestHarness
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