Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for badexec (0.25 sec)

  1. src/cmd/go/testdata/script/test_badtest.txt

    ! go test badtest/badexec
    ! stdout ^ok
    stdout ^FAIL\tbadtest/badexec
    
    ! go test badtest/badsyntax
    ! stdout ^ok
    stdout ^FAIL\tbadtest/badsyntax
    
    ! go test badtest/badvar
    ! stdout ^ok
    stdout ^FAIL\tbadtest/badvar
    
    ! go test notest
    ! stdout ^ok
    stderr '^notest.hello.go:6:1: syntax error: non-declaration statement outside function body' # Exercise issue #7108
    
    -- badtest/badexec/x_test.go --
    package badexec
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 15:47:54 UTC 2020
    - 805 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_build_simple.txt

    go tool covdata percent -i=data/goodexit
    stdout  'coverage:.*[1-9][0-9.]+%'
    
    # Program makes a direct call to os.Exit(1).
    env GOCOVERDIR=data/badexit
    ! exec ./example.exe badexit
    ! stderr '^warning: GOCOVERDIR not set, no coverage data emitted'
    go tool covdata percent -i=data/badexit
    stdout  'coverage:.*[1-9][0-9.]+%'
    
    # Program invokes panic.
    env GOCOVERDIR=data/panic
    ! exec ./example.exe panic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. src/internal/testenv/testenv_test.go

    	}
    
    	t.Logf("HasGoBuild is true; checking consistency with other functions")
    
    	hasExec := false
    	hasExecGo := false
    	t.Run("MustHaveExec", func(t *testing.T) {
    		testenv.MustHaveExec(t)
    		hasExec = true
    	})
    	t.Run("MustHaveExecPath", func(t *testing.T) {
    		testenv.MustHaveExecPath(t, "go")
    		hasExecGo = true
    	})
    	if !hasExec {
    		t.Errorf(`MustHaveExec(t) skipped unexpectedly`)
    	}
    	if !hasExecGo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. callbacks/raw.go

    package callbacks
    
    import (
    	"gorm.io/gorm"
    )
    
    func RawExec(db *gorm.DB) {
    	if db.Error == nil && !db.DryRun {
    		result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		if err != nil {
    			db.AddError(err)
    			return
    		}
    
    		db.RowsAffected, _ = result.RowsAffected()
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Nov 29 01:33:20 UTC 2021
    - 336 bytes
    - Viewed (0)
  5. src/cmd/go/scriptcmds_test.go

    			return cmd.Process.Signal(interrupt)
    		}
    	}
    
    	cmdExec := script.Exec(cancel, waitDelay)
    	cmds["exec"] = cmdExec
    
    	add := func(name string, cmd script.Cmd) {
    		if _, ok := cmds[name]; ok {
    			panic(fmt.Sprintf("command %q is already registered", name))
    		}
    		cmds[name] = cmd
    	}
    
    	add("cc", scriptCC(cmdExec))
    	cmdGo := scriptGo(cancel, waitDelay)
    	add("go", cmdGo)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. tools/bug-report/pkg/kubectlcmd/kubectlcmd.go

    	if dryRun {
    		return fmt.Sprintf("Dry run: would be running podExec %s/%s/%s:%s", pod, namespace, container, cmdStr), nil
    	}
    	task := fmt.Sprintf("PodExec %s/%s/%s:%s", namespace, pod, container, cmdStr)
    	r.addRunningTask(task)
    	defer r.removeRunningTask(task)
    	stdout, stderr, err := r.Client.PodExec(pod, namespace, container, cmdStr)
    	if err != nil {
    		return "", fmt.Errorf("podExec error: %s\n\nstderr:\n%s\n\nstdout:\n%s",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 01:18:03 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/env_unset.txt

    # Test that we can unset variables, even if initially invalid,
    # as long as resulting config is valid.
    
    env GOENV=badenv
    env GOOS=
    env GOARCH=
    env GOEXPERIMENT=
    
    ! go env
    stderr '^go(\.exe)?: unknown GOEXPERIMENT badexp$'
    
    go env -u GOEXPERIMENT
    
    ! go env
    stderr '^go: unsupported GOOS/GOARCH pair bados/badarch$'
    
    ! go env -u GOOS
    stderr '^go: unsupported GOOS/GOARCH pair \w+/badarch$'
    
    ! go env -u GOARCH
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 15 00:06:54 UTC 2021
    - 553 bytes
    - Viewed (0)
  8. src/go/printer/testdata/parser.go

    		// TODO determine a better range for BadExpr below
    		par.List = []*ast.Field{{Type: &ast.BadExpr{pos, pos}}}
    		return par
    	}
    
    	// recv type must be of the form ["*"] identifier
    	recv := par.List[0]
    	base := deref(recv.Type)
    	if _, isIdent := base.(*ast.Ident); !isIdent {
    		p.errorExpected(base.Pos(), "(unqualified) identifier")
    		par.List = []*ast.Field{{Type: &ast.BadExpr{recv.Pos(), recv.End()}}}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  9. src/runtime/ehooks_test.go

    			expected string
    			musthave []string
    		}{
    			{
    				mode:     "simple",
    				expected: "bar foo",
    			},
    			{
    				mode:     "goodexit",
    				expected: "orange apple",
    			},
    			{
    				mode:     "badexit",
    				expected: "blub blix",
    			},
    			{
    				mode: "panics",
    				musthave: []string{
    					"fatal error: exit hook invoked panic",
    					"main.testPanics",
    				},
    			},
    			{
    				mode: "callsexit",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/runtime/testdata/testexithooks/testexithooks.go

    	_ "unsafe"
    )
    
    var modeflag = flag.String("mode", "", "mode to run in")
    
    func main() {
    	flag.Parse()
    	switch *modeflag {
    	case "simple":
    		testSimple()
    	case "goodexit":
    		testGoodExit()
    	case "badexit":
    		testBadExit()
    	case "panics":
    		testPanics()
    	case "callsexit":
    		testHookCallsExit()
    	case "exit2":
    		testExit2()
    	default:
    		panic("unknown mode")
    	}
    }
    
    func testSimple() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top