Lines Matching defs:expectation
152 // Overwrite the expectation with actual output.
172 Err(Error::new(ErrorKind::Other, "Header and binding differ! Run with BINDGEN_OVERWRITE_EXPECTED=1 in the environment to automatically overwrite the expectation or with BINDGEN_TESTS_DIFFTOOL=meld to do this manually."))
184 let mut expectation = PathBuf::from(header);
185 expectation.pop();
186 expectation.pop();
187 expectation.push("expectations");
188 expectation.push("tests");
195 let mut expectation = expectation.clone();
198 expectation.push("libclang-9");
200 expectation.push("libclang-5");
203 None => expectation.push("libclang-9"),
215 expectation.push(format!("libclang-{}", version_str));
220 expectation.push(file_name);
221 expectation.set_extension("rs");
222 expectation_file = fs::File::open(&expectation).ok();
223 looked_at.push(expectation);
228 expectation.push(file_name);
229 expectation.set_extension("rs");
230 expectation_file = fs::File::open(&expectation).ok();
231 looked_at.push(expectation.clone());
240 "missing test expectation file and/or 'testing_only_libclang_$VERSION' \
241 feature for header '{}'; looking for expectation file at '{:?}'",