Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 139 for roundTrip (0.18 sec)

  1. pkg/apis/autoscaling/v2beta1/defaults_test.go

    					MinReplicas: defaultReplicas,
    					Metrics:     defaultTemplate,
    				},
    			},
    		},
    	}
    
    	for i, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*autoscalingv2beta1.HorizontalPodAutoscaler)
    		if !ok {
    			t.Fatalf("(%d) unexpected object: %v", i, obj2)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. pkg/apis/flowcontrol/v1beta3/conversion.go

    	if err := autoConvert_v1beta3_PriorityLevelConfiguration_To_flowcontrol_PriorityLevelConfiguration(in, out, nil); err != nil {
    		return err
    	}
    
    	// during v1beta3 -> internal conversion:
    	//  - remove the roundtrip annotation for the 'NominalConcurrencyShares' field
    	//  - make sure we don't mutate the source (v1beta3) object's annotations
    	annotations, copied := dropPriorityLevelConcurrencyShareDefaultAnnotation(out.ObjectMeta.Annotations)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    			t.Errorf("want %q, got %q", testPayload, string(resp))
    		}
    		t.Log("Roundtrip:", time.Since(start))
    	})
    
    	t.Run("localToRemoteErr", func(t *testing.T) {
    		const testPayload = "Hello Grid World!"
    		start := time.Now()
    		resp, err := remoteConn.Request(context.Background(), handlerTest2, []byte(testPayload))
    		t.Log("Roundtrip:", time.Since(start))
    		if len(resp) != 0 {
    			t.Errorf("want nil, got %q", string(resp))
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. pkg/apis/networking/v1/defaults_test.go

    					PolicyTypes: []networkingv1.PolicyType{networkingv1.PolicyTypeEgress},
    				},
    			},
    		},
    	}
    
    	for i, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*networkingv1.NetworkPolicy)
    		if !ok {
    			t.Errorf("(%d) unexpected object: %v", i, got)
    			t.FailNow()
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/roundtrip_test.go

    	fuzzer := fuzzer.FuzzerFor(genericfuzzer.Funcs, rand.NewSource(seed), codecs)
    
    	roundtrip.RoundTripExternalTypes(t, scheme, codecs, fuzzer, nil)
    }
    
    func TestCompatibility(t *testing.T) {
    	scheme := runtime.NewScheme()
    	for _, builder := range groups {
    		require.NoError(t, builder.AddToScheme(scheme))
    	}
    	roundtrip.NewCompatibilityTestOptions(scheme).Complete(t).Run(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    						t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface2, err)
    					}
    					if diff := cmp.Diff(iface, iface2); diff != "" {
    						t.Errorf("unexpected difference on roundtrip from interface{} to interface{}:\n%s", diff)
    					}
    				}
    
    				{
    					// original to original
    					final := reflect.New(reflect.TypeOf(original))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. pkg/apis/apps/v1beta2/defaults_test.go

    				Spec: s,
    			},
    		},
    	}
    	output := roundTrip(t, runtime.Object(rs))
    	rs2 := output.(*appsv1beta2.ReplicaSet)
    	defaultRequest := rs2.Spec.Template.Spec.Containers[0].Resources.Requests
    	requestValue := defaultRequest[v1.ResourceCPU]
    	if requestValue.String() != "0" {
    		t.Errorf("Expected 0 request value, got: %s", requestValue.String())
    	}
    }
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go

    	obj.ClusterName = "bar"
    	obj.ImageRepository = "baz"
    	obj.CIImageRepository = "" // This fields doesn't exists in public API >> using default to get the roundtrip test pass
    	obj.KubernetesVersion = "qux"
    	obj.CIKubernetesVersion = "" // This fields doesn't exists in public API >> using default to get the roundtrip test pass
    	obj.APIServer.TimeoutForControlPlane = &metav1.Duration{
    		Duration: 0,
    	}
    	obj.ControllerManager.ExtraEnvs = []kubeadm.EnvVar{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/net/http/transport_internal_test.go

    		// Already called t.Error in the accept goroutine.
    		return
    	}
    	conn.Close() // simulate the server hanging up on the client
    
    	_, err = pc.roundTrip(treq)
    	if !isNothingWrittenError(err) && !isTransportReadFromServerError(err) && err != errServerClosedIdle {
    		t.Errorf("roundTrip = %#v, %v; want errServerClosedIdle, transportReadFromServerError, or nothingWrittenError", err, err)
    	}
    
    	<-pc.closech
    	err = pc.closed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/bucketize.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure bucketize roundtrip exactly
    
    func.func @main(%arg0: tensor<3x2xf32>) -> tensor<3x2xi32> {
      // CHECK-LABEL: @main
      // CHECK: "tfl.bucketize"(%arg0) <{boundaries = [0.000000e+00 : f32, 1.000000e+01 : f32, 1.000000e+02 : f32]}> : (tensor<3x2xf32>) -> tensor<3x2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 571 bytes
    - Viewed (0)
Back to top