Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 934 for Cmp (0.02 sec)

  1. pilot/pkg/security/authz/matcher/template_test.go

    // limitations under the License.
    
    package matcher
    
    import (
    	"testing"
    
    	uri_template "github.com/envoyproxy/go-control-plane/envoy/extensions/path/match/uri_template/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    )
    
    func TestPathTemplateMatcher(t *testing.T) {
    	testCases := []struct {
    		name string
    		path string
    		want *uri_template.UriTemplateMatchConfig
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_metrics_test.go

    				if metrics.Available.Cmp(*availableBytes) != 0 {
    					t.Fatalf("for %s: error: expected :%v , got: %v", tc.name, *availableBytes, *(metrics.Available))
    				}
    				if metrics.Capacity.Cmp(*totalBytes) != 0 {
    					t.Fatalf("for %s: error: expected :%v , got: %v", tc.name, *totalBytes, *(metrics.Capacity))
    				}
    				if metrics.Used.Cmp(*usedBytes) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/audit/request_test.go

    				}
    
    				if !cmp.Equal(test.expected, objectGot) {
    					t.Errorf("expected and actual do not match, diff: %s", cmp.Diff(test.expected, objectGot))
    				}
    			}
    
    			// we always expect the original object to be unchanged.
    			if !cmp.Equal(original, test.object) {
    				t.Errorf("the original object has mutated, diff: %s", cmp.Diff(original, test.object))
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 29 00:03:53 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  4. pkg/kubelet/cloudresource/cloud_request_manager_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cloudresource
    
    import (
    	"errors"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/cloud-provider/fake"
    )
    
    func createNodeInternalIPAddress(address string) []v1.NodeAddress {
    	return []v1.NodeAddress{
    		{
    			Type:    v1.NodeInternalIP,
    			Address: address,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. pkg/config/model_test.go

    // limitations under the License.
    
    package config
    
    import (
    	"fmt"
    	"reflect"
    	"testing"
    	"time"
    
    	cluster "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    	corev1 "k8s.io/api/core/v1"
    	k8s "sigs.k8s.io/gateway-api/apis/v1"
    
    	networking "istio.io/api/networking/v1alpha3"
    	"istio.io/istio/pkg/test/config"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. src/time/mono_test.go

    	}
    
    	cmp("t1", "t1", t1, t1w, t1, t1w, 0, 0)
    	cmp("t1", "t2", t1, t1w, t2, t2w, -1, +1)
    	cmp("t1", "t3", t1, t1w, t3, t3w, -1, 0)
    
    	cmp("t2", "t1", t2, t2w, t1, t1w, +1, -1)
    	cmp("t2", "t2", t2, t2w, t2, t2w, 0, 0)
    	cmp("t2", "t3", t2, t2w, t3, t3w, -1, -1)
    
    	cmp("t3", "t1", t3, t3w, t1, t1w, +1, 0)
    	cmp("t3", "t2", t3, t3w, t2, t2w, +1, +1)
    	cmp("t3", "t3", t3, t3w, t3, t3w, 0, 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 17:10:49 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  7. src/runtime/time_windows_arm.s

    #include "textflag.h"
    #include "time_windows.h"
    
    TEXT time·now(SB),NOSPLIT,$0-20
    	MOVW	$_INTERRUPT_TIME, R3
    loop:
    	MOVW	time_hi1(R3), R1
    	DMB	MB_ISH
    	MOVW	time_lo(R3), R0
    	DMB	MB_ISH
    	MOVW	time_hi2(R3), R2
    	CMP	R1, R2
    	BNE	loop
    
    	// wintime = R1:R0, multiply by 100
    	MOVW	$100, R2
    	MULLU	R0, R2, (R4, R3)    // R4:R3 = R1:R0 * R2
    	MULA	R1, R2, R4, R4
    
    	// wintime*100 = R4:R3
    	MOVW	R3, mono+12(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 17:19:45 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. src/runtime/softfloat64.go

    }
    
    func feq32(x, y uint32) bool {
    	cmp, nan := fcmp64(f32to64(x), f32to64(y))
    	return cmp == 0 && !nan
    }
    
    func fgt32(x, y uint32) bool {
    	cmp, nan := fcmp64(f32to64(x), f32to64(y))
    	return cmp >= 1 && !nan
    }
    
    func fge32(x, y uint32) bool {
    	cmp, nan := fcmp64(f32to64(x), f32to64(y))
    	return cmp >= 0 && !nan
    }
    
    func feq64(x, y uint64) bool {
    	cmp, nan := fcmp64(x, y)
    	return cmp == 0 && !nan
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 17:58:41 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_exclude_go121.txt

    # go.dev/issue/60028: use semver sort in exclude block in 1.21
    cp $WORK/go.mod.badfmtexclude go.mod
    go mod edit -go=1.20
    cmp go.mod $WORK/go.mod.goodfmtexclude120
    go mod edit -go=1.21
    cmp go.mod $WORK/go.mod.goodfmtexclude121
    
    -- $WORK/go.mod.badfmtexclude --
    module     x.x/y/z
    exclude  (
    	x.1   v1.11.0
    	x.1    v1.10.0
    	x.1     v1.9.0
    )
    -- $WORK/go.mod.goodfmtexclude120 --
    module x.x/y/z
    
    go 1.20
    
    exclude (
    	x.1 v1.10.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 17:26:48 UTC 2023
    - 563 bytes
    - Viewed (0)
  10. pkg/scheduler/util/assumecache/assume_cache_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package assumecache
    
    import (
    	"fmt"
    	"slices"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    
    	"k8s.io/apimachinery/pkg/api/meta"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/kubernetes/test/utils/ktesting"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top