Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 137 for roundTrip (0.19 sec)

  1. pkg/spiffe/spiffe_test.go

    				t.Fatal(err)
    			}
    			if !reflect.DeepEqual(got, *tt.expected) {
    				t.Fatalf("expected %#v, got %#v", *tt.expected, got)
    			}
    
    			roundTrip := got.String()
    			if roundTrip != tt.input {
    				t.Fatalf("round trip failed, expected %q got %q", tt.input, roundTrip)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    			agent := tt.agent
    			if len(agent) == 0 {
    				agent = "-"
    			}
    			expect := WarningHeader{Code: tt.code, Agent: agent, Text: tt.text}
    			if roundTrip != expect {
    				t.Fatalf("after round trip, want:\n%#v\ngot\n%#v", expect, roundTrip)
    			}
    		})
    	}
    }
    
    func TestParseWarningHeaders(t *testing.T) {
    	tests := []struct {
    		name string
    
    		headers []string
    
    		want     []WarningHeader
    		wantErrs []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/latency_tracker.go

    // round trips (the time it takes to send data to etcd and get the
    // complete response back)
    //
    // If an API request involves N (N>=1) round trips to etcd, then we will sum
    // up the latenciy incurred in each roundtrip.
    
    // It uses the context associated with the request in flight, so there
    // are no states shared among the requests in flight, and so there is no
    // concurrency overhead.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. src/cmd/internal/goobj/objfile_test.go

    	wr := &bio.Writer{Writer: bufio.NewWriter(buf)} // hacky: no file, so cannot seek
    	return NewWriter(wr)
    }
    
    func TestReadWrite(t *testing.T) {
    	// Test that we get the same data in a write-read roundtrip.
    
    	// Write a symbol, a relocation, and an aux info.
    	var buf bytes.Buffer
    	w := dummyWriter(&buf)
    
    	var s Sym
    	s.SetABI(1)
    	s.SetType(uint8(objabi.STEXT))
    	s.SetFlag(0x12)
    	s.SetSiz(12345)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:12 UTC 2022
    - 3K bytes
    - Viewed (0)
  5. src/net/http/filetransport.go

    //	c := &http.Client{Transport: t}
    //	res, err := c.Get("file:///etc/passwd")
    //	...
    func NewFileTransportFS(fsys fs.FS) RoundTripper {
    	return NewFileTransport(FS(fsys))
    }
    
    func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) {
    	// We start ServeHTTP in a goroutine, which may take a long
    	// time if the file is large. The newPopulateResponseWriter
    	// call returns a channel which either ServeHTTP or finish()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. internal/grid/muxclient.go

    		LastPong:           time.Now().UnixNano(),
    		BaseFlags:          parent.baseFlags,
    		clientPingInterval: parent.clientPingInterval,
    	}
    }
    
    // roundtrip performs a roundtrip, returning the first response.
    // This cannot be used concurrently.
    func (m *muxClient) roundtrip(h HandlerID, req []byte) ([]byte, error) {
    	if m.init {
    		return nil, errors.New("mux client already used")
    	}
    	m.init = true
    	m.singleResp = true
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

      // on StableHLO, treating StableHLO purely as an input format, and do all
      // optimizations via MHLO passes that can be shared with the OpenXLA compiler.
      // Therefore, this function inserts a StableHLO <=> MHLO roundtrip to make
      // this happen.
    
      // StableHLO -> MHLO legalization.
      pm.addPass(mhlo::createStablehloLegalizeToHloPass());
    
      AddMhloOptimizationPasses(pm, /*enable_stablehlo_quantizer=*/false);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/net/http/httputil/dump.go

    			return &dumpConn{io.MultiWriter(&buf, pw), dr}, nil
    		},
    	}
    	defer t.CloseIdleConnections()
    
    	// We need this channel to ensure that the reader
    	// goroutine exits if t.RoundTrip returns an error.
    	// See golang.org/issue/32571.
    	quitReadCh := make(chan struct{})
    	// Wait for the request before replying with a dummy response:
    	go func() {
    		req, err := http.ReadRequest(bufio.NewReader(pr))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. pkg/api/testing/serialization_test.go

    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    
    	appsv1 "k8s.io/api/apps/v1"
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
    	"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/api/meta"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/conversion"
    	"k8s.io/apimachinery/pkg/runtime"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

      TF_ASSERT_OK(stream->BlockHostUntilDone());
    
      tensorflow::test::ExpectClose(origin_cpu_tensor, dest_cpu_tensor);
      device_context->Unref();
    }
    
    TEST_F(XlaHostSendRecvDeviceContextTest, RoundTrip) {
      SetDevice("GPU");
      Tensor origin_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2}));
      test::FillValues<float>(&origin_cpu_tensor, {1.2, 2.3, 3.4, 4.5});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top