xtask::codegen

Function ensure_file_contents

source
fn ensure_file_contents(
    cg: CodegenType,
    file: &Path,
    contents: &str,
    check: bool,
) -> bool
Expand description

Checks that the file has the specified contents. If that is not the case, updates the file and then fails the test.