- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for SubsetOf (0.18 sec)
-
src/go/types/termlist.go
// supersetOf reports whether y ⊆ xl. func (xl termlist) supersetOf(y *term) bool { for _, x := range xl { if y.subsetOf(x) { return true } } return false } // subsetOf reports whether xl ⊆ yl. func (xl termlist) subsetOf(yl termlist) bool { if yl.isEmpty() { return xl.isEmpty() } // each term x of xl must be a subset of yl for _, x := range xl { if !yl.supersetOf(x) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3.9K bytes - Viewed (0) -
src/go/types/typeterm.go
case x.typ == nil: return true // t ∈ 𝓤 == true } // ∅ ⊂ x ⊂ 𝓤 u := t if x.tilde { u = under(u) } return Identical(x.typ, u) } // subsetOf reports whether x ⊆ y. func (x *term) subsetOf(y *term) bool { // easy cases switch { case x == nil: return true // ∅ ⊆ y == true case y == nil: return false // x ⊆ ∅ == false since x != ∅ case y.typ == nil:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3.6K bytes - Viewed (0) -
pkg/kube/krt/filter.go
if log.DebugEnabled() { log.Debugf("no match index") } return false } } // Rest is expensive if f.selects != nil && !labels.Instance(getLabelSelector(object)).SubsetOf(f.selects) { if log.DebugEnabled() { log.Debugf("no match selects: %q vs %q", f.selects, getLabelSelector(object)) } return false }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 4.8K bytes - Viewed (0) -
src/go/types/termlist_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K bytes - Viewed (0) -
src/go/types/typeterm_test.go
"~int myInt F", "myInt int F", "myInt ~int T", } { args := split(test, 3) x := testTerm(args[0]) y := testTerm(args[1]) want := args[2] == "T" if got := x.subsetOf(y); got != want { t.Errorf("%v.subsetOf(%v) = %v; want %v", x, y, got, want) } } } func TestTermDisjoint(t *testing.T) { for _, test := range []string{ "int int F", "~int ~int F", "int ~int F",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeset.go
// hasTerms reports whether the type set has specific type terms. func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll() } // subsetOf reports whether s1 ⊆ s2. func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) } // TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go // is calls f with the specific type terms of s and reports whether
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 13.6K bytes - Viewed (0) -
src/go/types/typeset.go
// hasTerms reports whether the type set has specific type terms. func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll() } // subsetOf reports whether s1 ⊆ s2. func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) } // TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go // is calls f with the specific type terms of s and reports whether
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 13.7K bytes - Viewed (0) -
pilot/pkg/model/policyattachment.go
} return gwName, exists } func (p WorkloadPolicyMatcher) isSelected(policy TargetablePolicy) bool { selector := policy.GetSelector() return selector == nil || labels.Instance(selector.GetMatchLabels()).SubsetOf(p.WorkloadLabels) } // GetTargetRefs returns the list of targetRefs, taking into account the legacy targetRef func GetTargetRefs(p TargetablePolicy) []*v1beta1.PolicyTargetReference { targetRefs := p.GetTargetRefs()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 4.9K bytes - Viewed (0) -
pilot/pkg/controllers/untaint/nodeuntainter.go
readyCniPods := krt.NewCollection(pods, func(ctx krt.HandlerContext, p *v1.Pod) *v1.Pod { log.Debugf("cniPods event: %s", p.Name) if p.Namespace != n.ourNs { return nil } if !n.cnilabels.SubsetOf(p.ObjectMeta.Labels) { return nil } if !IsPodReadyConditionTrue(p.Status) { return nil } log.Debugf("pod %s on node %s ready!", p.Name, p.Spec.NodeName) return p }, krt.WithStop(stop))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 00:50:31 UTC 2024 - 6.9K bytes - Viewed (0) -
pilot/pkg/networking/core/tls.go
} gatewayMatch := len(match.Gateways) == 0 for _, gateway := range match.Gateways { gatewayMatch = gatewayMatch || gateways.Contains(gateway) } labelMatch := labels.Instance(match.SourceLabels).SubsetOf(proxyLabels) portMatch := match.Port == 0 || match.Port == uint32(port) nsMatch := match.SourceNamespace == "" || match.SourceNamespace == proxyNamespace return gatewayMatch && labelMatch && portMatch && nsMatch
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 14.7K bytes - Viewed (0)