Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 165 for eof (0.15 sec)

  1. 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) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  2. internal/s3select/json/preader.go

    		r.readerWg.Wait()
    		r.close = nil
    	}
    	r.recordsRead = len(r.current)
    	if r.err == nil {
    		r.err = io.EOF
    	}
    	return r.readCloser.Close()
    }
    
    // nextSplit will attempt to skip a number of bytes and
    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *PReader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  3. internal/s3select/csv/reader_contrib_test.go

    			wantErr:         io.EOF,
    		},
    		{
    			// This works since LazyQuotes is true:
    			file:            "invalid-badstartline.csv",
    			recordDelimiter: "\n",
    			fieldDelimiter:  ",",
    			sendErr:         nil,
    			header:          true,
    			wantColumns:     []string{"header1", "header2", "header3"},
    			wantFields:      "ok1,ok2,ok3\n" + `a,"b` + "\n" + `c""d,e` + "\n\"\n",
    			wantErr:         io.EOF,
    		},
    		{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  4. 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
    
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 10 20:26:29 GMT 2023
    - 998 bytes
    - Viewed (0)
  5. 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
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  6. ci/official/envs/rbe

      cat <<EOF
    ERROR: RBE was enabled via the 'rbe' env in the 'TFCI' variable.
           TFCI: $TFCI
           TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX is "$TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX".
           But in .bazelrc, there is no "rbe_$TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX".
           That setting must exist for this script to function correctly.
    EOF
      exit 1
    fi
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 10 19:39:41 GMT 2024
    - 2K bytes
    - Viewed (0)
  7. internal/s3select/simdj/reader.go

    	for {
    		var in simdjson.Stream
    		select {
    		case in = <-r.input:
    		case <-r.exitReader:
    			return
    		}
    		if in.Error != nil && in.Error != io.EOF {
    			r.err = &in.Error
    			return
    		}
    		if in.Value == nil {
    			if in.Error == io.EOF {
    				return
    			}
    			continue
    		}
    		i := in.Value.Iter()
    	readloop:
    		for {
    			var next simdjson.Iter
    			typ, err := i.AdvanceIter(&next)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 30 17:02:22 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  8. ci/official/utilities/code_check_full.bats

      cat > $BATS_TEST_TMPDIR/allowed_to_be_missing <<EOF
    @absl_py//absl
    @bazel_tools//platforms
    @bazel_tools//third_party/
    @bazel_tools//tools
    @local
    @com_google_absl//absl
    @pybind11_abseil//pybind11_abseil
    @org_tensorflow//
    @com_github_googlecloudplatform_google_cloud_cpp//google
    @com_github_grpc_grpc//src/compiler
    @platforms//os
    @ruy//
    @stablehlo//stablehlo/experimental
    EOF
    
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 06 21:54:13 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  9. internal/s3select/json/reader_test.go

    				t.Fatal(err)
    			}
    			r := NewReader(f, &ReaderArgs{})
    			var record sql.Record
    			for {
    				record, err = r.Read(record)
    				if err != nil {
    					break
    				}
    			}
    			r.Close()
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    
    		t.Run(file.Name()+"-close", func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  10. 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
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top