- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,222 for case1 (0.25 sec)
-
src/go/types/typeterm.go
func (x *term) String() string { switch { case x == nil: return "∅" case x.typ == nil: return "𝓤" case x.tilde: return "~" + x.typ.String() default: return x.typ.String() } } // equal reports whether x and y represent the same type set. func (x *term) equal(y *term) bool { // easy cases switch { case x == nil || y == nil: return x == y case x.typ == nil || y.typ == nil:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 9.2K bytes - Viewed (0) -
src/cmp/cmp_test.go
} func TestLess(t *testing.T) { for _, test := range tests { var b bool switch test.x.(type) { case int: b = cmp.Less(test.x.(int), test.y.(int)) case string: b = cmp.Less(test.x.(string), test.y.(string)) case float64: b = cmp.Less(test.x.(float64), test.y.(float64)) case uintptr: b = cmp.Less(test.x.(uintptr), test.y.(uintptr)) } if b != (test.compare < 0) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/erasure-sets_test.go
"github.com/google/uuid" ) var testUUID = uuid.MustParse("f5c58c61-7175-4018-ab5e-a94fe9c2de4e") func BenchmarkCrcHash(b *testing.B) { cases := []struct { key int }{ {16}, {64}, {128}, {256}, {512}, {1024}, } for _, testCase := range cases { testCase := testCase key := randString(testCase.key) b.Run("", func(b *testing.B) { b.SetBytes(1024) b.ReportAllocs()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 12 07:21:56 UTC 2024 - 6.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/build/relnote/dump.go
dprintf(depth, "%s\n", typeName) switch b := b.(type) { case *md.Paragraph: dumpInlines(b.Text.Inline, depth+1) case *md.Heading: dumpInlines(b.Text.Inline, depth+1) case *md.List: dumpBlocks(b.Items, depth+1) case *md.Item: dumpBlocks(b.Blocks, depth+1) default: // TODO(jba): additional cases as needed. } } func dumpInlines(ins []md.Inline, depth int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go
switch nativeType { case reflect.TypeOf(""): return apiservercel.StringType case reflect.TypeOf([]string{}): return apiservercel.NewListType(apiservercel.StringType, -1) case reflect.TypeOf(map[string]v1.ExtraValue{}): return apiservercel.NewMapType(apiservercel.StringType, apiservercel.NewListType(apiservercel.StringType, -1), -1) case reflect.TypeOf(&v1.ResourceAttributes{}):
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go
} config := configure("fuzzer") config.skipIfCSanitizerBroken(t) cases := []struct { goSrc string cSrc string expectedError string }{ {goSrc: "libfuzzer1.go", expectedError: "panic: found it"}, {goSrc: "libfuzzer2.go", cSrc: "libfuzzer2.c", expectedError: "panic: found it"}, } for _, tc := range cases { tc := tc name := strings.TrimSuffix(tc.goSrc, ".go")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 00:12:03 UTC 2024 - 2.6K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
}, Annotations: map[string]string{ annotation.SidecarStatus.Name: `{"revision":"test-anno"}`, }, }, }, expectedRevision: "test-anno", }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.name), func(t *testing.T) { assert.Equal(t, c.expectedRevision, extractRevisionFromPod(c.pod)) }) } } func Test_getNamespaces(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 04:33:57 UTC 2024 - 5.5K bytes - Viewed (0) -
src/reflect/swapper.go
} } else { switch size { case 8: is := *(*[]int64)(v.ptr) return func(i, j int) { is[i], is[j] = is[j], is[i] } case 4: is := *(*[]int32)(v.ptr) return func(i, j int) { is[i], is[j] = is[j], is[i] } case 2: is := *(*[]int16)(v.ptr) return func(i, j int) { is[i], is[j] = is[j], is[i] } case 1: is := *(*[]int8)(v.ptr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:30 UTC 2024 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
return true } case *syntax.ReturnStmt: return true case *syntax.BranchStmt: if s.Tok == syntax.Goto || s.Tok == syntax.Fallthrough { return true } case *syntax.BlockStmt: return check.isTerminatingList(s.List, "") case *syntax.IfStmt: if s.Else != nil && check.isTerminating(s.Then, "") && check.isTerminating(s.Else, "") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0)