- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 6,074 for case1 (0.06 sec)
-
src/internal/trace/internal/oldtrace/order.go
// Note that we have an explicit return in each case, as that produces slightly better code (tested on Go 1.19). switch ev.Type { case EvGoCreate: g = ev.Args[0] init = gState{0, gDead} next = gState{1, gRunnable} return case EvGoWaiting, EvGoInSyscall: g = ev.G init = gState{1, gRunnable} next = gState{2, gWaiting} return case EvGoStart, EvGoStartLabel: g = ev.G
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4K 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) -
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) -
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/j0.go
S03 = 5.13546550207318111446e-07 // 0x3EA13B54CE84D5A9 S04 = 1.16614003333790000205e-09 // 0x3E1408BCF4745D8F ) // special cases switch { case IsNaN(x): return x case IsInf(x, 0): return 0 case x == 0: return 1 } x = Abs(x) if x >= 2 { s, c := Sincos(x) ss := s - c cc := s + c // make sure x+x does not overflow
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 13.6K bytes - Viewed (0) -
docs/en/docs/advanced/response-change-status-code.md
# Response - Change Status Code You probably read before that you can set a default [Response Status Code](../tutorial/response-status-code.md){.internal-link target=_blank}. But in some cases you need to return a different status code than the default. ## Use case For example, imagine that you want to return an HTTP status code of "OK" `200` by default.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Jan 11 16:31:18 UTC 2024 - 1.5K 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) -
src/cmd/go/testdata/script/cover_cgo_extra_test.txt
[short] skip [!cgo] skip [compiler:gccgo] skip # gccgo has no cover tool # Test coverage on cgo code. This test case has an external # test that tests the code and an in-package test file with # no test cases. go test -short -cover cgocover3 stdout 'coverage:.*[1-9][0-9.]+%' ! stderr '[^0-9]0\.0%' -- go.mod -- module cgocover3 go 1.16 -- p.go -- package p /* void f(void) { } */ import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 584 bytes - Viewed (0) -
cmd/auth-handler_test.go
testCases := []struct { inputQueryKey string inputQueryValue string expectedResult bool }{ // Test case - 1. // Test case with query key "AWSAccessKeyId" set. {"", "", false}, // Test case - 2. {"AWSAccessKeyId", "", true}, // Test case - 3. {"X-Amz-Content-Sha256", "", false}, } for i, testCase := range testCases { // creating an input HTTP request.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.4K bytes - Viewed (0) -
src/math/erf.go
// // Special cases are: // // Erfc(+Inf) = 0 // Erfc(-Inf) = 2 // Erfc(NaN) = NaN func Erfc(x float64) float64 { if haveArchErfc { return archErfc(x) } return erfc(x) } func erfc(x float64) float64 { const Tiny = 1.0 / (1 << 56) // 2**-56 // special cases switch { case IsNaN(x): return NaN() case IsInf(x, 1): return 0 case IsInf(x, -1):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 11.5K bytes - Viewed (0)