- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 4,204 for casePC (0.11 sec)
-
src/internal/types/testdata/check/constdecl.go
_, _ _, _, _ /* ERROR "missing init expr for _" */ _, _ ) } // Test case for constant with invalid initialization. // Caused panic because the constant value was not set up (gri - 7/8/2014). func _() { const ( x string = missing /* ERROR "undefined" */ y = x + "" ) } // Test case for constants depending on function literals (see also #22992).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 3.7K bytes - Viewed (0) -
src/math/dim.go
} func max(x, y float64) float64 { // special cases switch { case IsInf(x, 1) || IsInf(y, 1): return Inf(1) case IsNaN(x) || IsNaN(y): return NaN() case x == 0 && x == y: if Signbit(x) { return y } return x } if x > y { return x } return y } // Min returns the smaller of x or y. // // Special cases are: // // Min(x, -Inf) = Min(-Inf, x) = -Inf
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 15 19:45:12 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
switch T := T.(type) { case *aliases.Alias: return find(obj, aliases.Unalias(T), path, seen) case *types.Basic, *types.Named: // Named types belonging to pkg were handled already, // so T must belong to another package. No path. return nil case *types.Pointer: return find(obj, T.Elem(), append(path, opElem), seen) case *types.Slice:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/gofmt/rewrite.go
return !pattern.IsValid() && !val.IsValid() } if pattern.Type() != val.Type() { return false } // Special cases. switch pattern.Type() { case identType: // For identifiers, only the names need to match // (and none of the other *ast.Object information). // This is a common case, handle it all here instead // of recursing down any further via reflection. p := pattern.Interface().(*ast.Ident)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 27 22:07:13 UTC 2023 - 8.1K bytes - Viewed (0) -
src/runtime/tracetime.go
// platforms where osHasLowResClock is true, because the system clock // isn't granular enough to get useful information out of a trace in // many cases. // // This makes absolute values of timestamp diffs smaller, and so they are // encoded in fewer bytes. // // The target resolution in all cases is 64 nanoseconds. // This is based on the fact that fundamentally the execution tracer won't emit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 3.3K bytes - Viewed (0) -
cmd/copy-part-range.go
return nil, errInvalidRange } return hrange, nil } // checkCopyPartRangeWithSize adds more check to the range string in case of // copy object part. This API requires having specific start and end range values // e.g. 'bytes=3-10'. Other use cases will be rejected. func checkCopyPartRangeWithSize(rs *HTTPRangeSpec, resourceSize int64) (err error) { if rs == nil { return nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 18 03:27:04 UTC 2021 - 2.5K bytes - Viewed (0) -
src/math/tan.go
PI4B = 3.77489470793079817668e-8 // 0x3e64442d00000000, PI4C = 2.69515142907905952645e-15 // 0x3ce8469898cc5170, ) // special cases switch { case x == 0 || IsNaN(x): return x // return ±0 || NaN() case IsInf(x, 0): return NaN() } // make argument positive but save the sign sign := false if x < 0 { x = -x sign = true } var j uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 08 17:27:54 UTC 2022 - 3.7K bytes - Viewed (0) -
test/fixedbugs/issue22881.go
} } // Append slice. for i, f := range []func(map[int][]int){ fa0, fa1, fa2, fa3, } { m := map[int][]int{} func() { // wrapper to scope the defer. defer func() { recover() }() f(m) // Will panic. Shouldn't modify m. fmt.Printf("RHS didn't panic, case fa%d\n", i) }() if len(m) != 0 { fmt.Printf("map insert happened, case fa%d\n", i) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 20 01:47:07 UTC 2018 - 2K bytes - Viewed (0) -
pkg/config/labels/instance_test.go
expected: result{false, false}, }, } for _, c := range cases { var got result got.subsetOf = c.left.SubsetOf(c.right) got.selected = c.left.Match(c.right) if got != c.expected { t.Errorf("%v.SubsetOf(%v) got %v, expected %v", c.left, c.right, got, c.expected) } } } func TestString(t *testing.T) { cases := []struct { input labels.Instance expected string }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 16 06:54:36 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes_test.go
} var cases = []test{ {"CaseClause", `@case x:`}, {"CaseClause", `@case x, y, z:`}, {"CaseClause", `@case x == 1, y == 2:`}, {"CaseClause", `@default:`}, } var comms = []test{ {"CommClause", `@case <-ch:`}, {"CommClause", `@case x <- ch:`}, {"CommClause", `@case x = <-ch:`}, {"CommClause", `@case x := <-ch:`}, {"CommClause", `@case x, ok = <-ch: f(1, 2, 3)`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 18:45:06 UTC 2023 - 8.7K bytes - Viewed (0)