Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for Comparer (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Phi (Const32 [c]) (Const32 [c])) => (Const32 [c])
    (Phi (Const64 [c]) (Const64 [c])) => (Const64 [c])
    
    // slice and interface comparisons
    // The frontend ensures that we can only compare against nil,
    // so we need only compare the first word (interface type or slice ptr).
    (EqInter x y)  => (EqPtr  (ITab x) (ITab y))
    (NeqInter x y) => (NeqPtr (ITab x) (ITab y))
    (EqSlice x y)  => (EqPtr  (SlicePtr x) (SlicePtr y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		if err := json.Unmarshal(outBytes, &outMap); err != nil {
    			t.Fatalf("failed to json.Unmarshal(out): %v", err)
    		}
    
    		// Patch the maps to handle any expected differences before we compare
    		// - none for now.
    
    		// Compare the results.
    		inBytes, err = json.Marshal(inMap)
    		if err != nil {
    			t.Fatalf("failed to json.Marshal(in): %v", err)
    		}
    		outBytes, err = json.Marshal(outMap)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/ppc64/asm9.go

    	/* Vector compare */
    	{as: AVCMPEQ, a1: C_VREG, a2: C_VREG, a6: C_VREG, type_: 82, size: 4},   /* vector compare equal, vc-form */
    	{as: AVCMPGT, a1: C_VREG, a2: C_VREG, a6: C_VREG, type_: 82, size: 4},   /* vector compare greater than, vc-form */
    	{as: AVCMPNEZB, a1: C_VREG, a2: C_VREG, a6: C_VREG, type_: 82, size: 4}, /* vector compare not equal, vx-form */
    
    	/* Vector merge */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:55:28 UTC 2024
    - 156.1K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    // *testing.T to report success or failure, prints output to os.Stdout.
    // If the last comment in the function starts with "Output:" then the output
    // is compared exactly against the comment (see examples below). If the last
    // comment begins with "Unordered output:" then the output is compared to the
    // comment, however the order of the lines is ignored. An example with no such
    // comment is compiled but not executed. An example with no text after
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top