(relative: &str)
| 104 | } |
| 105 | |
| 106 | fn read(relative: &str) -> String { |
| 107 | let contents = fs::read_to_string(manifest_dir().join(relative)) |
| 108 | .unwrap_or_else(|error| panic!("cannot read {relative}: {error}")); |
| 109 | strip_tests(&contents) |
| 110 | } |
| 111 | |
| 112 | fn strip_tests(contents: &str) -> String { |
| 113 | // Windows checkouts may use CRLF; strip the test module on either platform. |
no test coverage detected