- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 81 for Cmp (0.02 sec)
-
istioctl/pkg/writer/ztunnel/configdump/connections.go
d := c.ztunnelDump workloads := maps.Values(d.WorkloadState) workloads = slices.SortFunc(workloads, func(a, b WorkloadState) int { if r := cmp.Compare(a.Info.Namespace, b.Info.Namespace); r != 0 { return r } return cmp.Compare(a.Info.Namespace, b.Info.Namespace) }) workloads = slices.FilterInPlace(workloads, func(state WorkloadState) bool {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 3.5K bytes - Viewed (0) -
src/slices/iter.go
// and returns it. func Sorted[E cmp.Ordered](seq iter.Seq[E]) []E { s := Collect(seq) Sort(s) return s } // SortedFunc collects values from seq into a new slice, sorts the slice // using the comparison function, and returns it. func SortedFunc[E any](seq iter.Seq[E], cmp func(E, E) int) []E { s := Collect(seq) SortFunc(s, cmp) return s }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:40:32 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_tidy_compat_irrelevant.txt
[exec:patch] exec patch -p1 -i diff.patch [exec:patch] go mod tidy -diff [exec:patch] ! stdout . [exec:patch] cmp go.mod go.mod.tidyResult [exec:patch] cmp go.sum go.sum.tidyResult go list -deps -test -f $MODFMT all cp stdout out-117.txt go mod edit -go=1.16 go list -deps -test -f $MODFMT all cmp stdout out-117.txt # If we explicitly drop compatibility with 1.16, we retain fewer checksums,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 3.4K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/template_test.go
// limitations under the License. package matcher import ( "testing" uri_template "github.com/envoyproxy/go-control-plane/envoy/extensions/path/match/uri_template/v3" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" ) func TestPathTemplateMatcher(t *testing.T) { testCases := []struct { name string path string want *uri_template.UriTemplateMatchConfig }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 1.8K bytes - Viewed (0) -
pkg/config/model_test.go
// limitations under the License. package config import ( "fmt" "reflect" "testing" "time" cluster "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" corev1 "k8s.io/api/core/v1" k8s "sigs.k8s.io/gateway-api/apis/v1" networking "istio.io/api/networking/v1alpha3" "istio.io/istio/pkg/test/config" )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 17:37:32 UTC 2024 - 7.9K bytes - Viewed (0) -
pkg/scheduler/util/assumecache/assume_cache_test.go
See the License for the specific language governing permissions and limitations under the License. */ package assumecache import ( "fmt" "slices" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/tools/cache" "k8s.io/kubernetes/test/utils/ktesting" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 9.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/modes_test.go
limitations under the License. */ package modes_test import ( "errors" "testing" "github.com/fxamacker/cbor/v2" "github.com/google/go-cmp/cmp" "k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes" ) var encModeNames = map[cbor.EncMode]string{ modes.Encode: "Encode", modes.EncodeNondeterministic: "EncodeNondeterministic", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 18:43:10 UTC 2024 - 2K bytes - Viewed (0) -
operator/pkg/util/progress/progress.go
cmpName := name.ComponentName(component) cliName := name.UserFacingComponentName(cmpName) p.mu.Lock() defer p.mu.Unlock() cmp := p.components[component] // The component has completed cmp.mu.Lock() finished := cmp.finished cmpErr := cmp.err cmp.mu.Unlock() successIcon := "✅" if icon, found := name.IstioComponentSuccessIcons[cmpName]; found { successIcon = icon }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 6.2K bytes - Viewed (0) -
src/math/big/floatexample_test.go
operands := []float64{-inf, -1.2, -zero, 0, +1.2, +inf} fmt.Println(" x y cmp") fmt.Println("---------------") for _, x64 := range operands { x := big.NewFloat(x64) for _, y64 := range operands { y := big.NewFloat(y64) fmt.Printf("%4g %4g %3d\n", x, y, x.Cmp(y)) } fmt.Println() } // Output: // x y cmp // --------------- // -Inf -Inf 0 // -Inf -1.2 -1 // -Inf -0 -1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/version.go
return goVersion(version.Lang(v)) } // isValid reports whether v is a valid Go version. func (v goVersion) isValid() bool { return v != "" } // cmp returns -1, 0, or +1 depending on whether x < y, x == y, or x > y, // interpreted as Go versions. func (x goVersion) cmp(y goVersion) int { return version.Compare(string(x), string(y)) } var ( // Go versions that introduced language changes go1_9 = asGoVersion("go1.9")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 2.4K bytes - Viewed (0)