- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,535 for Comparer (0.16 sec)
-
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) -
src/cmd/compile/internal/walk/compare.go
} return n case types.TARRAY: // We can compare several elements at once with 2/4/8 byte integer compares inline = t.NumElem() <= 1 || (types.IsSimple[t.Elem().Kind()] && (t.NumElem() <= 4 || t.Elem().Size()*t.NumElem() <= maxcmpsize)) case types.TSTRUCT: inline = compare.EqStructCost(t) <= 4 } cmpl := n.X for cmpl != nil && cmpl.Op() == ir.OCONVNOP {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 16.2K bytes - Viewed (0) -
operator/pkg/compare/compare.go
} y, err := yaml.Marshal(r.diffTree) if err != nil { return err.Error() } return string(y) } // YAMLCmp compares two yaml texts, return a tree based diff text. func YAMLCmp(a, b string) string { return YAMLCmpWithIgnore(a, b, nil, "") } // YAMLCmpWithIgnore compares two yaml texts, and ignores paths in ignorePaths. func YAMLCmpWithIgnore(a, b string, ignorePaths []string, ignoreYaml string) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 13.3K bytes - Viewed (0) -
src/strings/compare.go
package strings import "internal/bytealg" // Compare returns an integer comparing two strings lexicographically. // The result will be 0 if a == b, -1 if a < b, and +1 if a > b. // // Use Compare when you need to perform a three-way comparison (with // slices.SortFunc, for example). It is usually clearer and always faster // to use the built-in string comparison operators ==, <, >, and so on. func Compare(a, b string) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 628 bytes - Viewed (0) -
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) -
platforms/documentation/docs/src/docs/userguide/img/build-cache/compare-small.svg
compare-small.svg...
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.5K 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) -
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) -
platforms/documentation/docs/src/docs/userguide/img/build-cache/compare-small-b.svg
compare-small-b.svg...
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/DefaultVersionComparatorTest.groovy
def compare(String s1, String s2) { return comparator.compare(new VersionInfo(versionParser.transform(s1)), new VersionInfo(versionParser.transform(s2))) } def "numeric parts are compared as numbers"() { expect: compare(smaller, larger) < 0 compare(larger, smaller) > 0 compare(smaller, smaller) == 0 compare(larger, larger) == 0 where:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 8.4K bytes - Viewed (0)