Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 617 for Cmp (0.2 sec)

  1. pkg/scheduler/internal/cache/debugger/comparer_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package debugger
    
    import (
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    
    	"k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    func TestCompareNodes(t *testing.T) {
    	tests := []struct {
    		name      string
    		actual    []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. pkg/apis/flowcontrol/internalbootstrap/defaults_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package internalbootstrap
    
    import (
    	"fmt"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    
    	flowcontrol "k8s.io/api/flowcontrol/v1"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap"
    )
    
    func TestBootstrapConfigurationWithDefaulted(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode_test.go

    limitations under the License.
    */
    
    package modes_test
    
    import (
    	"fmt"
    	"testing"
    
    	"github.com/fxamacker/cbor/v2"
    	"github.com/google/go-cmp/cmp"
    )
    
    func TestEncode(t *testing.T) {
    	for _, tc := range []struct {
    		name          string
    		modes         []cbor.EncMode
    		in            interface{}
    		want          []byte
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:55:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/runtime/sys_openbsd_ppc64.s

    	CALL	libc_mmap(SB)
    	MOVD	$0, R4
    	CMP	R3, $-1
    	BNE	noerr
    	CALL	libc_errno(SB)
    	MOVW	(R3), R4		// errno
    	MOVD	$0, R3
    noerr:
    	MOVD	R3, 32(R14)
    	MOVD	R4, 40(R14)
    	RET
    
    TEXT runtime·munmap_trampoline(SB),NOSPLIT,$32
    	MOVD	8(R3), R4		// arg 2 - len
    	MOVD	0(R3), R3		// arg 1 - addr
    	CALL	libc_munmap(SB)
    	CMP	R3, $-1
    	BNE	3(PC)
    	MOVD	$0, R3			// crash on failure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:48:11 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apiserver/load/load_test.go

    limitations under the License.
    */
    
    package load
    
    import (
    	"bytes"
    	"os"
    	"reflect"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	api "k8s.io/apiserver/pkg/apis/apiserver"
    )
    
    var defaultConfig = &api.AuthorizationConfiguration{}
    
    func writeTempFile(t *testing.T, content string) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 07:00:31 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/asm_zos_s390x.s

    	//  arg 1 ---> R1
    	CMP  R8, $0
    	BEQ  docall
    	SUB  $1, R8
    	MOVD 0(R7), R1
    
    	//  arg 2 ---> R2
    	CMP  R8, $0
    	BEQ  docall
    	SUB  $1, R8
    	ADD  $8, R7
    	MOVD 0(R7), R2
    
    	//  arg 3 --> R3
    	CMP  R8, $0
    	BEQ  docall
    	SUB  $1, R8
    	ADD  $8, R7
    	MOVD 0(R7), R3
    
    	CMP  R8, $0
    	BEQ  docall
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. src/runtime/sys_linux_ppc64x.s

    	// compared to ARM64 and others.
    	CMP	$0, R9
    	BEQ	sigtrampnog // g == nil
    
    	// g is not nil. Check further.
    	MOVD	g_m(R9), R6
    	CMP	$0, R6
    	BEQ	sigtramp    // g.m == nil
    	MOVW	m_ncgo(R6), R7
    	CMPW	$0, R7
    	BEQ	sigtramp    // g.m.ncgo = 0
    	MOVD	m_curg(R6), R7
    	CMP	$0, R7
    	BEQ	sigtramp    // g.m.curg == nil
    	MOVD	g_syscallsp(R7), R7
    	CMP	$0, R7
    	BEQ	sigtramp    // g.m.curg.syscallsp == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  8. 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)
  9. guava/src/com/google/common/collect/TreeMultiset.java

          return 0;
        }
        // The cast is safe because we call this method only if hasLowerBound().
        int cmp =
            comparator()
                .compare(uncheckedCastNullableTToT(range.getLowerEndpoint()), node.getElement());
        if (cmp < 0) {
          return aggregateBelowRange(aggr, node.left);
        } else if (cmp == 0) {
          switch (range.getLowerBoundType()) {
            case OPEN:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 34.6K bytes
    - Viewed (0)
  10. 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)
Back to top