- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 6,074 for case1 (0.04 sec)
-
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) -
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) -
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/path/filepath/path_windows.go
b.WriteString(`.\`) } case lastChar == ':': // If the path ends in a colon, keep the path relative to the current directory // on a drive and don't add a separator. Preserve leading slashes in the next // path element, which may make the path absolute. // // Join(`C:`, `f`) = `C:f` // Join(`C:`, `\f`) = `C:\f` default: // In all other cases, add a separator between elements. b.WriteByte('\\')
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go
switch typ { case "uint64": max = max.SetUint64(maxU64) case "uint32": max = max.SetUint64(maxU32) case "uint16": max = max.SetUint64(maxU16) case "uint8": max = max.SetUint64(maxU8) case "int64": min = min.SetInt64(minI64) max = max.SetInt64(maxI64) case "int32": min = min.SetInt64(minI32) max = max.SetInt64(maxI32) case "int16": min = min.SetInt64(minI16)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 6.4K bytes - Viewed (0) -
src/runtime/tracestatus.go
// N.B. Ignore the _Gscan bit. We don't model it in the tracer. var tgs traceGoStatus switch status &^ _Gscan { case _Grunnable: tgs = traceGoRunnable case _Grunning, _Gcopystack: tgs = traceGoRunning case _Gsyscall: tgs = traceGoSyscall case _Gwaiting, _Gpreempted: // There are a number of cases where a G might end up in // _Gwaiting but it's actually running in a non-preemptive
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:03:35 UTC 2024 - 7.2K bytes - Viewed (0) -
src/internal/trace/oldtrace_test.go
// the user_task_region_* test cases. We only check for the // Go 1.21 traces because earlier traces used different // strings. switch ev.Kind() { case trace.EventRegionBegin, trace.EventRegionEnd: if _, ok := validRegions[ev.Region().Type]; !ok { t.Fatalf("converted event has unexpected region type:\n%s", ev) } case trace.EventTaskBegin, trace.EventTaskEnd:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.5K bytes - Viewed (0) -
src/testing/slogtest/slogtest.go
c := cases[i] for _, check := range c.checks { if problem := check(got); problem != "" { errs = append(errs, fmt.Errorf("%s: %s", problem, c.explanation)) } } } return errors.Join(errs...) } // Run exercises a [slog.Handler] on the same test cases as [TestHandler], but // runs each case in a subtest. For each test case, it first calls newHandler to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 9.8K bytes - Viewed (0) -
test/typeparam/issue50002.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test for cases where certain instantiations of a generic function (F in this // example) will always fail on a type assertion or mismatch on a type case. package main import "fmt" type S struct{} func (S) M() byte { return 0 } type I[T any] interface { M() T }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.3K bytes - Viewed (0)