Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 664 for Comparer (0.28 sec)

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

    type CacheComparer struct {
    	NodeLister corelisters.NodeLister
    	PodLister  corelisters.PodLister
    	Cache      internalcache.Cache
    	PodQueue   internalqueue.SchedulingQueue
    }
    
    // Compare compares the nodes and pods of NodeLister with Cache.Snapshot.
    func (c *CacheComparer) Compare(logger klog.Logger) error {
    	logger.V(3).Info("Cache comparer started")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcherTest.groovy

    class ExhaustiveLinesSearcherTest extends Specification {
        @Subject
        def comparer = ExhaustiveLinesSearcher.useLcsDiff()
    
        // region: assertLinesContainedIn
        def "neither expected or actual lines can be empty"() {
            when:
            comparer.assertLinesContainedIn([], ["a"])
            then:
            thrown(AssertionError)
    
            when:
            comparer.assertLinesContainedIn(["a"], [])
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/cache/debugger/debugger.go

    type CacheDebugger struct {
    	Comparer CacheComparer
    	Dumper   CacheDumper
    }
    
    // New creates a CacheDebugger.
    func New(
    	nodeLister corelisters.NodeLister,
    	podLister corelisters.PodLister,
    	cache internalcache.Cache,
    	podQueue internalqueue.SchedulingQueue,
    ) *CacheDebugger {
    	return &CacheDebugger{
    		Comparer: CacheComparer{
    			NodeLister: nodeLister,
    			PodLister:  podLister,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. docs/fr/docs/benchmarks.md

        * Si on compare Uvicorn, il faut le comparer à d'autre applications de serveurs comme Daphne, Hypercorn, uWSGI, etc.
    * **Starlette** :
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 27 18:49:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api_predicates.go

    // For more information, see https://github.com/golang/go/issues/57497.
    func Identical(x, y Type) bool {
    	var c comparer
    	return c.identical(x, y, nil)
    }
    
    // IdenticalIgnoreTags reports whether x and y are identical types if tags are ignored.
    // Receivers of [Signature] types are ignored.
    func IdenticalIgnoreTags(x, y Type) bool {
    	var c comparer
    	c.ignoreTags = true
    	return c.identical(x, y, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. src/go/types/api_predicates.go

    // For more information, see https://github.com/golang/go/issues/57497.
    func Identical(x, y Type) bool {
    	var c comparer
    	return c.identical(x, y, nil)
    }
    
    // IdenticalIgnoreTags reports whether x and y are identical types if tags are ignored.
    // Receivers of [Signature] types are ignored.
    func IdenticalIgnoreTags(x, y Type) bool {
    	var c comparer
    	c.ignoreTags = true
    	return c.identical(x, y, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/library/lists.go

    func isSorted(val ref.Val) ref.Val {
    	var prev traits.Comparer
    	iterable, ok := val.(traits.Iterable)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(val)
    	}
    	for it := iterable.Iterator(); it.HasNext() == types.True; {
    		next := it.Next()
    		nextCmp, ok := next.(traits.Comparer)
    		if !ok {
    			return types.MaybeNoSuchOverloadErr(next)
    		}
    		if prev != nil {
    			cmp := prev.Compare(next)
    			if cmp == types.IntOne {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  8. pkg/test/util/assert/assert.go

    var cmpOpts = []cmp.Option{protocmp.Transform(), cmpopts.EquateEmpty(), compareErrors}
    
    // Compare compares two objects and returns and error if they are not the same.
    func Compare[T any](a, b T) error {
    	if !cmp.Equal(a, b, opts(a)...) {
    		return fmt.Errorf("found diff: %v\nLeft: %v\nRight: %v", cmp.Diff(a, b, opts(a)...), a, b)
    	}
    	return nil
    }
    
    // Equal compares two objects and fails if they are not the same.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. pkg/controller/certificates/authority/authority_test.go

    					"Version",
    					"MaxPathLen",
    				),
    				diff.IgnoreUnset(),
    				cmp.Transformer("RoundTime", func(x time.Time) time.Time {
    					return x.Truncate(time.Second)
    				}),
    				cmp.Comparer(func(x, y *url.URL) bool {
    					return ((x == nil) && (y == nil)) || x.String() == y.String()
    				}),
    			}
    			if !cmp.Equal(*cert, test.want, opts) {
    				t.Errorf("unexpected diff: %v", cmp.Diff(*cert, test.want, opts))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 19:36:11 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  10. 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)
Back to top