Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 139 for roundTrip (0.31 sec)

  1. pkg/apis/extensions/v1beta1/defaults_test.go

    					},
    					RevisionHistoryLimit: utilpointer.Int32(10),
    				},
    			},
    		},
    	}
    
    	for i, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*extensionsv1beta1.DaemonSet)
    		if !ok {
    			t.Errorf("(%d) unexpected object: %v", i, got)
    			t.FailNow()
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. pkg/registry/flowcontrol/prioritylevelconfiguration/strategy.go

    	// 1.28 server is not aware of the roundtrip annotation, and will
    	// default any 0 value persisted (for the NominalConcurrencyShares
    	// field of a priority level configuration object) back to 30 when
    	// reading from etcd.
    	// That means we should not allow 0 values to be introduced, either
    	// via v1 or v1beta3(with the roundtrip annotation) until we know
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 20:55:50 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/composite_op_round_trip.mlir

    
    module {
      func.func public @main( %arg0: tensor<i64>) ->  tensor<i64> {
        %0 = func.call @test_add_roundtrip(%arg0) : (tensor<i64>) -> tensor<i64>
    
        return %0 : tensor<i64>
      }
    
    
      // CHECK-LABEL: func.func private @test_add_roundtrip
      func.func private @test_add_roundtrip(%arg0: tensor<i64>) -> tensor<i64> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:40:50 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. pkg/api/testing/copy_test.go

    	"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
    	"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    )
    
    func TestDeepCopyApiObjects(t *testing.T) {
    	for i := 0; i < *roundtrip.FuzzIters; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/defaults_test.go

    	obj := roundTrip(t, runtime.Object(in))
    	out := obj.(*v1.Service)
    	if out.Spec.Ports[0].TargetPort != intstr.FromInt32(1234) {
    		t.Errorf("Expected TargetPort to be defaulted, got %v", out.Spec.Ports[0].TargetPort)
    	}
    
    	in = &v1.Service{Spec: v1.ServiceSpec{Ports: []v1.ServicePort{{Port: 1234, TargetPort: intstr.FromInt32(5678)}}}}
    	obj = roundTrip(t, runtime.Object(in))
    	out = obj.(*v1.Service)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. pkg/apis/flowcontrol/v1beta3/defaults_test.go

    								QueueLengthLimit: PriorityLevelConfigurationDefaultQueueLengthLimit,
    							},
    						},
    					},
    				},
    			},
    		},
    		{
    			name: "NominalConcurrencyShares is 0, roundtrip annotation is not set, default value should be applied",
    			original: &flowcontrolv1beta3.PriorityLevelConfiguration{
    				Spec: flowcontrolv1beta3.PriorityLevelConfigurationSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. src/net/http/omithttp2.go

    type http2Transport struct {
    	MaxHeaderListSize uint32
    	ConnPool          any
    }
    
    func (*http2Transport) RoundTrip(*Request) (*Response, error) { panic(noHTTP2) }
    func (*http2Transport) CloseIdleConnections()                 {}
    
    type http2noDialH2RoundTripper struct{}
    
    func (http2noDialH2RoundTripper) RoundTrip(*Request) (*Response, error) { panic(noHTTP2) }
    
    type http2noDialClientConnPool struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 20:51:27 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. pkg/apis/autoscaling/v1/defaults_test.go

    					MinReplicas: utilpointer.Int32(3),
    				},
    			},
    			expectReplicas: 3,
    			test:           "set min replicas to 3",
    		},
    	}
    
    	for _, test := range tests {
    		hpa := &test.hpa
    		obj2 := roundTrip(t, runtime.Object(hpa))
    		hpa2, ok := obj2.(*autoscalingv1.HorizontalPodAutoscaler)
    		if !ok {
    			t.Fatalf("unexpected object: %v", obj2)
    		}
    		if hpa2.Spec.MinReplicas == nil {
    			t.Errorf("unexpected nil MinReplicas")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. tests/fuzz/crd_roundtrip_fuzzer.go

    	if err != nil {
    		return 0
    	}
    	typeAcc.SetKind(kgvk.Kind)
    	typeAcc.SetAPIVersion(kgvk.GroupVersion().String())
    
    	roundTrip(json.NewSerializer(json.DefaultMetaFactory, scheme, scheme, false), object)
    	return 1
    }
    
    // roundTrip performs the roundtrip of the object.
    func roundTrip(codec runtime.Codec, object runtime.Object) {
    	printer := spew.ConfigState{DisableMethods: true}
    
    	// deep copy the original object
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/transport/transport.go

    		}
    		caCertPool.AppendCertsFromPEM(caCert)
    		tr.caCertPool = caCertPool
    	}
    
    	return nil
    }
    
    // RoundTrip executes a single HTTP transaction, returning
    // a Response for the provided Request.
    func (tr *transport) RoundTrip(req *http.Request) (*http.Response, error) {
    	tr.initOnce.Do(func() {
    		tr.initErr = tr.initialize()
    	})
    	if tr.initErr != nil {
    		return nil, tr.initErr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 3.8K bytes
    - Viewed (0)
Back to top