Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 6,074 for case1 (0.09 sec)

  1. 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)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go

    				select {
    				case watchResp := <-watchCh:
    					if watchResp.err != nil {
    						t.Fatalf("watch response got an unexepct error: %v", watchResp.err)
    					}
    					if !reflect.DeepEqual(responseBody, watchResp.body) {
    						t.Fatalf("in-flight watch was broken by GOAWAY frame, expect response body: %s, got: %s", responseBody, watchResp.body)
    					}
    				case <-watchTimeout.C:
    					t.Error("watch receive timeout")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 12:58:54 UTC 2021
    - 13.9K bytes
    - Viewed (0)
  3. tools/istio-iptables/pkg/config/validation_test.go

    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			err := ValidateOwnerGroups(tc.include, tc.exclude)
    			assert.NoError(t, err)
    		})
    	}
    }
    
    func TestValidateOwnerGroups_Invalid(t *testing.T) {
    	cases := []struct {
    		name    string
    		include string
    		exclude string
    	}{
    		{
    			name:    "capture 65 groups",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 11 02:38:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/testdata/issue49205.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    // test case from issue
    
    type _ interface{
    	m /* ERROR unexpected name int in interface type; possibly missing semicolon or newline or } */ int
    }
    
    // other cases where the fix for this issue affects the error message
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 952 bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute3StaticInstrumentationInDynamicGroovyWithoutIndyIntegrationTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.cc.impl.inputs.process.instrument
    
    /**
     * Test cases for single-argument {@code ProcessGroovyMethods.execute} with static import (Groovy produces a special byte code in this case):
     * <pre>
     *     import static org.codehaus.groovy.runtime.ProcessGroovyMethods.execute
     *     execute("echo 123", env, cwd)
     *     execute(["echo", "123"], env, cwd)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue28251.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains test cases for various forms of
    // method receiver declarations, per the spec clarification
    // https://golang.org/cl/142757.
    
    package issue28251
    
    // test case from issue28251
    type T struct{}
    
    type T0 = *T
    
    func (T0) m() {}
    
    func _() { (&T{}).m() }
    
    // various alternative forms
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. cmd/os-reliable.go

    		switch {
    		case isSysErrNotDir(err) && !osIsNotExist(err):
    			// Windows can have both isSysErrNotDir(err) and osIsNotExist(err) returning
    			// true if the source file path contains an non-existent directory. In that case,
    			// we want to return errFileNotFound instead, which will honored in subsequent
    			// switch cases
    			return errFileAccessDenied
    		case isSysErrPathNotFound(err):
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/regexp/exec_test.go

    		line := scanner.Text()
    		switch {
    		case line == "":
    			t.Fatalf("%s:%d: unexpected blank line", file, lineno)
    		case line[0] == '#':
    			continue
    		case 'A' <= line[0] && line[0] <= 'Z':
    			// Test name.
    			t.Logf("%s\n", line)
    			continue
    		case line == "strings":
    			str = str[:0]
    			inStrings = true
    		case line == "regexps":
    			inStrings = false
    		case line[0] == '"':
    			q, err := strconv.Unquote(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. 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)
  10. cni/pkg/nodeagent/informers.go

    	switch event.Event {
    	case controllers.EventAdd:
    		// pod was added to our cache
    		// we get here in 2 cases:
    		// 1. new pod was created on our node
    		// 2. we were restarted and current existing pods are added to our cache
    
    		// We have no good way to distinguish between these two cases from here. But we don't need to!
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top