- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 85 for isSuperset (0.15 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go
t.Errorf("Unexpected contents: %#v", s) } if !s.HasAll("a", "b") { t.Errorf("Missing contents: %#v", s) } s2.Insert("a", "b", "d") if s.IsSuperset(s2) { t.Errorf("Unexpected contents: %#v", s) } s2.Delete("d") if !s.IsSuperset(s2) { t.Errorf("Missing contents: %#v", s) } } func TestSetDeleteMultiples(t *testing.T) { s := sets.Set[string]{} s.Insert("a", "b", "c")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 09:03:44 UTC 2023 - 7.7K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager_test.go
as.Equal(2, initCont2Devices.Len()) as.Equal(1, normalCont1Devices.Len()) as.Equal(1, normalCont2Devices.Len()) as.True(initCont2Devices.IsSuperset(initCont1Devices)) as.True(initCont2Devices.IsSuperset(normalCont1Devices)) as.True(initCont2Devices.IsSuperset(normalCont2Devices)) as.Equal(0, normalCont1Devices.Intersection(normalCont2Devices).Len()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 65K bytes - Viewed (0) -
pkg/apis/flowcontrol/validation/validation.go
if len(rule.Verbs) > 1 { allErrs = append(allErrs, field.Invalid(fldPath.Child("verbs"), rule.Verbs, "if '*' is present, must not specify other verbs")) } } else if !supportedVerbs.IsSuperset(sets.NewString(rule.Verbs...)) { // only supported verbs are allowed allErrs = append(allErrs, field.NotSupported(fldPath.Child("verbs"), rule.Verbs, supportedVerbs.List())) } if len(rule.NonResourceURLs) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:22:51 UTC 2023 - 26.7K bytes - Viewed (0) -
pkg/registry/core/service/strategy.go
return out } oldPorts := allNodePorts(oldSvc) newPorts := allNodePorts(newSvc) // Users can add, remove, or modify ports, as long as they don't add any // net-new NodePorts. return oldPorts.IsSuperset(newPorts) } func needsHCNodePort(svc *api.Service) bool { if svc.Spec.Type != api.ServiceTypeLoadBalancer { return false } if svc.Spec.ExternalTrafficPolicy != api.ServiceExternalTrafficPolicyLocal {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 11 13:09:36 UTC 2024 - 14.1K bytes - Viewed (0) -
pkg/util/iptables/iptables.go
fields[i] = trimhex(fields[i]) } // TODO: This misses reorderings e.g. "-x foo ! -y bar" will match "! -x foo -y bar" if sets.New(fields...).IsSuperset(argset) { return true, nil } klog.V(5).InfoS("DBG: fields is not a superset of args", "fields", fields, "arguments", args) } return false, nil } // Executes the rule check using the "-C" flag
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 28.6K bytes - Viewed (0) -
pkg/controller/resourcequota/resource_quota_controller_test.go
actionSet := sets.NewString() for _, action := range kubeClient.Actions() { actionSet.Insert(strings.Join([]string{action.GetVerb(), action.GetResource().Resource, action.GetSubresource()}, "-")) } if !actionSet.IsSuperset(testCase.expectedActionSet) { t.Errorf("test: %s,\nExpected actions:\n%v\n but got:\n%v\nDifference:\n%v", testName, testCase.expectedActionSet, actionSet, testCase.expectedActionSet.Difference(actionSet)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 16:29:33 UTC 2023 - 42.6K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager.go
return nil, fmt.Errorf("no healthy devices present; cannot allocate unhealthy devices %s", resource) } // Check if all the previously allocated devices are healthy if !healthyDevices.IsSuperset(devices) { return nil, fmt.Errorf("previously allocated devices are no longer healthy; cannot allocate unhealthy devices %s", resource) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 12:01:56 UTC 2024 - 43K bytes - Viewed (0) -
pkg/maps/maps.go
return dst } // Contains checks if all key-value pairs in 'subset' are present in 'superset'. // It returns true only if every key in 'subset' exists in 'superset' and their corresponding values are equal. func Contains[M1, M2 ~map[K]V, K comparable, V comparable](superset M1, subset M2) bool { for key, value := range subset { if supersetValue, ok := superset[key]; !ok || supersetValue != value { return false } } return true }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 01 22:48:35 UTC 2024 - 2.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
expectUnchanged(); } // retainAll(superset) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testRetainAll_superset() { expectReturnsFalse(superset); expectUnchanged(); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) public void testRetainAll_supersetUnsupported() { expectReturnsFalseOrThrows(superset); expectUnchanged(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 10.5K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/scopes/KtScopeLike.kt
/** * Returns a **superset** of names which current scope may contain. * In other words `ALL_NAMES(scope)` is a subset of `scope.getAllNames()` */ public fun getAllPossibleNames(): Set<Name> = withValidityAssertion { getPossibleCallableNames() + getPossibleClassifierNames() } /** * Returns a **superset** of callable names which current scope may contain.
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.7K bytes - Viewed (0)