Home
last modified time | relevance | path

Searched refs:read_to_string (Results 1 – 25 of 30) sorted by relevance

12

/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dtests.rs237 BufReader::new(f).read_to_string(&mut expected)?; in compare_generated_header()
634 let observed = std::fs::read_to_string(observed_depfile).unwrap(); in emit_depfile()
635 let expected = std::fs::read_to_string(expected_depfile).unwrap(); in emit_depfile()
657 file.read_to_string(&mut contents).unwrap(); in dump_preprocessed_input()
737 let expected_c = fs::read_to_string(expect_path.with_extension("c")) in test_wrap_static_fns()
740 let actual_c = fs::read_to_string(generated_path.with_extension("c")) in test_wrap_static_fns()
/third_party/rust/crates/nix/test/
Dtest_sendfile.rs107 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_freebsd()
156 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_dragonfly()
205 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_darwin()
Dtest_fcntl.rs163 new_f.read_to_string(&mut buf).unwrap(); in test_renameat2_exchange()
167 old_f.read_to_string(&mut buf).unwrap(); in test_renameat2_exchange()
276 tmp2.read_to_string(&mut res).unwrap(); in test_copy_file_range()
/third_party/rust/crates/cxx/gen/src/
Dmod.rs99 let source = match read_to_string(path) { in generate_from_path()
109 fn read_to_string(path: &Path) -> Result<String> { in read_to_string() function
/third_party/rust/crates/unicode-width/src/
Dtests.rs101 let string = std::fs::read_to_string(data_path).unwrap_or_default(); in enwik8()
110 let string = std::fs::read_to_string(data_path).unwrap_or_default(); in jawiki()
/third_party/rust/crates/regex/examples/
Dshootout-regex-dna-replace.rs12 io::stdin().read_to_string(&mut seq).unwrap(); in main()
Dshootout-regex-dna-single.rs18 io::stdin().read_to_string(&mut seq).unwrap(); in main()
Dshootout-regex-dna.rs20 io::stdin().read_to_string(&mut seq).unwrap(); in main()
Dshootout-regex-dna-single-cheat.rs18 io::stdin().read_to_string(&mut seq).unwrap(); in main()
Dshootout-regex-dna-cheat.rs25 io::stdin().read_to_string(&mut seq).unwrap(); in main()
/third_party/rust/crates/io-lifetimes/examples/
Deasy-conversions.rs25 file.read_to_string(&mut buffer)?; in main()
/third_party/rust/crates/syn/codegen/src/
Dversion.rs10 let manifest = fs::read_to_string(syn_cargo_toml)?; in get()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/
Dmain.rs12 use std::fs::read_to_string;
240 let test_data = read_to_string(test_path).unwrap(); in parse_tests()
/third_party/rust/crates/clang-sys/
Dbuild.rs38 .read_to_string(&mut string) in copy()
/third_party/rust/crates/syn/benches/
Dfile.rs32 let content = fs::read_to_string(FILE).unwrap(); in get_tokens()
Drust.rs113 let content = fs::read_to_string(path).unwrap(); in exec()
/third_party/rust/crates/linux-raw-sys/gen/src/
Dmain.rs47 .read_to_string(&mut src_lib_rs_contents) in main()
66 .read_to_string(&mut cargo_toml_contents) in main()
/third_party/rust/crates/syn/tests/crates/
Dmain.rs76 if entry.read_to_string(&mut contents).is_err() { in parse()
/third_party/rust/crates/unicode-ident/generate/src/
Dparse.rs30 let contents = fs::read_to_string(path).unwrap_or_else(|err| { in parse_xid_properties()
/third_party/rust/crates/syn/tests/repo/
Dmod.rs159 let needs_clone = match fs::read_to_string("tests/rust/COMMIT") { in clone_rust()
/third_party/rust/crates/syn/examples/dump-syntax/src/
Dmain.rs72 let code = fs::read_to_string(&filepath).map_err(Error::ReadFile)?; in try_main()
/third_party/rust/crates/nix/test/common/
Dmod.rs93 if let Ok(s) = std::fs::read_to_string("/proc/self/status") {
/third_party/rust/crates/aho-corasick/aho-corasick-debug/
Dmain.rs120 let patterns = fs::read_to_string(&self.dictionary)?; in automaton()
/third_party/rust/crates/libc/ci/
Dstyle.rs76 t!(t!(fs::File::open(&path)).read_to_string(&mut contents)); in walk()
/third_party/rust/crates/bindgen/bindgen-integration/
Dbuild.rs197 std::fs::read_to_string(out_dep_file).expect("Couldn't read depfile!"); in setup_macro_test()

12