pub trait TestSuiteRegistry: IntoIterator<Item = Arc<Test>> {
// Required methods
fn load(&mut self, config: &Config) -> DiagResult<()>;
fn is_empty(&self) -> bool;
fn num_suites(&self) -> usize;
fn num_tests(&self) -> usize;
fn size_of_suite(&self, id: &TestSuiteKey) -> usize;
fn get(&self, id: &TestSuiteKey) -> Arc<TestSuite>;
fn get_by_path(&self, path: &Path) -> Option<Arc<TestSuite>>;
fn tests(&self) -> impl Iterator<Item = Arc<Test>> + '_;
fn suites(&self) -> impl Iterator<Item = Arc<TestSuite>> + '_;
}
Required Methods§
Sourcefn load(&mut self, config: &Config) -> DiagResult<()>
fn load(&mut self, config: &Config) -> DiagResult<()>
Load all available test suites
Sourcefn num_suites(&self) -> usize
fn num_suites(&self) -> usize
Returns the number of test suites in the registry
Sourcefn size_of_suite(&self, id: &TestSuiteKey) -> usize
fn size_of_suite(&self, id: &TestSuiteKey) -> usize
Returns the number of tests in the registry belonging to a specific suite
Sourcefn get(&self, id: &TestSuiteKey) -> Arc<TestSuite>
fn get(&self, id: &TestSuiteKey) -> Arc<TestSuite>
Get a TestSuite using its TestSuiteKey
Sourcefn get_by_path(&self, path: &Path) -> Option<Arc<TestSuite>>
fn get_by_path(&self, path: &Path) -> Option<Arc<TestSuite>>
Get a TestSuite given the path at which it’s configuration resides
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.