Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for exprFmt (0.53 sec)

  1. pilot/cmd/pilot-agent/status/server.go

    	}
    }
    
    const (
    	// nolint: revive, stylecheck
    	FmtOpenMetrics_0_0_1 = expfmt.OpenMetricsType + `; version=` + expfmt.OpenMetricsVersion_0_0_1 + `; charset=utf-8`
    	// nolint: revive, stylecheck
    	FmtOpenMetrics_1_0_0 = expfmt.OpenMetricsType + `; version=` + expfmt.OpenMetricsVersion_1_0_0 + `; charset=utf-8`
    	FmtText              = `text/plain; version=` + expfmt.TextVersion + `; charset=utf-8`
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    		}
    
    		if afterParallel {
    			stmts = append(stmts, stmt)
    			continue
    		}
    
    		// Check if stmt is a call to t.Parallel(), for the correct t.
    		exprStmt, ok := stmt.(*ast.ExprStmt)
    		if !ok {
    			continue
    		}
    		expr := exprStmt.X
    		if isMethodCall(info, expr, "testing", "T", "Parallel") {
    			call, _ := expr.(*ast.CallExpr)
    			if call == nil {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. pilot/cmd/pilot-agent/status/server_test.go

    		},
    		{
    			name:        "plaintext accept header",
    			contentType: "text/plain; version=0.0.4; charset=utf-8",
    			expected:    expfmt.NewFormat(expfmt.TypeTextPlain),
    		},
    		{
    			name:        "empty accept header",
    			contentType: "",
    			expected:    expfmt.NewFormat(expfmt.TypeTextPlain),
    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. cmd/metrics.go

    				return
    			}
    		}
    
    		contentType := expfmt.Negotiate(r.Header)
    		w.Header().Set("Content-Type", string(contentType))
    
    		enc := expfmt.NewEncoder(w, contentType)
    		for _, mf := range mfs {
    			if err := enc.Encode(mf); err != nil {
    				// client may disconnect for any reasons
    				// we do not have to log this.
    				return
    			}
    		}
    		if closer, ok := enc.(expfmt.Closer); ok {
    			closer.Close()
    		}
    	})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/go/ast/ast.go

    	// A LabeledStmt node represents a labeled statement.
    	LabeledStmt struct {
    		Label *Ident
    		Colon token.Pos // position of ":"
    		Stmt  Stmt
    	}
    
    	// An ExprStmt node represents a (stand-alone) expression
    	// in a statement list.
    	//
    	ExprStmt struct {
    		X Expr // expression
    	}
    
    	// A SendStmt node represents a send statement.
    	SendStmt struct {
    		Chan  Expr
    		Arrow token.Pos // position of "<-"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    	case *ast.BadStmt,
    		*ast.SendStmt,
    		*ast.IncDecStmt,
    		*ast.GoStmt,
    		*ast.DeferStmt,
    		*ast.EmptyStmt,
    		*ast.AssignStmt:
    		// No effect on control flow.
    		b.add(s)
    
    	case *ast.ExprStmt:
    		b.add(s)
    		if call, ok := s.X.(*ast.CallExpr); ok && !b.mayReturn(call) {
    			// Calls to panic, os.Exit, etc, never return.
    			b.current = b.newBlock(KindUnreachable, s)
    		}
    
    	case *ast.DeclStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/go/types/stmt.go

    	case *ast.BadStmt, *ast.EmptyStmt:
    		// ignore
    
    	case *ast.DeclStmt:
    		check.declStmt(s.Decl)
    
    	case *ast.LabeledStmt:
    		check.hasLabel = true
    		check.stmt(ctxt, s.Stmt)
    
    	case *ast.ExprStmt:
    		// spec: "With the exception of specific built-in functions,
    		// function and method calls and receive operations can appear
    		// in statement context. Such statements may be parenthesized."
    		var x operand
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/stmt.go

    	case *syntax.EmptyStmt:
    		// ignore
    
    	case *syntax.DeclStmt:
    		check.declStmt(s.DeclList)
    
    	case *syntax.LabeledStmt:
    		check.hasLabel = true
    		check.stmt(ctxt, s.Stmt)
    
    	case *syntax.ExprStmt:
    		// spec: "With the exception of specific built-in functions,
    		// function and method calls and receive operations can appear
    		// in statement context. Such statements may be parenthesized."
    		var x operand
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/rangefunc/rewrite.go

    	if ftyp.Results().Len() != 1 {
    		base.Fatalf("invalid typecheck of range func")
    	}
    
    	// Build X(bodyFunc)
    	call := &syntax.ExprStmt{
    		X: &syntax.CallExpr{
    			Fun: rclause.X,
    			ArgList: []syntax.Expr{
    				r.bodyFunc(nfor.Body.List, syntax.UnpackListExpr(rclause.Lhs), rclause.Def, ftyp, start, end),
    			},
    		},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  10. src/cmd/cover/cover.go

    	case *ast.RangeStmt:
    		return true
    	case *ast.SwitchStmt:
    		return true
    	case *ast.SelectStmt:
    		return true
    	case *ast.TypeSwitchStmt:
    		return true
    	case *ast.ExprStmt:
    		// Calls to panic change the flow.
    		// We really should verify that "panic" is the predefined function,
    		// but without type checking we can't and the likelihood of it being
    		// an actual problem is vanishingly small.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top