pub trait TestFilter: Send + Sync {
// Required methods
fn matches_test(&self, test_signature: &str) -> bool;
fn matches_contract(&self, contract_name: &str) -> bool;
fn matches_path(&self, path: &Path) -> bool;
}
Expand description
Test filter.
Required Methods§
Sourcefn matches_test(&self, test_signature: &str) -> bool
fn matches_test(&self, test_signature: &str) -> bool
Returns whether the test should be included.
Sourcefn matches_contract(&self, contract_name: &str) -> bool
fn matches_contract(&self, contract_name: &str) -> bool
Returns whether the contract should be included.
Sourcefn matches_path(&self, path: &Path) -> bool
fn matches_path(&self, path: &Path) -> bool
Returns a contract with the given path should be included.
Implementations§
Source§impl<'a> dyn TestFilter + 'a
impl<'a> dyn TestFilter + 'a
Sourcepub fn matches_test_function(&self, func: &Function) -> bool
pub fn matches_test_function(&self, func: &Function) -> bool
Returns true
if the function is a test function that matches the given filter.