example_tester

Trait Component

Source
pub trait Component {
    // Required methods
    fn get_name(&self) -> String;
    fn get_path(&self) -> String;
    fn get_regex_matcher(&self) -> String;
    fn matches_log(&self, raw_log: &Data<Logs>) -> bool;
}
Expand description

Represents a component under test. The name is the test-local name assigned to the component, whereas the path is the relative path to its component manifest (ex: “#meta/client.cm”).

Required Methods§

Source

fn get_name(&self) -> String

Source

fn get_path(&self) -> String

Source

fn get_regex_matcher(&self) -> String

Source

fn matches_log(&self, raw_log: &Data<Logs>) -> bool

Implementors§

Source§

impl<'a> Component for Client<'a>

Source§

impl<'a> Component for Proxy<'a>

Source§

impl<'a> Component for Server<'a>