- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,106 for Wanted (0.28 sec)
-
src/cmd/compile/internal/test/testdata/cmp_test.go
} func testCmp(t *testing.T) { if wanted, got := true, eq_ssa(6); wanted != got { t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got) } if wanted, got := false, eq_ssa(7); wanted != got { t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got) } if wanted, got := false, neq_ssa(6); wanted != got { t.Errorf("neq_ssa: expected %v, got %v\n", wanted, got) } if wanted, got := true, neq_ssa(7); wanted != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 903 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value_test.go
if contained != types.True { t.Errorf("got %v, wanted list contains elem[%v] %v == true", contained, i, e) } } if lv.Contains(types.String("fourth")) != types.False { t.Errorf("got %v, wanted false 'fourth'", lv.Contains(types.String("fourth"))) } if !types.IsError(lv.Contains(types.Int(-1))) { t.Errorf("got %v, wanted error for invalid type", lv.Contains(types.Int(-1))) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 10.4K bytes - Viewed (0) -
test/typeparam/issue49027.dir/main.go
if x != s { panic(fmt.Sprintf("got %s wanted %s", x, s)) } y, ok := a.Conv2(s) if !ok { panic("conversion failed") } if y != s { panic(fmt.Sprintf("got %s wanted %s", y, s)) } z := a.Conv3(s) if z != s { panic(fmt.Sprintf("got %s wanted %s", z, s)) } w := a.Conv4(a.Mystring(s)) if w != a.Mystring(s) { panic(fmt.Sprintf("got %s wanted %s", w, s)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 617 bytes - Viewed (0) -
test/fixedbugs/issue14725.go
} func main() { if x := f1(); x != 1 { panic(fmt.Sprintf("f1 returned %d, wanted 1", x)) } if x := f2(); x != 1 { panic(fmt.Sprintf("f2 returned %d, wanted 1", x)) } if x := f3(true); x != 1 { panic(fmt.Sprintf("f3(true) returned %d, wanted 1", x)) } if x := f3(false); x != 1 { panic(fmt.Sprintf("f3(false) returned %d, wanted 1", x)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 856 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go
t.Fatal("got field not found for 'CustomObject.nested', wanted found") } if nestedFieldType.Type.GetMessageType() != "CustomObject.nested" { t.Errorf("got field type %v, wanted mock_template.nested", nestedFieldType.Type) } subnameFieldType, found := rt.FindFieldType("CustomObject.nested", "subname") if !found { t.Fatal("got field not found for 'CustomObject.nested.subname', wanted found") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/port_split_test.go
if e, a := item.scheme, scheme; e != a { t.Errorf("%q: Wanted %q, got %q", item.in, e, a) } if e, a := item.name, name; e != a { t.Errorf("%q: Wanted %q, got %q", item.in, e, a) } if e, a := item.port, port; e != a { t.Errorf("%q: Wanted %q, got %q", item.in, e, a) } if e, a := item.valid, valid; e != a { t.Errorf("%q: Wanted %t, got %t", item.in, e, a) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 11 14:09:48 UTC 2017 - 2.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/iface_test.go
a += 2 if got := i.(int); got != 5 { t.Errorf("wanted 5, got %d\n", got) } } func TestEfaceConv2(t *testing.T) { a := 5 sink = &a i := interface{}(a) a += 2 if got := i.(int); got != 5 { t.Errorf("wanted 5, got %d\n", got) } } func TestEfaceConv3(t *testing.T) { x = 5 if got := e2int3(x); got != 5 { t.Errorf("wanted 5, got %d\n", got) } } //go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 17:02:53 UTC 2023 - 2.1K bytes - Viewed (0) -
pilot/pkg/xds/debug_test.go
} if (ss.ClusterSent != "") != wantSent { errorHandler("wanted ClusterSent set %v got %v for %v", wantSent, ss.ClusterSent, nodeID) } if (ss.ClusterAcked != "") != wantAcked { errorHandler("wanted ClusterAcked set %v got %v for %v", wantAcked, ss.ClusterAcked, nodeID) } if (ss.ListenerSent != "") != wantSent { errorHandler("wanted ListenerSent set %v got %v for %v", wantSent, ss.ListenerSent, nodeID) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 7.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/types_test.go
t.Errorf("got %s, wanted key type of string", mp.KeyType.TypeName()) } if mp.ElemType.TypeName() != "int" { t.Errorf("got %s, wanted elem type of int", mp.ElemType.TypeName()) } expT, err := mp.ExprType() if err != nil { t.Errorf("fail to get cel type: %s", err) } if expT.GetMapType() == nil { t.Errorf("got %v, wanted CEL map type", expT) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 2.1K bytes - Viewed (0) -
src/runtime/sigqueue.go
func signal_disable(s uint32) { if s >= uint32(len(sig.wanted)*32) { return } sigdisable(s) w := sig.wanted[s/32] w &^= 1 << (s & 31) atomic.Store(&sig.wanted[s/32], w) } // Must only be called from a single goroutine at a time. // //go:linkname signal_ignore os/signal.signal_ignore func signal_ignore(s uint32) { if s >= uint32(len(sig.wanted)*32) { return } sigignore(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 7.6K bytes - Viewed (0)