Home
last modified time | relevance | path

Searched refs:read_whole_file (Results 1 – 25 of 121) sorted by relevance

12345

/dports/security/rustscan/RustScan-2.0.1/cargo-crates/subprocess-0.2.6/src/tests/
H A Dbuilder.rs10 use crate::tests::common::read_whole_file;
32 assert_eq!(read_whole_file(stream), "foo"); in stream_stdout()
41 assert_eq!(read_whole_file(stream), "foo"); in stream_stderr()
55 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foo"); in stream_stdin()
102 assert_eq!(read_whole_file(stream), "foo"); in exec_shell()
120 assert_eq!(read_whole_file(stream).trim(), "2"); in pipeline_stream_out()
134 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()).trim(), "3"); in pipeline_stream_in()
143 assert_eq!(read_whole_file(stream).trim(), "2"); in pipeline_compose_pipelines()
H A Dcommon.rs11 pub fn read_whole_file<T: Read>(mut f: T) -> String { in read_whole_file() function
72 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foo\n"); in read_from_stdout()
93 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foo"); in input_from_file()
111 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foo"); in output_to_file()
133 assert_eq!(read_whole_file(File::open(&tmpname_out).unwrap()), "foo"); in input_output_from_file()
154 assert_eq!(read_whole_file(File::open(tmpname).unwrap()), "foo\nbar\n"); in write_to_subprocess()
176 read_whole_file(File::open(&tmpname).unwrap()), in communicate_input()
413 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foobar"); in merge_err_to_out_file()
459 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foobar"); in setup_executable()
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/subprocess-0.2.6/src/tests/
H A Dbuilder.rs10 use crate::tests::common::read_whole_file;
32 assert_eq!(read_whole_file(stream), "foo"); in stream_stdout()
41 assert_eq!(read_whole_file(stream), "foo"); in stream_stderr()
55 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foo"); in stream_stdin()
102 assert_eq!(read_whole_file(stream), "foo"); in exec_shell()
120 assert_eq!(read_whole_file(stream).trim(), "2"); in pipeline_stream_out()
134 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()).trim(), "3"); in pipeline_stream_in()
143 assert_eq!(read_whole_file(stream).trim(), "2"); in pipeline_compose_pipelines()
H A Dcommon.rs11 pub fn read_whole_file<T: Read>(mut f: T) -> String { in read_whole_file() function
72 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foo\n"); in read_from_stdout()
93 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foo"); in input_from_file()
111 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foo"); in output_to_file()
133 assert_eq!(read_whole_file(File::open(&tmpname_out).unwrap()), "foo"); in input_output_from_file()
154 assert_eq!(read_whole_file(File::open(tmpname).unwrap()), "foo\nbar\n"); in write_to_subprocess()
176 read_whole_file(File::open(&tmpname).unwrap()), in communicate_input()
413 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foobar"); in merge_err_to_out_file()
459 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foobar"); in setup_executable()
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/integration/targets/find/tasks/
H A Dmain.yml128 - name: Ensure '$' only matches the true end of the file with read_whole_file, not a line
133 read_whole_file: true
147 read_whole_file: true
156 - name: When read_whole_file=False, $ should match an individual line
161 read_whole_file: false
170 - name: When read_whole_file=True, match across line boundaries
175 read_whole_file: true
184 - name: When read_whole_file=False, do not match across line boundaries
189 read_whole_file: false
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/subprocess-0.2.8/src/tests/
H A Dbuilder.rs14 use crate::tests::common::read_whole_file;
36 assert_eq!(read_whole_file(stream), "foo"); in stream_stdout()
45 assert_eq!(read_whole_file(stream), "foo"); in stream_stderr()
59 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foo"); in stream_stdin()
106 assert_eq!(read_whole_file(stream), "foo"); in exec_shell()
124 assert_eq!(read_whole_file(stream).trim(), "2"); in pipeline_stream_out()
138 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()).trim(), "3"); in pipeline_stream_in()
147 assert_eq!(read_whole_file(stream).trim(), "2"); in pipeline_compose_pipelines()
H A Dcommon.rs11 pub fn read_whole_file<T: Read>(mut f: T) -> String { in read_whole_file() function
72 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foo\n"); in read_from_stdout()
93 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foo"); in input_from_file()
111 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foo"); in output_to_file()
133 assert_eq!(read_whole_file(File::open(&tmpname_out).unwrap()), "foo"); in input_output_from_file()
154 assert_eq!(read_whole_file(File::open(tmpname).unwrap()), "foo\nbar\n"); in write_to_subprocess()
176 read_whole_file(File::open(&tmpname).unwrap()), in communicate_input()
413 assert_eq!(read_whole_file(File::open(&tmpname).unwrap()), "foobar"); in merge_err_to_out_file()
459 assert_eq!(read_whole_file(p.stdout.take().unwrap()), "foobar"); in setup_executable()
/dports/devel/fstrcmp/fstrcmp-0.7.D001/fstrcmp/
H A Dmain.c155 read_whole_file(const char *filename, void **data, size_t *size) in read_whole_file() function
232 read_whole_file(argv[0], &data1, &size1); in files_as_bytes()
233 read_whole_file(argv[1], &data2, &size2); in files_as_bytes()
252 read_whole_file(argv[0], &data1, &size1); in files_as_bytes_int()
253 read_whole_file(argv[1], &data2, &size2); in files_as_bytes_int()
308 read_whole_file(argv[1], &data, &size); in selector()
/dports/devel/aegis/aegis-4.25.D510/libaegis/
H A Dfile.cc118 read_whole_file(string_ty *fn) in read_whole_file() function
120 nstring result(read_whole_file(nstring(fn))); in read_whole_file()
126 read_whole_file(const nstring &fn) in read_whole_file() function
H A Dfile.h40 string_ty *read_whole_file(string_ty *filename) DEPRECATED;
54 nstring read_whole_file(const nstring &filename);
/dports/lang/gcc11/gcc-11.2.0/gcc/testsuite/gcc.dg/analyzer/
H A Derror-2.c26 extern char *read_whole_file (const char *error_file, size_t *out);
35 str = read_whole_file (error_file, &len); in read_error_file()
/dports/misc/cxx_atomics_pic/gcc-11.2.0/gcc/testsuite/gcc.dg/analyzer/
H A Derror-2.c26 extern char *read_whole_file (const char *error_file, size_t *out);
35 str = read_whole_file (error_file, &len); in read_error_file()
/dports/lang/gcc11-devel/gcc-11-20211009/gcc/testsuite/gcc.dg/analyzer/
H A Derror-2.c26 extern char *read_whole_file (const char *error_file, size_t *out);
35 str = read_whole_file (error_file, &len); in read_error_file()
/dports/lang/gcc12-devel/gcc-12-20211205/gcc/testsuite/gcc.dg/analyzer/
H A Derror-2.c26 extern char *read_whole_file (const char *error_file, size_t *out);
35 str = read_whole_file (error_file, &len); in read_error_file()
/dports/misc/xdelta3/xdelta-3.1.0/xdelta3/examples/
H A Dspeed_test.c40 (ret = read_whole_file(from, &from_buf, &from_len))) || in main()
41 (ret = read_whole_file(to, &to_buf, &to_len))) { in main()
/dports/devel/aegis/aegis-4.25.D510/libaegis/os/
H A Ddomain_name.cc80 result = read_whole_file(mailname); in try_etc_mailname()
104 result = read_whole_file(temp_file_name); in run_a_command()
/dports/sysutils/fwup/fwup-1.9.0/src/3rdparty/xdelta3/examples/
H A Dspeed_test.c54 (ret = read_whole_file(from, &from_buf, &from_len))) || in main()
55 (ret = read_whole_file(to, &to_buf, &to_len))) { in main()
/dports/devel/aegis/aegis-4.25.D510/aesub/
H A Dmain.cc141 nstring s(read_whole_file(arglex_value.alv_string)); in aesub_main()
150 nstring s(read_whole_file((char *)0)); in aesub_main()
/dports/net/nbdkit/nbdkit-1.20.4/
H A Dpodwrapper.pl.in233 my $content = read_whole_file ($input);
239 my $replacement = read_whole_file ($a[0]);
491 sub read_whole_file
/dports/math/gnumeric/gnumeric-1.12.50/test/
H A Dt9006-ssconvert-split.pl37 sub read_whole_file { subroutine
59 my $data = &read_whole_file ($fn);
/dports/misc/vifm/vifm-0.11/src/utils/
H A Dstring_array.c32 static char * read_whole_file(const char filepath[], size_t *read);
186 char *const text = read_whole_file(filepath, &text_len); in read_file_of_lines()
202 read_whole_file(const char filepath[], size_t *read) in read_whole_file() function
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/examples/parquet/parquet-arrow/
H A Dreader-writer.cc63 void read_whole_file() { in read_whole_file() function
140 read_whole_file(); in main()
/dports/databases/arrow/apache-arrow-6.0.1/cpp/examples/parquet/parquet_arrow/
H A Dreader_writer.cc63 void read_whole_file() { in read_whole_file() function
136 read_whole_file(); in main()
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/examples/parquet/parquet-arrow/
H A Dreader-writer.cc63 void read_whole_file() { in read_whole_file() function
140 read_whole_file(); in main()
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/lib/ansible/modules/
H A Dfind.py298 def contentfilter(fsname, pattern, read_whole_file=False): argument
314 if read_whole_file:
382 read_whole_file=dict(type='bool', default=False),

12345