foundry_common::traits

Trait TestFilter

Source
pub trait TestFilter: Send + Sync {
    // Required methods
    fn matches_test(&self, test_name: &str) -> bool;
    fn matches_contract(&self, contract_name: &str) -> bool;
    fn matches_path(&self, path: &Path) -> bool;
}
Expand description

Test filter.

Required Methods§

Source

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

Returns whether the test should be included.

Source

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

Returns whether the contract should be included.

Source

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

Returns a contract with the given path should be included.

Implementors§