- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 7,211 for case2 (0.04 sec)
-
internal/mountinfo/mountinfo_linux_test.go
} } // Success case, where path doesn't have any mounts. { absPaths := []string{"/path/to/x"} if err = checkCrossDevice(absPaths, mountsPath); err != nil { t.Fatalf("Expected success, failed instead (%s)", err) } } } // Tests cross device mount verification function, for both failure // and success cases. func TestCrossDeviceMount(t *testing.T) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
maven-core/src/site/apt/offline-mode.apt
* The file wagon, provided the referenced location is on a local filesystem. It is not possible to determine whether a file-based location will be available except on a case-by-case basis (or a root-url by root-url basis). We may want to move the offline sensitivity entirely to Maven-Artifact, below, so we can be smarter about testing filesystem-based repositories, etc.
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 18 00:24:53 UTC 2024 - 10.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/status.go
func ErrorToAPIStatus(err error) *metav1.Status { switch t := err.(type) { case statusError: status := t.Status() if len(status.Status) == 0 { status.Status = metav1.StatusFailure } switch status.Status { case metav1.StatusSuccess: if status.Code == 0 { status.Code = http.StatusOK } case metav1.StatusFailure: if status.Code == 0 { status.Code = http.StatusInternalServerError
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 26 12:39:56 UTC 2020 - 2.3K 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) -
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/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
return 1 << nCompositeLit case *ast.DeclStmt: return 1 << nDeclStmt case *ast.DeferStmt: return 1 << nDeferStmt case *ast.Ellipsis: return 1 << nEllipsis case *ast.EmptyStmt: return 1 << nEmptyStmt case *ast.ExprStmt: return 1 << nExprStmt case *ast.Field: return 1 << nField case *ast.FieldList: return 1 << nFieldList case *ast.File: return 1 << nFile
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 4.8K bytes - Viewed (0) -
src/go/printer/testdata/comments.input
func typeswitch(x interface{}) { switch v := x.(type) { case bool, int, float: case string: default: } switch x.(type) { } switch v0, ok := x.(int); v := x.(type) { } switch v0, ok := x.(int); x.(type) { case byte: // this comment should be on the same line as the keyword // this comment should be normally indented _ = 0 case bool, int, float: // this comment should be indented
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 23:11:14 UTC 2022 - 11.3K bytes - Viewed (0) -
src/math/log1p.go
Lp6 = 1.531383769920937332e-01 // 3FC39A09D078C69F Lp7 = 1.479819860511658591e-01 // 3FC2F112DF3E5244 ) // special cases switch { case x < -1 || IsNaN(x): // includes -Inf return NaN() case x == -1: return Inf(-1) case IsInf(x, 1): return Inf(1) } absx := Abs(x) var f float64 var iu uint64 k := 1 if absx < Sqrt2M1 { // |x| < Sqrt(2)-1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.3K bytes - Viewed (0) -
istioctl/pkg/authz/authz_test.go
ALLOW _anonymous_match_nothing_ 1 ALLOW httpbin.default 1 `, }, } authzCmd := checkCmd(cli.NewFakeContext(&cli.NewFakeContextOption{})) for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.Args, " ")), func(t *testing.T) { testutil.VerifyOutput(t, authzCmd, c) }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 21 14:20:23 UTC 2023 - 1.4K 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)