- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 455 for Cmp (0.04 sec)
-
pilot/pkg/security/authz/matcher/header_test.go
package matcher import ( "regexp" "testing" routepb "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" ) func TestHeaderMatcher(t *testing.T) { testCases := []struct { Name string K string V string Expect *routepb.HeaderMatcher }{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/meta_test.go
*/ package meta import ( "math/rand" "reflect" "testing" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" ) func TestAsPartialObjectMetadata(t *testing.T) { f := fuzz.New().NilChance(.5).NumElements(0, 1).RandSource(rand.NewSource(1)) for i := 0; i < 100; i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 1.5K bytes - Viewed (0) -
pilot/pkg/networking/core/match/match_test.go
// See the License for the specific language governing permissions and // limitations under the License. import ( "testing" matcher "github.com/cncf/xds/go/xds/type/matcher/v3" "github.com/google/go-cmp/cmp" "istio.io/istio/pkg/util/protomarshal" ) func TestCleanupEmptyMaps(t *testing.T) { tc := []struct { name string given func() Mapper want func() *matcher.Matcher }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 3.5K bytes - Viewed (0) -
src/runtime/memmove_ppc64x.s
RET #endif lt8: // Move word if possible CMP BYTES, $4 BLT lt4 MOVWZ 0(SRC), TMP ADD $-4, BYTES MOVW TMP, 0(TGT) ADD $4, SRC ADD $4, TGT lt4: // Move halfword if possible CMP BYTES, $2 BLT lt2 MOVHZ 0(SRC), TMP ADD $-2, BYTES MOVH TMP, 0(TGT) ADD $2, SRC ADD $2, TGT lt2: // Move last byte if 1 left CMP BYTES, $1 BC 12, 0, LR // ble lr MOVBZ 0(SRC), TMP
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 16:47:45 UTC 2023 - 4.9K bytes - Viewed (0) -
src/runtime/sys_windows_arm64.s
MOVD libcall_args(R19), R12 // libcall->args // Do we have more than 8 arguments? MOVD libcall_n(R19), R0 CMP $0, R0; BEQ _0args CMP $1, R0; BEQ _1args CMP $2, R0; BEQ _2args CMP $3, R0; BEQ _3args CMP $4, R0; BEQ _4args CMP $5, R0; BEQ _5args CMP $6, R0; BEQ _6args CMP $7, R0; BEQ _7args CMP $8, R0; BEQ _8args // Reserve stack space for remaining args SUB $8, R0, R2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 15:56:43 UTC 2023 - 6.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors_test.go
See the License for the specific language governing permissions and limitations under the License. */ package webhook import ( "fmt" "reflect" "testing" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" v1 "k8s.io/api/admissionregistration/v1" ) func TestMutatingWebhookAccessor(t *testing.T) { f := fuzz.New() for i := 0; i < 100; i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/test/framework/resource/flags_test.go
// See the License for the specific language governing permissions and // limitations under the License. package resource import ( "testing" "github.com/google/go-cmp/cmp" ) func TestValidate(t *testing.T) { tcs := []struct { name string settings *Settings expectErr bool expectedRevs RevVerMap }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 03 17:06:22 UTC 2022 - 1.9K bytes - Viewed (0) -
src/internal/bytealg/equal_ppc64x.s
VCMPEQUDCC V0, V1, V2 ISEL CR6LT, R11, R0, R3 RET #else CMP R5, $8 BLT check0_7 // Load sX[0:7] and compare. MOVD (R8), R6 MOVD (R4), R7 CMP R6, R7 ISEL CR0EQ, R11, R0, R5 // Load sX[len(sX)-8:len(sX)] and compare. MOVD -8(R9), R6 MOVD -8(R10), R7 CMP R6, R7 ISEL CR0EQ, R5, R0, R3 RET check0_7: CMP R5,$0 MOVD $1, R3 BEQLR // return if len == 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 16:47:45 UTC 2023 - 4.9K bytes - Viewed (0) -
pkg/registry/core/event/strategy_test.go
See the License for the specific language governing permissions and limitations under the License. */ package event import ( "context" "reflect" "testing" "github.com/google/go-cmp/cmp" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" apitesting "k8s.io/kubernetes/pkg/api/testing" api "k8s.io/kubernetes/pkg/apis/core" // ensure types are installed
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4.3K 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)