Function googletest::matchers::displays_as
source · pub fn displays_as<T: Debug + Display, InnerMatcher: Matcher<ActualT = String>>(
inner: InnerMatcher
) -> impl Matcher<ActualT = T>
Expand description
Matches the string representation of types that implement Display
.
ⓘ
let result: impl Display = ...;
verify_that!(result, displays_as(eq(format!("{}", result))))?;