Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 850 for Cmp (0.03 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		}
    		if cmp := b.Cmp(a); cmp != -item.cmp {
    			t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp)
    		}
    	}
    
    	for _, item := range table {
    		a, b := item.a.DeepCopy(), item.b.DeepCopy()
    		b.AsDec()
    		if cmp := a.Cmp(b); cmp != item.cmp {
    			t.Errorf("%#v: unexpected Cmp: %d", item, cmp)
    		}
    		if cmp := b.Cmp(a); cmp != -item.cmp {
    			t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_test_cycle.txt

    go list ./p
    stdout 'example/p'
    
    ! go list -json=ImportPath -test ./p
    cmp stderr wanterr.txt
    
    ! go list -json=ImportPath,Deps -test ./p
    cmp stderr wanterr.txt
    
    ! go list -json=ImportPath,Deps -deps -test ./p
    cmp stderr wanterr.txt
    
    ! go list -json=ImportPath -deps -test ./p
    cmp stderr wanterr.txt
    
    -- wanterr.txt --
    go: can't load test package: package example/p
    	imports example/q
    	imports example/r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 19:18:23 UTC 2023
    - 644 bytes
    - Viewed (0)
  3. pkg/apis/flowcontrol/v1beta1/conversion_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"
    	"k8s.io/api/flowcontrol/v1beta1"
    	"k8s.io/kubernetes/pkg/apis/flowcontrol"
    )
    
    func TestConvert_v1beta1_LimitedPriorityLevelConfiguration_To_flowcontrol_LimitedPriorityLevelConfiguration(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 26 19:34:10 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. src/math/big/int_test.go

    		var z Int
    		z.Abs(a.z)
    		var e Int
    		e.Set(a.z)
    		if e.Cmp(&zero) < 0 {
    			e.Sub(&zero, &e)
    		}
    		if z.Cmp(&e) != 0 {
    			t.Errorf("got z = %v; want %v", z, e)
    		}
    	}
    }
    
    func testFunZZ(t *testing.T, msg string, f funZZ, a argZZ) {
    	var z Int
    	f(&z, a.x, a.y)
    	if !isNormalized(&z) {
    		t.Errorf("%s%v is not normalized", msg, z)
    	}
    	if (&z).Cmp(a.z) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  5. pkg/registry/core/componentstatus/rest_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package componentstatus
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	metainternalversion "k8s.io/apimachinery/pkg/apis/meta/internalversion"
    	"k8s.io/apimachinery/pkg/fields"
    	"k8s.io/apimachinery/pkg/labels"
    
    	"net/http"
    	"time"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  6. src/runtime/memclr_ppc64x.s

    	BEQ     nozerolarge
    
    lt64gt8:
    	CMP	R4, $32
    	BLT	lt32gt8
    	MOVD	$16, R8
    	STXVD2X	VS32, (R3+R0)
    	STXVD2X	VS32, (R3+R8)
    	ADD	$-32, R4
    	ADD	$32, R3
    lt32gt8:
    	CMP	R4, $16
    	BLT	lt16gt8
    	STXVD2X	VS32, (R3+R0)
    	ADD	$16, R3
    	ADD	$-16, R4
    lt16gt8:
    #ifdef GOPPC64_power10
    	SLD	$56, R4, R7
    	STXVL   V0, R3, R7
    	RET
    #else
    	CMP	R4, $8
    	BLT	nozerolarge
    	MOVD	R0, 0(R3)
    	ADD	$8, R3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 17:08:59 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_tidy_compat.txt

    go list -m all
    cmp stdout m_all.txt
    
    go mod edit -go=1.16
    go list -m all
    cmp stdout m_all.txt
    
    
    # If we explicitly drop compatibility with 1.16, we retain fewer checksums,
    # which gives a cleaner go.sum file but causes 1.16 to fail in readonly mode.
    
    cp go.mod.orig go.mod
    go mod tidy -compat=1.17
    cmp go.mod go.mod.orig
    
    # Make sure that -diff behaves the same as tidy.
    [exec:patch] mv go.mod go.mod.tidyResult
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. pkg/apis/flowcontrol/v1beta2/conversion_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1beta2
    
    import (
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"k8s.io/api/flowcontrol/v1beta2"
    	"k8s.io/kubernetes/pkg/apis/flowcontrol"
    )
    
    func TestConvert_v1beta2_LimitedPriorityLevelConfiguration_To_flowcontrol_LimitedPriorityLevelConfiguration(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 26 19:34:10 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/services.go

    	zDump := c.ztunnelDump
    
    	svcs := slices.Filter(zDump.Services, filter.Verify)
    	slices.SortFunc(svcs, func(a, b *ZtunnelService) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		if r := cmp.Compare(a.Name, b.Name); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Hostname, b.Hostname)
    	})
    	fmt.Fprintln(w, "NAMESPACE\tSERVICE NAME\tSERVICE VIP\tWAYPOINT")
    
    	for _, svc := range svcs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/internal/bytealg/equal_arm64.s

    	// short path to handle 0-byte case
    	CBZ	R2, equal
    	// short path to handle equal pointers
    	CMP	R0, R1
    	BEQ	equal
    	B	memeqbody<>(SB)
    equal:
    	MOVD	$1, R0
    	RET
    
    // memequal_varlen(a, b unsafe.Pointer) bool
    TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT,$0-17
    	CMP	R0, R1
    	BEQ	eq
    	MOVD	8(R26), R2    // compiler stores size at offset 8 in the closure
    	CBZ	R2, eq
    	B	memeqbody<>(SB)
    eq:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 16:07:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top