Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 930 for GOT (0.02 sec)

  1. src/maps/iter_test.go

    			m[i] = i
    			want = append(want, i)
    		}
    
    		var got []int
    		for v := range Values(m) {
    			got = append(got, v)
    		}
    		slices.Sort(got)
    		if !slices.Equal(got, want) {
    			t.Errorf("Values(%v) = %v, want %v", m, got, want)
    		}
    	}
    }
    
    func TestInsert(t *testing.T) {
    	got := map[int]int{
    		1: 1,
    		2: 1,
    	}
    	Insert(got, func(yield func(int, int) bool) {
    		for i := 0; i < 10; i += 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/syscall/js/js_test.go

    	}
    	if got, want := js.Null().Type(), js.TypeNull; got != want {
    		t.Errorf("got %s, want %s", got, want)
    	}
    	if got, want := js.ValueOf(true).Type(), js.TypeBoolean; got != want {
    		t.Errorf("got %s, want %s", got, want)
    	}
    	if got, want := js.ValueOf(0).Type(), js.TypeNumber; got != want {
    		t.Errorf("got %s, want %s", got, want)
    	}
    	if got, want := js.ValueOf(42).Type(), js.TypeNumber; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  3. src/runtime/crash_cgo_test.go

    	}
    	got := runTestProg(t, "testprogcgo", "CgoSignalDeadlock")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    }
    
    func TestCgoTraceback(t *testing.T) {
    	t.Parallel()
    	got := runTestProg(t, "testprogcgo", "CgoTraceback")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/crd/config_test.go

    	if got := obj.GetObjectMeta(); !reflect.DeepEqual(meta, got) {
    		t.Errorf("GetObjectMeta() => got %v, want %v", got, meta)
    	}
    
    	if got := obj.DeepCopy(); !reflect.DeepEqual(*got, obj) {
    		t.Errorf("DeepCopy() => got %v, want %v", got, obj)
    	}
    
    	if got := obj.DeepCopyObject(); !reflect.DeepEqual(got, &obj) {
    		t.Errorf("DeepCopyObject() => got %v, want %v", got, obj)
    	}
    
    	var empty *crd.IstioKind
    	if empty.DeepCopy() != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 18:26:16 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/math/big/float_test.go

    	} {
    		x := makeFloat(test.x)
    		if got := x.Signbit(); got != test.signbit {
    			t.Errorf("(%s).Signbit() = %v; want %v", test.x, got, test.signbit)
    		}
    		if got := x.Sign(); got != test.sign {
    			t.Errorf("(%s).Sign() = %d; want %d", test.x, got, test.sign)
    		}
    		if got := x.IsInf(); got != test.inf {
    			t.Errorf("(%s).IsInf() = %v; want %v", test.x, got, test.inf)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/cluster_traffic_policy_test.go

    				if got := ctx.CommonTlsContext.GetCombinedValidationContext().GetValidationContextSdsSecretConfig().GetName(); rootName != got {
    					t.Fatalf("expected root name %v got %v", rootName, got)
    				}
    				if got := ctx.CommonTlsContext.GetAlpnProtocols(); got != nil {
    					t.Fatalf("expected alpn list nil as not h2 or Istio_Mutual TLS Setting; got %v", got)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. src/log/slog/value_test.go

    	}
    
    	// Test Resolve.
    	got = v.Resolve().Any()
    	if got != want {
    		t.Errorf("got %#v, want %#v", got, want)
    	}
    
    	// Test Resolve max iteration.
    	r.v = AnyValue(r) // create a cycle
    	got = AnyValue(r).Resolve().Any()
    	if _, ok := got.(error); !ok {
    		t.Errorf("expected error, got %T", got)
    	}
    
    	// Groups are not recursively resolved.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/slices/slices_test.go

    		{x: []int{0, 1, 2}, count: 4, want: []int{0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2}},
    	} {
    		if got := Repeat(tc.x, tc.count); got == nil || cap(got) != cap(tc.want) || !Equal(got, tc.want) {
    			t.Errorf("Repeat(%v, %v): got: %v, want: %v, (got == nil): %v, cap(got): %v, cap(want): %v",
    				tc.x, tc.count, got, tc.want, got == nil, cap(got), cap(tc.want))
    		}
    	}
    
    	// big slices
    	for _, tc := range []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  9. internal/ringbuffer/ring_buffer_test.go

    	}
    	if rb.Length() != 64 {
    		t.Fatalf("expect len 64 bytes but got %d. r.w=%d, r.r=%d", rb.Length(), rb.w, rb.r)
    	}
    	if rb.Free() != 0 {
    		t.Fatalf("expect free 0 bytes but got %d. r.w=%d, r.r=%d", rb.Free(), rb.w, rb.r)
    	}
    
    	// check empty or full
    	if rb.IsEmpty() {
    		t.Fatalf("expect IsEmpty is false but got true")
    	}
    	if !rb.IsFull() {
    		t.Fatalf("expect IsFull is true but got false")
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. pkg/envoy/proxy_test.go

    	}
    	if !reflect.DeepEqual(got, want) {
    		t.Errorf("envoyArgs() => got:\n%v,\nwant:\n%v", got, want)
    	}
    }
    
    func TestReadToJSON(t *testing.T) {
    	got, err := readBootstrapToJSON("testdata/bootstrap.yaml")
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    	want := `{"key":"value"}`
    	if got != want {
    		t.Errorf("readBootstrapToJSON() => got:\n%v,\nwant:\n%v", got, want)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 11:45:51 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top