- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,023 for Cmp (0.06 sec)
-
pkg/scheduler/apis/config/types_test.go
See the License for the specific language governing permissions and limitations under the License. */ package config import ( "testing" "github.com/google/go-cmp/cmp" ) func TestPluginsNames(t *testing.T) { tests := []struct { name string plugins *Plugins want []string }{ { name: "empty", }, { name: "with duplicates",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 16 14:15:29 UTC 2021 - 1.4K bytes - Viewed (0) -
pkg/test/loadbalancersim/lb_test.go
sort.SliceStable(sm, func(i, j int) bool { a := sm[i] b := sm[j] if cmp := cmpBool(a.hasQueueLatency, b.hasQueueLatency); cmp != 0 { return cmp < 0 } if cmp := cmpBool(a.hasNetworkLatency, b.hasNetworkLatency); cmp != 0 { return cmp < 0 } if cmp := strings.Compare(a.topology, b.topology); cmp != 0 { return cmp < 0 } // Sort algorithm in descending order so "round robin" is first
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 19 23:29:30 UTC 2022 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apidiscovery/v2/fuzzer_test.go
v2beta1scheme "k8s.io/apiserver/pkg/apis/apidiscovery/v2beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" "github.com/stretchr/testify/require" ) func TestConversionRoundTrip(t *testing.T) { scheme := runtime.NewScheme() err := v2beta1scheme.AddToScheme(scheme)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 00:29:39 UTC 2024 - 2.5K bytes - Viewed (0) -
src/runtime/memclr_arm64.s
try_zva: // Try using the ZVA feature to zero entire cache lines // It is not meaningful to use ZVA if the block size is less than 64, // so make sure that n is greater than or equal to 64 CMP $63, R1 BLE tail63 CMP $128, R1 // Ensure n is at least 128 bytes, so that there is enough to copy after // alignment. BLT no_zva // Check if ZVA is allowed from user code, and if so get the block size
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 18:26:13 UTC 2022 - 3.6K bytes - Viewed (0) -
pkg/apis/admissionregistration/v1beta1/defaults_test.go
See the License for the specific language governing permissions and limitations under the License. */ package v1beta1_test import ( "testing" "github.com/google/go-cmp/cmp" v1beta1 "k8s.io/api/admissionregistration/v1beta1" apiequality "k8s.io/apimachinery/pkg/api/equality" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 20 20:24:09 UTC 2023 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/defaults_test.go
limitations under the License. */ package v1 import ( "testing" "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/google/go-cmp/cmp" ) func TestKMSProviderTimeoutDefaults(t *testing.T) { testCases := []struct { desc string in *KMSConfiguration want *KMSConfiguration }{ { desc: "timeout not supplied",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 4.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/kubeopenapi_test.go
See the License for the specific language governing permissions and limitations under the License. */ package schema import ( "math/rand" "reflect" "testing" "time" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions" apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" "k8s.io/apimachinery/pkg/util/json" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:16 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/magic_test.go
int64(1)<<(n-1) - 1, -int64(1) << (n - 1), } { X := new(big.Int).SetInt64(x) if X.Cmp(Min) < 0 || X.Cmp(Max) > 0 { continue } Want := new(big.Int).Quo(X, C) Got := new(big.Int).Mul(X, M) Got.Rsh(Got, n+uint(s)) if x < 0 { Got.Add(Got, One) } if Want.Cmp(Got) != 0 { t.Errorf("smagic for %d/%d n=%d doesn't work, got=%s, want %s\n", x, c, n, Got, Want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 22:02:07 UTC 2019 - 9.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_tidy_convergence_loop.txt
go mod edit -go=1.17 go.mod.tidye3 go mod edit -go=1.17 go.mod.postget go list -m all go mod tidy -e cmp go.mod go.mod.tidye3 go mod tidy -e cmp go.mod go.mod.tidye2 go mod tidy -e cmp go.mod go.mod.tidye1 go mod tidy -e cmp go.mod go.mod.117 # As in the eager case, for the lazy module the fully-upgraded dependency graph
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 9.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions_test.go
See the License for the specific language governing permissions and limitations under the License. */ package volumerestrictions import ( "context" "testing" "github.com/google/go-cmp/cmp" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/kubernetes/pkg/scheduler/apis/config" "k8s.io/kubernetes/pkg/scheduler/framework"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 17:40:39 UTC 2023 - 17.3K bytes - Viewed (0)