- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 122 for EOF (0.04 sec)
-
cmd/metacache-stream_test.go
r := loadMetacacheSample(t) defer r.Close() entries, err := r.readN(-1, false, true, false, "") if err != io.EOF { t.Fatal(err) } return entries } func Test_metacacheReader_readNames(t *testing.T) { r := loadMetacacheSample(t) defer r.Close() names, err := r.readNames(-1) if err != io.EOF { t.Fatal(err) } want := loadMetacacheSampleNames if !reflect.DeepEqual(names, want) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 15K bytes - Viewed (0) -
src/archive/tar/reader.go
return nil, nil, err // EOF is okay here; exactly 0 bytes read } if bytes.Equal(tr.blk[:], zeroBlock[:]) { if _, err := io.ReadFull(tr.r, tr.blk[:]); err != nil { return nil, nil, err // EOF is okay here; exactly 1 block of zeros read } if bytes.Equal(tr.blk[:], zeroBlock[:]) { return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
ci/official/utilities/cleanup_docker.sh
# ============================================================================== cat <<EOF IMPORTANT: These tests ran under docker. This script does not clean up the container for you! You can delete the container with: $ docker rm -f tf You can also execute more commands within the container with e.g.: $ docker exec tf bazel clean $ docker exec -it tf bash EOF
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Aug 10 20:26:29 UTC 2023 - 998 bytes - Viewed (0) -
src/bytes/buffer_test.go
buf.Reset() // check at EOF if err := buf.UnreadRune(); err == nil { t.Fatal("UnreadRune at EOF: got no error") } if _, _, err := buf.ReadRune(); err == nil { t.Fatal("ReadRune at EOF: got no error") } if err := buf.UnreadRune(); err == nil { t.Fatal("UnreadRune after ReadRune at EOF: got no error") } // check not at EOF buf.Write(b) for r := rune(0); r < NRune; r++ {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 19 16:13:04 UTC 2025 - 18.6K bytes - Viewed (0) -
cmd/object_api_suite_test.go
} // OneByteReadEOF - implements io.Reader which returns 1 byte along with io.EOF error. type testOneByteReadEOF struct { eof bool data []byte } func (r *testOneByteReadEOF) Read(p []byte) (n int, err error) { if r.eof { return 0, io.EOF } n = copy(p, r.data) r.eof = true return n, io.EOF } // Return pointer to testOneByteReadNoEOF{} func newTestReaderNoEOF(data []byte) io.Reader {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 34.5K bytes - Viewed (0) -
ci/official/utilities/cleanup_summary.sh
set -exo pipefail function resultstore_extract_fallback { # In case the main script fails somehow. cat <<EOF IMPORTANT: For bazel invocations that uploaded to ResultStore (e.g. RBE), you can view more detailed results that are probably easier to read than this log. Try the links below: EOF # Find any "Streaming build results to" lines, # de-duplicate, # and print the last word from each
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Jan 09 18:37:25 UTC 2025 - 1.8K bytes - Viewed (0) -
src/bytes/reader_test.go
} if n, err := (&Reader{}).Read(nil); n != 0 || err != io.EOF { t.Errorf("Read: got %d, %v; want 0, io.EOF", n, err) } if n, err := (&Reader{}).ReadAt(nil, 11); n != 0 || err != io.EOF { t.Errorf("ReadAt: got %d, %v; want 0, io.EOF", n, err) } if b, err := (&Reader{}).ReadByte(); b != 0 || err != io.EOF { t.Errorf("ReadByte: got %d, %v; want 0, io.EOF", b, err) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 8K bytes - Viewed (0) -
src/bytes/buffer.go
// underlying buffer. const MinRead = 512 // ReadFrom reads data from r until EOF and appends it to the buffer, growing // the buffer as needed. The return value n is the number of bytes read. Any // error except io.EOF encountered during the read is also returned. If the // buffer becomes too large, ReadFrom will panic with [ErrTooLarge].
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 19 17:38:56 UTC 2025 - 16K bytes - Viewed (0) -
cmd/metacache-set.go
// We have enough and we have more. // Do not return io.EOF if resCh != nil { resErr = nil select { case resCh <- results: case <-ctx.Done(): } resCh = nil returned = true } continue } results.o = append(results.o, entry) } if resCh != nil { resErr = io.EOF select { case <-ctx.Done(): // Nobody wants it.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.7K bytes - Viewed (0) -
src/bytes/reader.go
} if off >= int64(len(r.s)) { return 0, io.EOF } n = copy(b, r.s[off:]) if n < len(b) { err = io.EOF } return } // ReadByte implements the [io.ByteReader] interface. func (r *Reader) ReadByte() (byte, error) { r.prevRune = -1 if r.i >= int64(len(r.s)) { return 0, io.EOF } b := r.s[r.i] r.i++ return b, nil }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jul 16 18:17:37 UTC 2024 - 3.9K bytes - Viewed (0)