Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for Comparer (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/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: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  9. 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)
  10. pkg/kubelet/eviction/helpers.go

    	return ms.cmp[k](p1, p2) < 0
    }
    
    // priority compares pods by Priority, if priority is enabled.
    func priority(p1, p2 *v1.Pod) int {
    	priority1 := corev1helpers.PodPriority(p1)
    	priority2 := corev1helpers.PodPriority(p2)
    	if priority1 == priority2 {
    		return 0
    	}
    	if priority1 > priority2 {
    		return 1
    	}
    	return -1
    }
    
    // exceedMemoryRequests compares whether or not pods' memory usage exceeds their requests
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
Back to top