Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 1,023 for Cmp (0.13 sec)

  1. pkg/registry/flowcontrol/prioritylevelconfiguration/strategy_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	"k8s.io/kubernetes/pkg/apis/flowcontrol"
    	"k8s.io/utils/ptr"
    
    	"github.com/google/go-cmp/cmp"
    )
    
    func TestPriorityLevelConfigurationValidation(t *testing.T) {
    	v1ObjFn := func(v *int32) *flowcontrolv1.PriorityLevelConfiguration {
    		return &flowcontrolv1.PriorityLevelConfiguration{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 20:55:50 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. src/runtime/sys_windows_arm.s

    	MOVW	R3<<2(R12), R3
    	MOVW	R3, R2<<2(R13)		// stack[i] = r3
    
    	ADD	$1, R2			// i++
    	SUB	$4, R0, R3		// while (i < (n - 4))
    	CMP	R3, R2
    	BLT	stackargs
    
    loadregs:
    	CMP	$3, R0
    	MOVW.GT 12(R12), R3
    
    	CMP	$2, R0
    	MOVW.GT 8(R12), R2
    
    	CMP	$1, R0
    	MOVW.GT 4(R12), R1
    
    	CMP	$0, R0
    	MOVW.GT 0(R12), R0
    
    	BIC	$0x7, R13		// alignment for ABI
    	MOVW	0(R4), R12		// branch to libcall->fn
    	BL	(R12)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/runtime/race_arm64.s

    	MOVD	runtime·racearenastart(SB), R10
    	CMP	R10, R1
    	BLT	data
    	MOVD	runtime·racearenaend(SB), R10
    	CMP	R10, R1
    	BLT	call
    data:
    	MOVD	runtime·racedatastart(SB), R10
    	CMP	R10, R1
    	BLT	ret
    	MOVD	runtime·racedataend(SB), R10
    	CMP	R10, R1
    	BGT	ret
    call:
    	JMP	racecall<>(SB)
    ret:
    	RET
    
    // func runtime·racefuncenter(pc uintptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/go/testdata/script/mod_tidy_convergence.txt

    # this end state is stable.
    
    go mod tidy -e
    cmp go.mod go.mod.tidye
    
    
    # An explicit 'go get' with the correct versions should allow 'go mod tidy' to
    # succeed and remain stable. y.1 does not upgrade x, and can therefore be used
    # with it.
    
    go get example.net/x@v0.1.0 example.net/y@v0.1.0
    go mod tidy
    cmp go.mod go.mod.postget
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/work_sync_sum.txt

    # Exercises the fix to #50038.
    
    cp b/go.sum b/go.sum.want
    
    # As a sanity check, verify b/go.sum is tidy.
    cd b
    go mod tidy
    cd ..
    cmp b/go.sum b/go.sum.want
    
    # Run go work sync and verify it doesn't change b/go.sum.
    go work sync
    cmp b/go.sum b/go.sum.want
    
    -- b/go.sum --
    rsc.io/quote v1.0.0 h1:kQ3IZQzPTiDJxSZI98YaWgxFEhlNdYASHvh+MplbViw=
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 19:25:50 UTC 2022
    - 864 bytes
    - Viewed (1)
  10. src/cmd/go/testdata/script/mod_tidy_compat_implicit.txt

    [exec:patch] cp stdout diff.patch
    [exec:patch] exec patch -p1 -i diff.patch
    [exec:patch] go mod tidy -compat=1.17 -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 ./...
    stdout '^example.net/lazy v0.1.0$'
    
    go mod edit -go=1.16
    ! go list -deps -test -f $MODFMT ./...
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top