Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for picard (0.18 sec)

  1. src/bufio/bufio_test.go

    	br.ReadRune()
    	br.Discard(1)
    	if err := br.UnreadRune(); err == nil {
    		t.Error("UnreadRune didn't fail after Discard")
    	}
    }
    
    func TestNoUnreadByteAfterDiscard(t *testing.T) {
    	br := NewReader(strings.NewReader("example"))
    	br.ReadByte()
    	br.Discard(1)
    	if err := br.UnreadByte(); err == nil {
    		t.Error("UnreadByte didn't fail after Discard")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/net/http/httputil/reverseproxy_test.go

    	backend.Config.ErrorLog = log.New(io.Discard, "", 0)
    
    	backendURL, err := url.Parse(backend.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	proxyHandler := NewSingleHostReverseProxy(backendURL)
    
    	// Discards errors of the form:
    	// http: proxy error: read tcp 127.0.0.1:44643: use of closed network connection
    	proxyHandler.ErrorLog = log.New(io.Discard, "", 0)
    
    	frontend := httptest.NewServer(proxyHandler)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        waitForDataFrames(Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE)
    
        // Cancel the call and discard what we've buffered for the response body. This should free up
        // the connection flow-control window so new requests can proceed.
        call1.cancel()
        assertThat(
          response1.body.source().discard(1, TimeUnit.SECONDS),
          "Call should not have completed successfully.",
        ).isFalse()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  4. src/html/template/exec_test.go

    	}
    	// This one should be an ExecError.
    	tmpl, err = New("X").Parse("hello, {{.X.Y}}")
    	if err != nil {
    		t.Fatal(err)
    	}
    	err = tmpl.Execute(io.Discard, 0)
    	if err == nil {
    		t.Fatal("expected error; got none")
    	}
    	eerr, ok := err.(template.ExecError)
    	if !ok {
    		t.Fatalf("did not expect ExecError %s", eerr)
    	}
    	expect := "field X in type int"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    					),
    				},
    			},
    			attempts:              1,
    			minQueueIndexExpected: []int{1},
    			robinIndexExpected:    []int{1},
    		},
    		{
    			name:             "width1=1, all seats are occupied, no queue is picked",
    			concurrencyLimit: 1,
    			totSeatsInUse:    1,
    			robinIndex:       -1,
    			queues: []*queue{
    				{
    					nextDispatchR: fcrequest.SeatsTimesDuration(1, 200*time.Second),
    					requestsWaiting: newFIFO(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    	volumeDir, err := s.getVolDir(volume)
    	if err != nil {
    		return err
    	}
    
    	discard := true
    
    	var legacyJSON bool
    	buf, _, err := s.readAllData(ctx, volume, volumeDir, pathJoin(volumeDir, path, xlStorageFormatFile), discard)
    	if err != nil {
    		if !errors.Is(err, errFileNotFound) {
    			return err
    		}
    
    		s.RLock()
    		legacy := s.formatLegacy
    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/text/template/exec_test.go

    	}
    	// This one should be an ExecError.
    	tmpl, err = New("X").Parse("hello, {{.X.Y}}")
    	if err != nil {
    		t.Fatal(err)
    	}
    	err = tmpl.Execute(io.Discard, 0)
    	if err == nil {
    		t.Fatal("expected error; got none")
    	}
    	eerr, ok := err.(ExecError)
    	if !ok {
    		t.Fatalf("did not expect ExecError %s", eerr)
    	}
    	expect := "field X in type int"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        if TFRTypes.INDEX in elt_types:
          # Constants collapse to indices.
          elt_types.discard(TFRTypes.I64)
        if TFRTypes.TENSOR in elt_types:
          # Constants collapse to tensors.
          elt_types.discard(TFRTypes.I64)
          # Indices collapse to tensors.
          elt_types.discard(TFRTypes.INDEX)
        return elt_types
    
      def res_list_literal(self, ns, elt_types):
        all_elt_types = set()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/DefaultServiceRegistry.java

            }
    
            @Override
            protected Object createServiceInstance() {
                Object[] params = assembleParameters();
                Object result = invokeMethod(params);
                // Can discard the state required to create instance
                paramServices = null;
                return result;
            }
    
            private Object[] assembleParameters() {
                if (paramServices == NO_DEPENDENTS) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. src/net/http/client_test.go

    	cst.c.Timeout = 1 * time.Hour
    	req, _ := NewRequest("GET", cst.ts.URL, nil)
    	res, err := cst.c.Do(req)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if _, err = io.Copy(io.Discard, res.Body); err != nil {
    		t.Fatalf("io.Copy(io.Discard, res.Body) = %v, want nil", err)
    	}
    	if err = res.Body.Close(); err != nil {
    		t.Fatalf("res.Body.Close() = %v, want nil", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top