Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for Comparer (0.19 sec)

  1. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    	"k8s.io/kubernetes/pkg/scheduler/internal/cache"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    	"k8s.io/utils/ptr"
    )
    
    var cmpOpts = []cmp.Option{
    	cmp.Comparer(func(s1 labels.Selector, s2 labels.Selector) bool {
    		return reflect.DeepEqual(s1, s2)
    	}),
    	cmp.Comparer(func(p1, p2 criticalPaths) bool {
    		p1.sort()
    		p2.sort()
    		return p1[0] == p2[0] && p1[1] == p2[1]
    	}),
    }
    
    var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/runtime/framework_test.go

    // TestScorePlugin only implements ScorePlugin interface.
    var _ framework.ScorePlugin = &TestScoreWithNormalizePlugin{}
    var _ framework.ScorePlugin = &TestScorePlugin{}
    
    var cmpOpts = []cmp.Option{
    	cmp.Comparer(func(s1 *framework.Status, s2 *framework.Status) bool {
    		if s1 == nil || s2 == nil {
    			return s1.IsSuccess() && s2.IsSuccess()
    		}
    		return s1.Code() == s2.Code() && s1.Plugin() == s2.Plugin() && s1.Message() == s2.Message()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  3. pkg/scheduler/schedule_one_test.go

    				"c": framework.NewStatus(framework.UnschedulableAndUnresolvable, fmt.Sprintf("FakeExtender: node %q failed and unresolvable", "c")),
    			},
    		},
    	}
    
    	cmpOpts := []cmp.Option{
    		cmp.Comparer(func(s1 framework.Status, s2 framework.Status) bool {
    			return s1.Code() == s2.Code() && reflect.DeepEqual(s1.Reasons(), s2.Reasons())
    		}),
    	}
    
    	for _, tt := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/s390x/asmz.go

    	op_CGF     uint32 = 0xE330 // FORMAT_RXY1       COMPARE (64<-32)
    	op_CGFI    uint32 = 0xC20C // FORMAT_RIL1       COMPARE IMMEDIATE (64<-32)
    	op_CGFR    uint32 = 0xB930 // FORMAT_RRE        COMPARE (64<-32)
    	op_CGFRL   uint32 = 0xC60C // FORMAT_RIL2       COMPARE RELATIVE LONG (64<-32)
    	op_CGH     uint32 = 0xE334 // FORMAT_RXY1       COMPARE HALFWORD (64<-16)
    	op_CGHI    uint32 = 0xA70F // FORMAT_RI1        COMPARE HALFWORD IMMEDIATE (64<-16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 176.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		// CMPx: compare arg0 to arg1.
    		{name: "CMPQ", argLength: 2, reg: gp2flags, asm: "CMPQ", typ: "Flags"},
    		{name: "CMPL", argLength: 2, reg: gp2flags, asm: "CMPL", typ: "Flags"},
    		{name: "CMPW", argLength: 2, reg: gp2flags, asm: "CMPW", typ: "Flags"},
    		{name: "CMPB", argLength: 2, reg: gp2flags, asm: "CMPB", typ: "Flags"},
    
    		// CMPxconst: compare arg0 to auxint.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				"self.val1 < int(self.val9)",
    				"self.val2 == int(self.val9)",
    				"self.val3 > int(self.val9)",
    
    				// compare literal integers and floats
    				"double(5) < 10.0",
    				"double(10) == 10.0",
    				"double(15) > 10.0",
    
    				"5 < int(10.0)",
    				"10 == int(10.0)",
    				"15 > int(10.0)",
    
    				// compare integers with literal floats
    				"double(self.val1) < 10.0",
    				"double(self.val2) == 10.0",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/package-lock.json

          }
        },
        "node_modules/natural-compare": {
          "version": "1.4.0",
          "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
          "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
          "dev": true
        },
        "node_modules/natural-compare-lite": {
          "version": "1.4.0",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 156K bytes
    - Viewed (0)
  8. cmd/server_test.go

    	request.Header.Set("If-Modified-Since", t.Add(10*time.Minute).UTC().Format(http.TimeFormat))
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    	// Since the "If-Modified-Since" header was ahead in time compared to the actual
    	// modified time of the object expecting the response status to be http.StatusNotModified.
    	c.Assert(response.StatusCode, http.StatusNotModified)
    
    	// Again, obtain the object info.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/cluster_builder_test.go

    		sort.SliceStable(endpoints, func(i, j int) bool {
    			if strings.Compare(endpoints[i].Locality.Region, endpoints[j].Locality.Region) < 0 {
    				return true
    			}
    			if strings.Compare(endpoints[i].Locality.Zone, endpoints[j].Locality.Zone) < 0 {
    				return true
    			}
    			return strings.Compare(endpoints[i].Locality.SubZone, endpoints[j].Locality.SubZone) < 0
    		})
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  10. src/reflect/value.go

    // For an interface value, Equal will compare the value within the interface.
    // Otherwise, If the values have different types, Equal will report false.
    // Otherwise, for arrays and structs Equal will compare each element in order,
    // and report false if it finds non-equal elements.
    // During all comparisons, if values of the same type are compared,
    // and the type is not comparable, Equal will panic.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top