pub fn with_artifact<S: AsRef<str>, T: AsRef<str>>(self, name: S, contents: T) -> Self {
        let owned_expected = contents.as_ref().to_string();
        let owned_name = name.as_ref().to_string();
        self.with_matching_artifact(name, move |actual| {
            assert_eq!(
                &owned_expected, actual,
                "Mismatch in artifact '{}'. Expected: '{}', actual:'{}'",
                owned_name, &owned_expected, actual
            )
        })
    }
/// Add an artifact scoped to the test run.
Add an artifact scoped to the test run.
Add an artifact scoped to the test run .
pub fn with_artifact<S: AsRef<str>, T: AsRef<str>>(self, name: S, contents: T) -> Self {
        let owned_expected = contents.as_ref().to_string();
        let owned_name = name.as_ref().to_string();
        self.with_matching_artifact(name, move |actual| {
            assert_eq!(
                &owned_expected, actual,
                "Mismatch in artifact '{}'. Expected: '{}', actual:'{}'",
                owned_name, &owned_expected, actual
            )
        })
    }
pub fn with_artifact < S : AsRef < str > , T : AsRef < str > > ( self , name : S , contents : T ) -> Self { let owned_expected = contents . as_ref ( ) . to_string ( ) ; let owned_name = name . as_ref ( ) . to_string ( ) ; self . with_matching_artifact ( name , move | actual | { assert_eq ! ( owned_expected actual " " owned_name owned_expected actual ) } ) }
Add an artifact scoped to the test run.
Add an artifact scoped to the test run .
self
name
S
contents
T
self
name
S
contents
T