pub fn invalid_utf8_contains<P: AsRef<Path>, S: AsRef<str>>(
path: P,
expected: S,
)
Expand description
Read the contents of a file that cannot simply be read by
read_to_string
, due to invalid UTF-8 data, then assert
that it contains expected
.