Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,541 for casePC (0.13 sec)

  1. 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)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    		return 1 << nCompositeLit
    	case *ast.DeclStmt:
    		return 1 << nDeclStmt
    	case *ast.DeferStmt:
    		return 1 << nDeferStmt
    	case *ast.Ellipsis:
    		return 1 << nEllipsis
    	case *ast.EmptyStmt:
    		return 1 << nEmptyStmt
    	case *ast.ExprStmt:
    		return 1 << nExprStmt
    	case *ast.Field:
    		return 1 << nField
    	case *ast.FieldList:
    		return 1 << nFieldList
    	case *ast.File:
    		return 1 << nFile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    	T Time `json:"t"`
    }
    
    func TestTimeMarshalYAML(t *testing.T) {
    	cases := []struct {
    		input  Time
    		result string
    	}{
    		{Time{}, "t: null\n"},
    		{Date(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05Z\"\n"},
    		{Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05Z\"\n"},
    	}
    
    	for _, c := range cases {
    		input := TimeHolder{c.input}
    		result, err := yaml.Marshal(&input)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    func ucast(i uint64, s sizedTestData) uint64 {
    	switch s.name {
    	case "uint32":
    		return uint64(uint32(i))
    	case "uint16":
    		return uint64(uint16(i))
    	case "uint8":
    		return uint64(uint8(i))
    	}
    	return i
    }
    
    // icast casts a signed int to the size in s
    func icast(i int64, s sizedTestData) int64 {
    	switch s.name {
    	case "int32":
    		return int64(int32(i))
    	case "int16":
    		return int64(int16(i))
    	case "int8":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  9. operator/cmd/mesh/profile-dump.go

    	switch outputFormat {
    	case jsonOutput, yamlOutput, flagsOutput:
    	default:
    		return fmt.Errorf("unknown output format: %s", outputFormat)
    	}
    	return nil
    }
    
    // yamlToFormat converts the generated yaml config to the expected format
    func yamlToFormat(yaml, outputFormat string) (string, error) {
    	var output string
    	switch outputFormat {
    	case jsonOutput:
    		j, err := yamlToPrettyJSON(yaml)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. 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)
Back to top