Function ra_ap_test_utils::try_ensure_file_contents [−][src]
pub fn try_ensure_file_contents(file: &Path, contents: &str) -> Result<(), ()>
Expand description
Checks that the file
has the specified contents
. If that is not the
case, updates the file and return an Error.