- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 1,023 for Cmp (0.03 sec)
-
pilot/pkg/model/service_test.go
// See the License for the specific language governing permissions and // limitations under the License. package model import ( "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" fuzz "github.com/google/gofuzz" "istio.io/istio/pkg/cluster" "istio.io/istio/pkg/config/constants" "istio.io/istio/pkg/config/host" "istio.io/istio/pkg/config/labels"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 13.9K bytes - Viewed (0) -
src/go/types/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: Thu Mar 14 23:12:40 UTC 2024 - 3.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) -
staging/src/k8s.io/apiserver/pkg/audit/policy/reader_test.go
"strings" "testing" "k8s.io/apiserver/pkg/apis/audit" // import to call webhook's init() function to register audit.Policy to schema _ "k8s.io/apiserver/plugin/pkg/audit/webhook" "github.com/google/go-cmp/cmp" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) const policyDefPattern = ` apiVersion: audit.k8s.io/{version} kind: Policy rules: - level: None nonResourceURLs:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_get_prefer_incompatible.txt
# a lower compatible version when upgrading. cp go.mod go.mod.orig go mod tidy cmp go.mod.orig go.mod grep '^example.com/incompatiblewithsub v2\.0\.0\+incompatible' go.sum ! grep '^example.com/incompatiblewithsub v1.0.0' go.sum go get example.com/incompatiblewithsub/sub cmp go.mod.orig go.mod ! grep '^example.com/incompatiblewithsub v1.0.0' go.sum
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:14 UTC 2021 - 895 bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
See the License for the specific language governing permissions and limitations under the License. */ package job import ( "math" "strconv" "testing" "time" "github.com/google/go-cmp/cmp" batch "k8s.io/api/batch/v1" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apiserver/pkg/util/feature" featuregatetesting "k8s.io/component-base/featuregate/testing" "k8s.io/klog/v2/ktesting"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
pkg/apis/policy/v1/conversion_test.go
See the License for the specific language governing permissions and limitations under the License. */ package v1 import ( "reflect" "strings" "testing" "github.com/google/go-cmp/cmp" "k8s.io/api/policy/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/kubernetes/pkg/apis/policy" ) func TestConversion(t *testing.T) { testcases := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 09 15:29:11 UTC 2021 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/defaults_test.go
See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( "testing" "github.com/google/go-cmp/cmp" apiequality "k8s.io/apimachinery/pkg/api/equality" "k8s.io/apimachinery/pkg/runtime" utilpointer "k8s.io/utils/pointer" ) func TestDefaults(t *testing.T) { scheme := runtime.NewScheme()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:41:26 UTC 2019 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/round_trip_test.go
*/ // Package webhook implements the authorizer.Authorizer interface using HTTP webhooks. package webhook import ( "math/rand" "reflect" "testing" "time" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" authorizationv1 "k8s.io/api/authorization/v1" authorizationv1beta1 "k8s.io/api/authorization/v1beta1" ) func TestRoundTrip(t *testing.T) { f := fuzz.New()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/LOONG64.rules
// Absorb boolean tests into block (NE (FPFlagTrue cmp) yes no) => (FPT cmp yes no) (NE (FPFlagFalse cmp) yes no) => (FPF cmp yes no) (EQ (FPFlagTrue cmp) yes no) => (FPF cmp yes no) (EQ (FPFlagFalse cmp) yes no) => (FPT cmp yes no) (NE (XORconst [1] cmp:(SGT _ _)) yes no) => (EQ cmp yes no) (NE (XORconst [1] cmp:(SGTU _ _)) yes no) => (EQ cmp yes no) (NE (XORconst [1] cmp:(SGTconst _)) yes no) => (EQ cmp yes no)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 19:26:25 UTC 2023 - 31.8K bytes - Viewed (0)