Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for roundTrip (0.8 sec)

  1. src/net/http/roundtrip.go

    // RoundTrip implements the [RoundTripper] interface.
    //
    // For higher-level HTTP client support (such as handling of cookies
    // and redirects), see [Get], [Post], and the [Client] type.
    //
    // Like the RoundTripper interface, the error types returned
    // by RoundTrip are unspecified.
    func (t *Transport) RoundTrip(req *Request) (*Response, error) {
    	return t.roundTrip(req)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 988 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    // They don't roundtrip and thus can be excluded in any custom/downstream roundtrip tests
    //
    //	kinds := scheme.AllKnownTypes()
    //	for gvk := range kinds {
    //	    if roundtrip.GlobalNonRoundTrippableTypes().Has(gvk.Kind) {
    //	        continue
    //	    }
    //	    t.Run(gvk.Group+"."+gvk.Version+"."+gvk.Kind, func(t *testing.T) {
    //	        // roundtrip test
    //	    })
    //	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  3. src/net/http/transport_dial_test.go

    			// to let tests associate requests with connections.
    			c.Conn = nc
    			return c, err
    		}
    	})
    	return dt
    }
    
    // roundTrip starts a RoundTrip.
    // It returns immediately, without waiting for the RoundTrip call to complete.
    func (dt *transportDialTester) roundTrip() *transportDialTesterRoundTrip {
    	dt.t.Helper()
    	ctx, cancel := context.WithCancel(context.Background())
    	pr, pw := io.Pipe()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. pkg/apis/flowcontrol/v1beta3/conversion_test.go

    		name     string
    		in       *v1beta3.PriorityLevelConfiguration
    		expected *flowcontrol.PriorityLevelConfiguration
    	}{
    		{
    			name: "v1beta3 object, the roundtrip annotation is set, NominalConcurrencyShares is zero; the internal object should not have the roundtrip annotation set",
    			in: inObjFn(0, map[string]string{
    				"foo": "bar",
    				v1beta3.PriorityLevelPreserveZeroConcurrencySharesKey: "",
    			}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/roundtrip_test.go

    	scheme := runtime.NewScheme()
    	for _, builder := range groups {
    		require.NoError(t, builder.AddToScheme(scheme))
    	}
    
    	opts := roundtrip.NewCompatibilityTestOptions(scheme)
    
    	// Fill unstructured JSON field types
    	opts.FillFuncs = map[reflect.Type]roundtrip.FillFunc{
    		reflect.TypeOf(&apiextensionv1.JSON{}): func(s string, i int, obj interface{}) {
    			obj.(*apiextensionv1.JSON).Raw = []byte(strconv.Quote(s + "Value"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. pkg/apis/resource/v1alpha2/defaults_test.go

    		Spec: v1alpha2.ResourceClaimSpec{
    			AllocationMode: nonDefaultMode,
    		},
    	}
    	output = roundTrip(t, runtime.Object(claim)).(*v1alpha2.ResourceClaim)
    	outMode = output.Spec.AllocationMode
    	if outMode != v1alpha2.AllocationModeImmediate {
    		t.Errorf("Expected AllocationMode to remain %+v, got: %+v", nonDefaultMode, outMode)
    	}
    }
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 06:52:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. pkg/apis/storage/v1beta1/defaults_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    	_ "k8s.io/kubernetes/pkg/apis/storage/install"
    	"k8s.io/kubernetes/pkg/features"
    )
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    	codec := legacyscheme.Codecs.LegacyCodec(storagev1beta1.SchemeGroupVersion)
    	data, err := runtime.Encode(codec, obj)
    	if err != nil {
    		t.Errorf("%v\n %#v", err, obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. pkg/apis/storage/v1/defaults_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    	_ "k8s.io/kubernetes/pkg/apis/storage/install"
    	"k8s.io/kubernetes/pkg/features"
    )
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    	codec := legacyscheme.Codecs.LegacyCodec(storagev1.SchemeGroupVersion)
    	data, err := runtime.Encode(codec, obj)
    	if err != nil {
    		t.Errorf("%v\n %#v", err, obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/lstm.json

    // Checks if calibrated type is exported back to quantized type.
    // RoundTrip: name: "effective_hidden_scale_intermediate",
    // RoundTrip-NEXT: quantization: {
    // RoundTrip-NEXT: min: [ -0.5 ],
    // RoundTrip-NEXT: max: [ 0.5 ]
    
    {
      "version": 3,
      "operator_codes": [
        {
          "builtin_code": "UNIDIRECTIONAL_SEQUENCE_LSTM"
        }
      ],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 06:25:50 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. pkg/apis/scheduling/v1/defaults_test.go

    	v1 "k8s.io/api/scheduling/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    
    	// ensure types are installed
    	_ "k8s.io/kubernetes/pkg/apis/scheduling/install"
    )
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    	codec := legacyscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion)
    	data, err := runtime.Encode(codec, obj)
    	if err != nil {
    		t.Errorf("%v\n %#v", err, obj)
    		return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top