- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 576 for case1 (0.16 sec)
-
src/runtime/iface.go
// interfaceSwitch compares t against the list of cases in s. // If t matches case i, interfaceSwitch returns the case index i and // an itab for the pair <t, s.Cases[i]>. // If there is no match, return N,nil, where N is the number // of cases. func interfaceSwitch(s *abi.InterfaceSwitch, t *_type) (int, *itab) { cases := unsafe.Slice(&s.Cases[0], s.NCases) // Results if we don't find a match.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0) -
cni/pkg/install/cniconfig_test.go
} t.Fatalf("did not expect to retrieve a CNI config file %s", result) } // Successful test for non-delayed cases return case err := <-errChan: t.Fatal(err) case <-time.After(250 * time.Millisecond): if len(c.delayedConfName) > 0 { // Delayed case // Write delayed CNI config file data, err := os.ReadFile(filepath.Join("testdata", c.delayedConfName)) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 15.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
continue } end := s.Rbrace if i+1 < len(s.Body) { end = s.Body[i+1].Pos() } // Check each type in this type switch case. cases := syntax.UnpackListExpr(clause.Cases) T := check.caseTypes(sx, cases, seen) check.openScopeUntil(clause, end, "case") // If lhs exists, declare a corresponding variable in the case-local scope. if lhs != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/abi.go
for i, p := range abiParams { t := p.Type switch t.Kind() { case types.TINT32, types.TUINT32: wfs[i].Type = obj.WasmI32 case types.TINT64, types.TUINT64: wfs[i].Type = obj.WasmI64 case types.TFLOAT32: wfs[i].Type = obj.WasmF32 case types.TFLOAT64: wfs[i].Type = obj.WasmF64 case types.TUNSAFEPTR: wfs[i].Type = obj.WasmPtr default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 13.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
/** * Generated tests for {@link Monitor}. * * <p>This test class generates all of its own test cases in the {@link #suite()} method. Every * {@code enterXxx}, {@code tryEnterXxx}, and {@code waitForXxx} method of the {@code Monitor} class * is analyzed reflectively to determine appropriate test cases based on its signature. Additional * ad hoc test cases can be found in {@link SupplementalMonitorTest}. * * @author Justin T. Sampson */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 25.8K 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/cmd/compile/internal/types2/subst.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/asm/internal/asm/asm.go
switch valueAddr.Type { case obj.TYPE_CONST: switch sz { case 1, 2, 4, 8: nameAddr.Sym.WriteInt(p.ctxt, nameAddr.Offset, int(sz), valueAddr.Offset) default: p.errorf("bad int size for DATA argument: %d", sz) } case obj.TYPE_FCONST: switch sz { case 4: nameAddr.Sym.WriteFloat32(p.ctxt, nameAddr.Offset, float32(valueAddr.Val.(float64))) case 8:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 25.5K bytes - Viewed (0) -
src/internal/types/testdata/check/stmt0.go
switch x { case 1 /* ERROR "overflows" */ << 100: } switch x { case 1: case 1 /* ERROR "duplicate case" */ : case ( /* ERROR "duplicate case" */ 1): case 2, 3, 4: case 5, 1 /* ERROR "duplicate case" */ : } switch uint64(x) { case 1<<64 - 1: case 1 /* ERROR "duplicate case" */ <<64 - 1: case 2, 3, 4: case 5, 1 /* ERROR "duplicate case" */ <<64 - 1: } var y32 float32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 19K bytes - Viewed (0) -
src/runtime/tracestack.go
if status&_Gscan == 0 { // Use the trace status to check this. There are a number of cases // where a running goroutine might be in _Gwaiting, and these cases // are totally fine for taking a stack trace. They're captured // correctly in goStatusToTraceGoStatus. switch goStatusToTraceGoStatus(status, gp.waitreason) { case traceGoRunning, traceGoSyscall: if getg() == gp || mp.curg == gp { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:56 UTC 2024 - 11K bytes - Viewed (0)