- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 84 for Comparer (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go
if tt.kmsv1 != kmsUsed.v1Used { t.Errorf("incorrect kms v1 detection: want=%v got=%v", tt.kmsv1, kmsUsed.v1Used) } if d := cmp.Diff(tt.want, got, cmp.Comparer(func(a, b *kmsPluginProbe) bool { return *a == *b }), cmp.Comparer(func(a, b *kmsv2PluginProbe) bool { return *a == *b }), ); d != "" { t.Fatalf("HealthzConfig mismatch (-want +got):\n%s", d) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 16:56:39 UTC 2024 - 72.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder_test.go
// Validate if reflect.DeepEqual(scenario.eligibleNodes, eligibleNodes) { fmt.Println("foo") } if compDiff := cmp.Diff(scenario.eligibleNodes, eligibleNodes, cmp.Comparer(func(a, b sets.Set[string]) bool { return reflect.DeepEqual(a, b) })); compDiff != "" { t.Errorf("Unexpected eligible nodes (-want +got):\n%s", compDiff) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 82.8K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue.go
// recording showing the number of pods in each queue respectively. // This function is used for debugging purposes in the scheduler cache dumper and comparer. func (p *PriorityQueue) PendingPods() ([]*v1.Pod, string) { p.lock.RLock() defer p.lock.RUnlock() var result []*v1.Pod for _, pInfo := range p.activeQ.List() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 61.4K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
CMPgt = Cmp(1) ) // Compare compares types for purposes of the SSA back // end, returning a Cmp (one of CMPlt, CMPeq, CMPgt). // The answers are correct for an optimizer // or code generator, but not necessarily typechecking. // The order chosen is arbitrary, only consistency and division // into equivalence classes (Types that compare CMPeq) matters. func (t *Type) Compare(x *Type) Cmp { if x == t {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/ARM64Ops.go
{name: "CMPconst", argLength: 1, reg: gp1flags, asm: "CMP", aux: "Int64", typ: "Flags"}, // arg0 compare to auxInt {name: "CMPW", argLength: 2, reg: gp2flags, asm: "CMPW", typ: "Flags"}, // arg0 compare to arg1, 32 bit {name: "CMPWconst", argLength: 1, reg: gp1flags, asm: "CMPW", aux: "Int32", typ: "Flags"}, // arg0 compare to auxInt, 32 bit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:49:20 UTC 2024 - 58.8K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h
// operand to be used in a failure message. The type (but not value) // of the other operand may affect the format. This allows us to // print a char* as a raw pointer when it is compared against another // char* or void*, and print it as a C string when it is compared // against an std::string object, for example. // // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM. template <typename T1, typename T2>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 86.4K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.31.md
- github.com/google/cel-go: [v0.17.8 → v0.20.1](https://github.com/google/cel-go/compare/v0.17.8...v0.20.1) - github.com/google/pprof: [4bb14d4 → 4bfdf5a](https://github.com/google/pprof/compare/4bb14d4...4bfdf5a) - github.com/google/uuid: [v1.3.0 → v1.3.1](https://github.com/google/uuid/compare/v1.3.0...v1.3.1) - github.com/googleapis/gax-go/v2: [v2.11.0 → v2.0.5](https://github.com/googleapis/gax-go/compare/v2.11.0...v2.0.5)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 20:34:14 UTC 2024 - 60.3K bytes - Viewed (0) -
src/net/netip/netip_test.go
} for _, tt := range tests { got := tt.a.Compare(tt.b) if got != tt.want { t.Errorf("Compare(%q, %q) = %v; want %v", tt.a, tt.b, got, tt.want) } // Also check inverse. if got == tt.want { got2 := tt.b.Compare(tt.a) if want2 := -1 * tt.want; got2 != want2 { t.Errorf("Compare(%q, %q) was correctly %v, but Compare(%q, %q) was %v", tt.a, tt.b, got, tt.b, tt.a, got2) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go
// xref: https://github.com/google/cel-spec/wiki/proposal-210 // compare integers with all float types "double(self.val1) < self.val4": 6, "self.val1 < int(self.val4)": 6, "double(self.val1) < self.val5": 6, "self.val1 < int(self.val5)": 6, "double(self.val1) < self.val6": 6, "self.val1 < int(self.val6)": 6, // compare literal integers and floats "double(5) < 10.0": 1,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:20:16 UTC 2024 - 80.2K bytes - Viewed (0) -
src/time/time.go
return t.ext < u.ext } ts := t.sec() us := u.sec() return ts < us || ts == us && t.nsec() < u.nsec() } // Compare compares the time instant t with u. If t is before u, it returns -1; // if t is after u, it returns +1; if they're the same, it returns 0. func (t Time) Compare(u Time) int { var tc, uc int64 if t.wall&u.wall&hasMonotonic != 0 { tc, uc = t.ext, u.ext } else { tc, uc = t.sec(), u.sec()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0)