- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for testReadLine (0.34 sec)
-
src/net/parse_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net import ( "bufio" "os" "runtime" "testing" ) func TestReadLine(t *testing.T) { // /etc/services file does not exist on android, plan9, windows, or wasip1 // where it would be required to be mounted from the host file system. switch runtime.GOOS {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 00:04:48 UTC 2024 - 1.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(buf)); assertThrows(EOFException.class, () -> in.readUnsignedShort()); } @SuppressWarnings("DoNotCall") public void testReadLine() throws IOException { DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); UnsupportedOperationException expected =
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.8K bytes - Viewed (0) -
src/bufio/bufio_test.go
} if done != len(testOutput) { t.Errorf("ReadLine didn't return everything: got: %d, want: %d (stride: %d)", done, len(testOutput), stride) } } } func TestReadLine(t *testing.T) { testReadLine(t, testInput) testReadLine(t, testInputrn) } func TestLineTooLong(t *testing.T) { data := make([]byte, 0) for i := 0; i < minReadBufferSize*5/2; i++ { data = append(data, '0'+byte(i%10)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:56:01 UTC 2023 - 51.5K bytes - Viewed (0) -
src/net/textproto/reader_test.go
"bufio" "bytes" "io" "net" "reflect" "runtime" "strings" "sync" "testing" ) func reader(s string) *Reader { return NewReader(bufio.NewReader(strings.NewReader(s))) } func TestReadLine(t *testing.T) { r := reader("line1\nline2\n") s, err := r.ReadLine() if s != "line1" || err != nil { t.Fatalf("Line 1: %s, %v", s, err) } s, err = r.ReadLine() if s != "line2" || err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 05 18:31:56 UTC 2024 - 14.7K bytes - Viewed (0) -
src/context/x_test.go
o := otherContext{c} testDeadline(o, "WithDeadline+otherContext", t) c, _ = WithDeadline(Background(), time.Now().Add(shortDuration)) o = otherContext{c} c, _ = WithDeadline(o, time.Now().Add(veryLongDuration)) testDeadline(c, "WithDeadline+otherContext+WithDeadline", t) c, _ = WithDeadline(Background(), time.Now().Add(-shortDuration)) testDeadline(c, "WithDeadline+inthepast", t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 26.3K bytes - Viewed (0)