Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 5,437 for expectUsed (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/cert_key_test.go

    		name     string
    		lhs      *certKeyContent
    		rhs      *certKeyContent
    		expected bool
    	}{
    		{
    			name:     "both nil",
    			expected: true,
    		},
    		{
    			name:     "lhs nil",
    			rhs:      &certKeyContent{},
    			expected: false,
    		},
    		{
    			name:     "rhs nil",
    			lhs:      &certKeyContent{},
    			expected: false,
    		},
    		{
    			name:     "same",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 22 13:27:45 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/topologymanager/scope_container_test.go

    		actual := ctnScope.policy.(*mockPolicy).ph
    		if !reflect.DeepEqual(tc.expected, actual) {
    			t.Errorf("Test Case: %s", tc.name)
    			t.Errorf("Expected result to be %v, got %v", tc.expected, actual)
    		}
    	}
    }
    
    func TestContainerAccumulateProvidersHints(t *testing.T) {
    	tcases := []struct {
    		name     string
    		hp       []HintProvider
    		expected []map[string][]TopologyHint
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 12 11:25:55 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/labels_test.go

    	containerInfo := getContainerInfoFromAnnotations(annotations)
    	if !reflect.DeepEqual(containerInfo, expected) {
    		t.Errorf("expected %v, got %v", expected, containerInfo)
    	}
    	if v, ok := annotations[opts.Annotations[0].Name]; !ok || v != opts.Annotations[0].Value {
    		t.Errorf("expected annotation %s to exist got %v, %v", opts.Annotations[0].Name, ok, v)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/helpers_linux_test.go

    			input:    int64(5),
    			period:   uint64(10000),
    			expected: minQuotaPeriod,
    		},
    		{
    			msg:      "5 input 5k period and default quota expected",
    			input:    int64(5),
    			period:   uint64(5000),
    			expected: minQuotaPeriod,
    		},
    		{
    			msg:      "9 input 10k period and default quota expected",
    			input:    int64(9),
    			period:   uint64(10000),
    			expected: minQuotaPeriod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/internal/test2json/testdata/framefuzz.test

        inlining_test.go:102: not in expected set, but also inlinable: "mask6"
        inlining_test.go:102: not in expected set, but also inlinable: "AddrPort.isZero"
        inlining_test.go:102: not in expected set, but also inlinable: "stringsLastIndexByte"
        inlining_test.go:102: not in expected set, but also inlinable: "Addr.isZero"
        inlining_test.go:102: not in expected set, but also inlinable: "bePutUint32"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. pkg/apis/admissionregistration/v1alpha1/defaults_test.go

    				},
    			},
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			original := test.original
    			expected := test.expected
    			legacyscheme.Scheme.Default(original)
    			if !apiequality.Semantic.DeepEqual(original, expected) {
    				t.Error(cmp.Diff(expected, original))
    			}
    		})
    	}
    }
    
    func TestDefaultAdmissionPolicyBinding(t *testing.T) {
    	denyAction := v1alpha1.DenyAction
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. pkg/api/storage/util_test.go

    			actual := sets.New[string](GetWarningsForStorageClass(tc.template)...)
    			expected := sets.New[string](tc.expected...)
    			for _, missing := range sets.List[string](expected.Difference(actual)) {
    				t.Errorf("missing: %s", missing)
    			}
    			for _, extra := range sets.List[string](actual.Difference(expected)) {
    				t.Errorf("extra: %s", extra)
    			}
    		})
    
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/check_control_dependencies.mlir

        }
        // expected-warning@+1 {{unexpected control dependency path: path 2, node 1 (intermediate)}}
        %island4 = tf_executor.island(%island3) {
          "tf.NoOp"() : () -> ()
          tf_executor.yield
        }
        // expected-warning@+3 {{unexpected control dependency path: path 0, node 2 (intermediate)}}
        // expected-warning@+2 {{unexpected control dependency path: path 1, node 2 (intermediate)}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 31 16:14:07 UTC 2022
    - 8K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/runtime/registry_test.go

    			}
    			if !reflect.DeepEqual(test.expected, pluginFooConf) {
    				t.Errorf("DecodeInto(): failed to decode plugin config, expected: %+v, got: %+v",
    					test.expected, pluginFooConf)
    			}
    		})
    	}
    }
    
    // isRegistryEqual compares two registries for equality. This function is used in place of
    // reflect.DeepEqual() and cmp() as they don't compare function values.
    func isRegistryEqual(registryX, registryY Registry) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue33386.go

    	}()             // ERROR "expected expression|expected operand"
    }
    
    func _() {
    	defer func() { // no error here about deferred function
    		1 +    // GCCGO_ERROR "value computed is not used"
    	}()            // ERROR "expected expression|expected operand"
    }
    
    func _() {
    	_ = (1 +)             // ERROR "expected expression|expected operand"
    	_ = a[2 +]            // ERROR "expected expression|expected operand|undefined name"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 953 bytes
    - Viewed (0)
Back to top