pub fn with_matching_artifact<S: AsRef<str>, F: 'static + Fn(&str)>(
        mut self,
        name: S,
        matcher: F,
    ) -> Self {
        self.artifacts.insert(name.as_ref().to_string(), Box::new(matcher));
        self
    }
/// Add an artifact scoped to the test run. `matcher` will be run against the contents of
/// the actual artifact and may contain assertions.
Add an artifact scoped to the test run. `matcher` will be run against the contents of
the actual artifact and may contain assertions.
Add an artifact scoped to the test run . ` matcher ` will be run against the contents of the actual artifact and may contain assertions .
pub fn with_matching_artifact<S: AsRef<str>, F: 'static + Fn(&str)>(
        mut self,
        name: S,
        matcher: F,
    ) -> Self {
        self.artifacts.insert(name.as_ref().to_string(), Box::new(matcher));
        self
    }
pub fn with_matching_artifact < S : AsRef < str > , F : ' static + Fn ( & str ) > ( mut self , name : S , matcher : F , ) -> Self { self . artifacts . insert ( name . as_ref ( ) . to_string ( ) , Box :: new ( matcher ) ) ; self }
Add an artifact scoped to the test run.
Add an artifact scoped to the test run .
mut self
name
S
matcher
F
mut self
name
S
matcher
F