/dports/devel/R-cran-brio/brio/tests/testthat/ |
H A D | test-read_lines.R | 9 expect_equal(read_lines(tmp), character()) 21 expect_equal(read_lines(tmp), "foo") 22 expect_equal(read_lines(tmp, 1), "foo") 33 expect_equal(read_lines(tmp, 1), "") 34 expect_equal(read_lines(tmp), "") 45 expect_equal(read_lines(tmp, 1), "") 46 expect_equal(read_lines(tmp), "") 109 expect_equal(read_lines(tmp), data) 123 expect_equal(read_lines(tmp), data) 140 expect_equal(read_lines(tmp), data) [all …]
|
/dports/textproc/R-cran-readr/readr/tests/testthat/ |
H A D | test-read-lines.R | 9 expect_equal(read_lines("empty-file"), character()) 19 expect_equal(read_lines(I("abc\n123")), c("abc", "123")) 26 expect_equal(read_lines(I("abc\n\n123")), c("abc", "", "123")) 45 expect_equal(read_lines(x, skip = 3), c("", "foo", "bar", "baz")) 46 expect_equal(read_lines(x, skip = 4), c("foo", "bar", "baz")) 47 expect_equal(read_lines(x, skip = 5), c("bar", "baz")) 48 expect_equal(read_lines(x, skip = 6), c("baz")) 49 expect_equal(read_lines(x, skip = 7), character()) 58 expect_equal(length(read_lines(tmp)), 2^11) 73 expect_equal(read_lines(tmp, skip_empty_rows = TRUE), "test") [all …]
|
H A D | test-parsing-character.R | 40 charToRaw(read_lines( 52 charToRaw(read_lines( 64 charToRaw(read_lines( 76 charToRaw(read_lines( 88 charToRaw(read_lines( 100 charToRaw(read_lines( 107 charToRaw(read_lines( 114 charToRaw(read_lines(
|
H A D | test-write-lines.R | 7 x <- read_lines(tmp, locale = locale(encoding = "UTF-8")) 24 expect_equal(read_lines(tmp), c("first", "NA", "last")) 27 expect_equal(read_lines(tmp2), c("first", "test", "last")) 37 expect_equal(read_lines(tmp), c("first", "last", "first", "last")) 47 expect_equal(read_lines(tmp), vapply(x, rawToChar, character(1))) 104 expect_equal(c("foo", "bar", "baz"), read_lines(filename))
|
/dports/sysutils/p5-Rex/Rex-1.13.4/t/ |
H A D | fs_files.t | 26 my @read_lines = $file_object->read_all; 27 is_deeply \@read_lines, \@lines, 'read lines from fh'; 45 my @read_lines = $read_object->read_all; 46 is_deeply \@read_lines, [qw/this is a test/], 'read lines from fh'; 56 my @read_lines = $file_object->read_all; 57 is_deeply \@read_lines, \@lines, 'read lines from filename'; 73 my @read_lines = $read_object->read_all; 74 is_deeply \@read_lines, [qw/this is a test/], 'read lines from fh'; 85 my @read_lines = $file_object->read_all; 86 is_deeply \@read_lines, \@lines, [all …]
|
/dports/devel/p5-File-Slurper/File-Slurper-0.012/bench/ |
H A D | layers.pl | 16 sub read_lines { subroutine 35 ':encoding' => sub { read_lines($filename, ':encoding(utf-8-strict)') }, 36 ':encoding:perlio' => sub { read_lines($filename, ':encoding(utf-8-strict):perlio') }, 72 ':crlf:utf8_strict' => sub { read_lines($filename, ":crlf:utf8_strict") }, 73 ':utf8_strict:crlf' => sub { read_lines($filename, ":utf8_strict:crlf") }, 74 ':utf8_strict:crlf:perlio' => sub { read_lines($filename, ":utf8_strict:crlf:perlio") }, 75 ':utf8_strict:perlio' => sub { read_lines($filename, ":utf8_strict:perlio") }, 76 ':utf8_strict' => sub { read_lines($filename, ":utf8_strict") }, 89 ':unix:crlf' => sub { read_lines($filename, ":unix:crlf") }, 90 ':unix:crlf:perlio' => sub { read_lines($filename, ":unix:crlf:perlio") },
|
H A D | modules.pl | 31 'Slurper' => sub { my @lines = read_lines($filename, 'latin1', 0, 1) }, 39 'Slurper' => sub { for(read_lines($filename, 'latin1', 0, 1)) {} }, 47 'Slurper' => sub { my @lines = read_lines($filename, 'latin1', 0, 0) }, 63 'Slurper' => sub { my @lines = read_lines($filename, 'latin1', 1, 1) }, 71 'Slurper' => sub { my @lines = read_lines($filename, 'latin1', 1, 0) }, 91 'Slurper' => sub { my @lines = read_lines($filename, 'utf-8', 0, 1) }, 94 …'Explicit' => sub { my @lines = map { utf8::decode($_); $_ } read_lines($filename, 'latin1', 0,… 100 'Slurper' => sub { my @lines = read_lines($filename, 'utf-8', 0, 0) },
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/tests/runtime_shell/in_tail/ |
H A D | run_tests.sh | 81 echo "> read lines : $read_lines" 84 ${_ASSERT_EQUALS_} $write_lines $read_lines 135 read_lines=`cat $TEST_DIR/a | wc -l` 138 echo "> read lines : $read_lines" 236 read_lines=`cat $TEST_DIR/a | wc -l` 239 echo "> read lines : $read_lines" 347 read_lines=`cat $TEST_DIR/a | wc -l` 350 echo "> read lines : $read_lines" 436 read_lines=`cat $TEST_DIR/a | wc -l` 439 echo "> read lines : $read_lines" [all …]
|
H A D | test_rotation.sh | 81 echo "> read lines : $read_lines" 135 read_lines=`cat $TEST_DIR/a | wc -l` 138 echo "> read lines : $read_lines" 236 read_lines=`cat $TEST_DIR/a | wc -l` 239 echo "> read lines : $read_lines" 347 read_lines=`cat $TEST_DIR/a | wc -l` 350 echo "> read lines : $read_lines" 436 read_lines=`cat $TEST_DIR/a | wc -l` 439 echo "> read lines : $read_lines" 528 read_lines=`cat $TEST_DIR/a | wc -l` [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/src/ |
H A D | reader_native.cpp | 63 read_lines(2); in read_time() 66 read_lines(2); in read_time() 71 read_lines(1); in read_time() 86 read_lines(2); in skip() 92 read_lines(5); in skip() 129 read_lines(2); in read_header() 137 read_lines(1); in read_header() 140 read_lines(1); in read_header() 145 read_lines(1); in read_header() 150 read_lines(1); in read_header() [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/unittest/formats/ |
H A D | test_dump_local.cpp | 79 auto lines = read_lines(dump_file); in TEST_F() 104 auto lines = read_lines(dump_file); in TEST_F() 116 auto lines = read_lines(dump_file); in TEST_F() 129 auto lines = read_lines(dump_file); in TEST_F() 142 auto lines = read_lines(dump_file); in TEST_F() 155 auto lines = read_lines(dump_file); in TEST_F() 168 auto lines = read_lines(dump_file); in TEST_F() 193 auto lines = read_lines(dump_file); in TEST_F() 212 auto lines = read_lines(dump_file); in TEST_F() 232 auto lines = read_lines(dump_file); in TEST_F()
|
H A D | test_dump_cfg.cpp | 72 auto lines = read_lines("dump_cfg_run0.melt.cfg"); in TEST_F() 89 auto lines = read_lines("dump_cfg.melt.cfg"); in TEST_F() 95 lines = read_lines("dump_cfg0.melt.cfg"); in TEST_F() 112 auto lines = read_lines("dump_cfg_unwrap_run0.melt.cfg"); in TEST_F() 126 auto lines = read_lines("dump_cfg_no_buffer_run0.melt.cfg"); in TEST_F() 140 auto lines = read_lines("dump_cfg_no_unwrap_no_buffer_run0.melt.cfg"); in TEST_F()
|
H A D | test_dump_custom.cpp | 97 auto lines = read_lines(dump_file); in TEST_F() 114 auto lines = read_lines(dump_file); in TEST_F() 135 auto lines = read_lines(dump_file); in TEST_F() 158 auto lines = read_lines(dump_file); in TEST_F() 180 auto lines = read_lines(dump_file); in TEST_F() 222 auto lines = read_lines(dump_file); in TEST_F() 267 auto lines = read_lines(dump_file); in TEST_F() 284 auto lines = read_lines(dump_file); in TEST_F() 288 lines = read_lines(dump_file); in TEST_F()
|
H A D | test_dump_atom.cpp | 94 auto lines = read_lines(dump_file); in TEST_F() 110 auto lines = read_lines(dump_file); in TEST_F() 126 auto lines = read_lines(dump_file); in TEST_F() 141 auto lines = read_lines(dump_file); in TEST_F() 156 auto lines = read_lines(dump_file); in TEST_F() 171 auto lines = read_lines(dump_file); in TEST_F() 184 auto lines = read_lines(dump_file); in TEST_F() 199 auto lines = read_lines(dump_file); in TEST_F() 213 auto lines = read_lines(dump_file); in TEST_F() 228 auto lines = read_lines(dump_file); in TEST_F() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/doc/rust-by-example/src/std_misc/file/ |
H A D | read_lines.md | 1 # `read_lines` 7 `read_lines()` expects as input. 16 if let Ok(lines) = read_lines("./hosts") { 28 fn read_lines<P>(filename: P) -> io::Result<io::Lines<io::BufReader<File>>> 38 $ rustc read_lines.rs && ./read_lines
|
/dports/devel/erlang-cf/cf-0.3.1/ |
H A D | mk-termcap.escript | 10 Terms = read_lines(File, {parse_name(Cap), ""}, []), 16 read_lines(File, {H, Acc}, FAcc) -> function 24 read_lines(File, {H, remove_newline(strip_ws(Rest))}, FAcc); 26 read_lines(File, {H, [Acc, " ", remove_newline(strip_ws(Rest))]}, FAcc) 31 read_lines(File, {H, remove_newline(strip_ws(Rest))}, FAcc); 33 read_lines(File, {H, [Acc, " ", remove_newline(strip_ws(Rest))]}, FAcc) 36 read_lines(File, {parse_name(Cap), ""}, [{H, parse_caps(Acc)} | FAcc])
|
/dports/devel/R-cran-brio/brio/man/ |
H A D | read_lines.Rd | 2 % Please edit documentation in R/read_lines.R 3 \name{read_lines} 4 \alias{read_lines} 7 read_lines(path, n = -1) 27 data <- read_lines(authors_file)
|
/dports/science/liggghts/LIGGGHTS-PUBLIC-3.8.0-26-g6e873439/src/ |
H A D | reader_native.cpp | 93 read_lines(1); in read_time() 106 read_lines(2); in skip() 110 read_lines(5); in skip() 118 read_lines(nchunk); in skip() 145 read_lines(2); in read_header() 150 read_lines(1); in read_header() 153 read_lines(1); in read_header() 156 read_lines(1); in read_header() 159 read_lines(1); in read_header() 163 read_lines(1); in read_header() [all …]
|
/dports/devel/R-cran-pkgcache/pkgcache/tests/testthat/ |
H A D | test-4-async-http.R | 36 expect_equal(read_lines(etag), "foobar") 76 expect_equal(read_lines(etag), "foobar") 94 expect_equal(read_lines(etag), "foobar") 110 expect_equal(read_lines(target), "dummy") 112 expect_equal(read_lines(etag), "foobar") 164 read_lines(tmp, warn = FALSE), 187 expect_equal(read_lines(etag), "foobar") 203 expect_equal(read_lines(target), "dummy") 205 expect_equal(read_lines(etag), "foobar") 272 expect_equal(read_lines(downloads$etag[i]), paste0("foobar", i)) [all …]
|
/dports/science/sparta/sparta-20Oct2021/src/ |
H A D | read_particles.cpp | 232 read_lines(1); in read_time() 245 read_lines(2); in skip() 249 read_lines(5); in skip() 257 read_lines(nchunk); in skip() 272 read_lines(2); in read_header() 275 read_lines(4); in read_header() 276 read_lines(1); in read_header() 321 void ReadParticles::read_lines(int n) in read_lines() function in ReadParticles
|
/dports/devel/p5-File-Slurp-Tiny/File-Slurp-Tiny-0.004/benchmark/ |
H A D | 1.pl | 29 'Slurp-Tiny' => sub { my $lines = File::Slurp::Tiny::read_lines($filename, array_ref => 1) }, 35 …'Slurp-Tiny' => sub { my $lines = File::Slurp::Tiny::read_lines($filename, array_ref => 1, chomp … 41 'Slurp-Tiny' => sub { my @lines = File::Slurp::Tiny::read_lines($filename) }, 48 'Slurp-Tiny' => sub { my @lines = File::Slurp::Tiny::read_lines($filename, chomp => 1) },
|
/dports/net/rude/rude/rude/ |
H A D | parse.c | 570 int read_lines = 0; in read_cfg() local 578 read_lines++; in read_cfg() 581 RUDEBUG7("read_cfg() - read comment (line #=%d)\n",read_lines); in read_cfg() 587 RUDEBUG7("read_cfg() - read START NOW (line #=%d)\n",read_lines); in read_cfg() 600 RUDEBUG7("read_cfg() - read START (line #=%d)\n",read_lines); in read_cfg() 627 RUDEBUG1("read_cfg() - invalid TOS flow (line #=%d)\n",read_lines); in read_cfg() 640 RUDEBUG1("read_cfg() - invalid CMD (line #=%d)\n",read_lines); in read_cfg() 642 RUDEBUG7("read_cfg() - read CMD %s (line #=%d)\n",cmd,read_lines); in read_cfg() 663 RUDEBUG1("read_cfg() - invalid CMD line %d\n",read_lines); in read_cfg() 671 RUDEBUG1("read_cfg() - invalid CMD (line #=%d)\n", read_lines); in read_cfg() [all …]
|
/dports/textproc/ripgrep-all/ripgrep-all-0.9.6/cargo-crates/nom-2.2.1/tests/ |
H A D | multiline.rs | 13 named!(read_lines <Vec<&str> >, many0!(read_line)); 19 assert_eq!(read_lines(&b"Duck\nDog\nCow\n"[..]), res); in read_lines_test() 20 assert_eq!(read_lines(&b"Duck\nDog\nCow"[..]), res); in read_lines_test()
|
/dports/audio/ncspot/ncspot-0.9.3/cargo-crates/nom-3.2.1/tests/ |
H A D | multiline.rs | 13 named!(read_lines <Vec<&str> >, many0!(read_line)); 19 assert_eq!(read_lines(&b"Duck\nDog\nCow\n"[..]), res); 20 assert_eq!(read_lines(&b"Duck\nDog\nCow"[..]), res);
|
/dports/sysutils/fselect/fselect-0.7.7/cargo-crates/nom-3.2.1/tests/ |
H A D | multiline.rs | 13 named!(read_lines <Vec<&str> >, many0!(read_line)); 19 assert_eq!(read_lines(&b"Duck\nDog\nCow\n"[..]), res); 20 assert_eq!(read_lines(&b"Duck\nDog\nCow"[..]), res);
|