Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for readArg (0.11 sec)

  1. pkg/kubelet/server/server_test.go

    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		t.Errorf("expected status code %d, got %d", http.StatusOK, resp.StatusCode)
    	}
    	body, readErr := io.ReadAll(resp.Body)
    	if readErr != nil {
    		// copying the response body did not work
    		t.Fatalf("Cannot copy resp: %#v", readErr)
    	}
    	result := string(body)
    	if !strings.Contains(result, "ok") {
    		t.Errorf("expected body contains ok, got %s", result)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. src/net/http/request.go

    }
    
    var textprotoReaderPool sync.Pool
    
    func newTextprotoReader(br *bufio.Reader) *textproto.Reader {
    	if v := textprotoReaderPool.Get(); v != nil {
    		tr := v.(*textproto.Reader)
    		tr.R = br
    		return tr
    	}
    	return textproto.NewReader(br)
    }
    
    func putTextprotoReader(r *textproto.Reader) {
    	r.R = nil
    	textprotoReaderPool.Put(r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  3. src/strings/strings_test.go

    			}
    		}
    		if res != s {
    			t.Errorf("Reader(%q).ReadRune() produced %q", s, res)
    		}
    	}
    }
    
    var UnreadRuneErrorTests = []struct {
    	name string
    	f    func(*Reader)
    }{
    	{"Read", func(r *Reader) { r.Read([]byte{0}) }},
    	{"ReadByte", func(r *Reader) { r.ReadByte() }},
    	{"UnreadRune", func(r *Reader) { r.UnreadRune() }},
    	{"Seek", func(r *Reader) { r.Seek(0, io.SeekCurrent) }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    			readers[index] = newBitrotReader(disk, metaArr[index].Data, bucket, partPath, tillOffset,
    				checksumInfo.Algorithm, checksumInfo.Hash, erasure.ShardSize())
    
    			// Prefer local disks
    			prefer[index] = disk.Hostname() == ""
    		}
    
    		written, err := erasure.Decode(ctx, writer, readers, partOffset, partLength, partSize, prefer)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsElevateWordCQ.java

            if (opLambda != null) {
                opLambda.callback(builder);
            }
        }
    
        public void setReading_SpanTerm(String reading) {
            setReading_SpanTerm("reading", null);
        }
    
        public void setReading_SpanTerm(String reading, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
            SpanTermQueryBuilder builder = regSpanTermQ("reading", reading);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    // for io.EOF.
    //
    // If an EOF happens after reading some but not all the bytes,
    // ReadFile returns ErrUnexpectedEOF.
    //
    // If the BitrotVerifier is not nil or not verified ReadFile
    // tries to verify whether the disk has bitrot.
    //
    // Additionally ReadFile also starts reading from an offset. ReadFile
    // semantics are same as io.ReadFull.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  7. src/time/time.go

    // in this package the Time returned by [time.Now] contains both a wall
    // clock reading and a monotonic clock reading; later time-telling
    // operations use the wall clock reading, but later time-measuring
    // operations, specifically comparisons and subtractions, use the
    // monotonic clock reading.
    //
    // For example, this code always computes a positive elapsed time of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  8. src/cmd/link/internal/loader/loader.go

    	ndef         int      // cache goobj.Reader.NSym()
    	nhashed64def int      // cache goobj.Reader.NHashed64Def()
    	nhasheddef   int      // cache goobj.Reader.NHashedDef()
    	objidx       uint32   // index of this reader in the objs slice
    }
    
    // Total number of defined symbols (package symbols, hashed symbols, and
    // non-package symbols).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  9. src/net/http/fs_test.go

    		ServeFile(w, r, "testdata/file")
    	})).ts
    	c := ts.Client()
    
    	var err error
    
    	file, err := os.ReadFile(testFile)
    	if err != nil {
    		t.Fatal("reading file:", err)
    	}
    
    	// set up the Request (re-used for all tests)
    	var req Request
    	req.Header = make(Header)
    	if req.URL, err = url.Parse(ts.URL); err != nil {
    		t.Fatal("ParseURL:", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  10. cmd/xl-storage_test.go

    	w := newStreamingBitrotWriter(storage, "", volName, fileName, size, algo, shardSize)
    	reader := bytes.NewReader(data)
    	for {
    		// Using io.Copy instead of this loop will not work for us as io.Copy
    		// will use bytes.Reader.WriteTo() which will not do shardSize'ed writes
    		// causing error.
    		n, err := reader.Read(shard)
    		w.Write(shard[:n])
    		if err == nil {
    			continue
    		}
    		if err == io.EOF {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top