TestFilter

Trait TestFilter 

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§

fn matches_test(&self, test_signature: &str) -> bool

Returns whether the test should be included.

fn matches_contract(&self, contract_name: &str) -> bool

Returns whether the contract should be included.

fn matches_path(&self, path: &Path) -> bool

Returns a contract with the given path should be included.

Implementations§

§

impl<'a> dyn TestFilter + 'a

pub fn matches_test_function(&self, func: &Function) -> bool

Returns true if the function is a test function that matches the given filter.

Implementors§