- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 463 for Comparer (0.21 sec)
-
src/cmd/compile/internal/types2/api_predicates.go
// For more information, see https://github.com/golang/go/issues/57497. func Identical(x, y Type) bool { var c comparer return c.identical(x, y, nil) } // IdenticalIgnoreTags reports whether x and y are identical types if tags are ignored. // Receivers of [Signature] types are ignored. func IdenticalIgnoreTags(x, y Type) bool { var c comparer c.ignoreTags = true return c.identical(x, y, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.3K bytes - Viewed (0) -
src/go/types/api_predicates.go
// For more information, see https://github.com/golang/go/issues/57497. func Identical(x, y Type) bool { var c comparer return c.identical(x, y, nil) } // IdenticalIgnoreTags reports whether x and y are identical types if tags are ignored. // Receivers of [Signature] types are ignored. func IdenticalIgnoreTags(x, y Type) bool { var c comparer c.ignoreTags = true return c.identical(x, y, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.5K bytes - Viewed (0) -
src/go/types/predicates.go
} // An ifacePair is a node in a stack of interface type pairs compared for identity. type ifacePair struct { x, y *Interface prev *ifacePair } func (p *ifacePair) identical(q *ifacePair) bool { return p.x == q.x && p.y == q.y || p.x == q.y && p.y == q.x } // A comparer is used to compare types. type comparer struct { ignoreTags bool // if set, identical ignores struct tags
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params.md
<img src="/img/tutorial/path-params/image03.png"> ### Manipuler les *énumérations* Python La valeur du *paramètre de chemin* sera un des "membres" de l'énumération. #### Comparer les *membres d'énumération* Vous pouvez comparer ce paramètre avec les membres de votre énumération `ModelName` : ```Python hl_lines="17" {!../../../docs_src/path_params/tutorial005.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 10K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
} // An ifacePair is a node in a stack of interface type pairs compared for identity. type ifacePair struct { x, y *Interface prev *ifacePair } func (p *ifacePair) identical(q *ifacePair) bool { return p.x == q.x && p.y == q.y || p.x == q.y && p.y == q.x } // A comparer is used to compare types. type comparer struct { ignoreTags bool // if set, identical ignores struct tags
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go
if tt.kmsv1 != kmsUsed.v1Used { t.Errorf("incorrect kms v1 detection: want=%v got=%v", tt.kmsv1, kmsUsed.v1Used) } if d := cmp.Diff(tt.want, got, cmp.Comparer(func(a, b *kmsPluginProbe) bool { return *a == *b }), cmp.Comparer(func(a, b *kmsv2PluginProbe) bool { return *a == *b }), ); d != "" { t.Fatalf("HealthzConfig mismatch (-want +got):\n%s", d) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 16:56:39 UTC 2024 - 72.3K bytes - Viewed (0) -
pilot/pkg/model/telemetry.go
return class == networking.ListenerClassSidecarInbound || class == networking.ListenerClassGateway } // Equal compares two computedTelemetries for equality. This was created to help with testing. Because of the nature of the structs being compared, // it is safer to use cmp.Equal as opposed to reflect.DeepEqual. Also, because of the way the structs are generated, it is not possible to use
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 18:14:09 UTC 2024 - 35.2K bytes - Viewed (0) -
pilot/pkg/model/service.go
return p.f(ep, proxy) } func (p *endpointDiscoverabilityPolicyImpl) String() string { return p.name } var endpointDiscoverabilityPolicyImplCmpOpt = cmp.Comparer(func(x, y endpointDiscoverabilityPolicyImpl) bool { return x.String() == y.String() }) func (p *endpointDiscoverabilityPolicyImpl) CmpOpts() []cmp.Option { return []cmp.Option{endpointDiscoverabilityPolicyImplCmpOpt}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 02:03:58 UTC 2024 - 46.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder_test.go
// Validate if reflect.DeepEqual(scenario.eligibleNodes, eligibleNodes) { fmt.Println("foo") } if compDiff := cmp.Diff(scenario.eligibleNodes, eligibleNodes, cmp.Comparer(func(a, b sets.Set[string]) bool { return reflect.DeepEqual(a, b) })); compDiff != "" { t.Errorf("Unexpected eligible nodes (-want +got):\n%s", compDiff) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 82.8K bytes - Viewed (0) -
operator/pkg/compare/compare.go
} y, err := yaml.Marshal(r.diffTree) if err != nil { return err.Error() } return string(y) } // YAMLCmp compares two yaml texts, return a tree based diff text. func YAMLCmp(a, b string) string { return YAMLCmpWithIgnore(a, b, nil, "") } // YAMLCmpWithIgnore compares two yaml texts, and ignores paths in ignorePaths. func YAMLCmpWithIgnore(a, b string, ignorePaths []string, ignoreYaml string) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 13.3K bytes - Viewed (0)