Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 952 for STDOUT (2.44 sec)

  1. src/cmd/go/terminal_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		defer w.Close()
    		stdout, stderr := runTerminalPassthrough(t, r, w)
    		if !stdout {
    			t.Errorf("stdout is not a terminal")
    		}
    		if !stderr {
    			t.Errorf("stderr is not a terminal")
    		}
    	})
    }
    
    func runTerminalPassthrough(t *testing.T, r, w *os.File) (stdout, stderr bool) {
    	cmd := testenv.Command(t, testGo, "test", "-run=^$")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 18:18:50 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_flags.txt

    go test -v -x ./x -timeout 24h -boolflag=true foo -timeout 25h
    stdout 'args: foo -timeout 25h'
    stdout 'timeout: 24h0m0s$'  # -timeout is unambiguously not a flag, so the real flag wins.
    
    go test -v -x ./x -timeout 24h -boolflag foo -timeout 25h
    stdout 'args: foo -test\.timeout=25h0m0s'  # For legacy reasons, '-timeout ' is erroneously rewritten to -test.timeout; see https://golang.org/issue/40763.
    stdout 'timeout: 24h0m0s$'  # Actual flag wins.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cover_runs.txt

    [short] skip
    
    go test -short -coverpkg=strings strings regexp
    ! stdout '[^0-9]0\.0%'
    stdout  'strings.*coverage:.*[1-9][0-9.]+%'
    stdout  'regexp.*coverage:.*[1-9][0-9.]+%'
    
    go test -short -cover strings math regexp
    ! stdout '[^0-9]0\.0%'
    stdout  'strings.*coverage:.*[1-9][0-9.]+%'
    stdout  'math.*coverage:.*[1-9][0-9.]+%'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 413 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/work_env.txt

    go env GOWORK
    stdout '^'$GOPATH'[\\/]src[\\/]go.work$'
    go env
    stdout '^(set )?GOWORK=''?'$GOPATH'[\\/]src[\\/]go.work''?$'
    
    cd ..
    go env GOWORK
    ! stdout .
    go env
    stdout 'GOWORK=("")?'
    
    cd src
    go env GOWORK
    stdout 'go.work'
    
    env GOWORK='off'
    go env GOWORK
    stdout 'off'
    
    ! go env -w GOWORK=off
    stderr '^go: GOWORK cannot be modified$'
    
    -- go.work --
    go 1.18
    
    use a
    -- a/go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 14:28:38 UTC 2023
    - 399 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/build_cwd_newline.txt

    go run .
    ! stdout panic
    ! stderr panic
    stderr '^ok$'
    
    [cgo] go run main.go
    [!cgo] go run main_nocgo.go
    ! stdout panic
    ! stderr panic
    stderr '^ok$'
    
    go test -v
    ! stdout panic
    ! stderr panic
    stdout '^ok$'  # 'go test' combines the test's stdout into stderr
    
    go test -v .
    ! stdout panic
    ! stderr panic
    stdout '^ok$'  # 'go test' combines the test's stdout into stderr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/generate_invalid.txt

    go generate ./nopkg
    stdout 'Success a'
    ! stdout 'Fail'
    
    # Test go generate for package with inconsistent package clauses
    # $GOPACKAGE should depend on each file's package clause
    go generate ./inconsistent
    stdout 'Success a'
    stdout 'Success b'
    stdout -count=2 'Success c'
    ! stdout 'Fail'
    
    # Test go generate for syntax errors before and after package clauses
    go generate ./syntax
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:48:44 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/version_buildvcs_git.txt

    cd a
    go install
    go version -m $GOBIN/a$GOEXE
    stdout '^\tbuild\tvcs=git$'
    stdout '^\tbuild\tvcs.modified=true$'
    ! stdout vcs.revision
    ! stdout vcs.time
    rm $GOBIN/a$GOEXE
    
    # Revision and commit time are tagged for repositories with commits.
    exec git add -A
    exec git commit -m 'initial commit'
    go install
    go version -m $GOBIN/a$GOEXE
    stdout '^\tbuild\tvcs.revision='
    stdout '^\tbuild\tvcs.time='
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_graph_version.txt

    # the main module).
    
    cp go.mod go.mod.orig
    
    go mod graph
    cp stdout graph-1.17.txt
    stdout '^example\.com/m example\.com/retract/incompatible@v1\.0\.0$'
    stdout '^example\.net/lazy@v0\.1\.0 example\.com/retract/incompatible@v1\.0\.0$'
    ! stdout 'example\.com/retract/incompatible@v2\.0\.0\+incompatible'
    
    go mod graph -go=1.17
    cmp stdout graph-1.17.txt
    
    cmp go.mod go.mod.orig
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 21:10:42 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_get_pseudo.txt

    go get ...test@d7ae1e4
    go list -m all
    stdout '^github.com/rsc/legacytest v2\.0\.0\+incompatible$'
    
    # v1.2.1-0.pseudo
    go get ...test@d2d4c3e
    go list -m all
    stdout '^github.com/rsc/legacytest v1\.2\.1-0\.\d{14}-d2d4c3ea6623$'
    
    # v1.2.0
    go get ...test@9f6f860
    go list -m all
    stdout '^github.com/rsc/legacytest v1\.2\.0$'
    
    # v1.1.0-pre.0.pseudo
    go get ...test@fb3c628
    go list -m all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/help.txt

    # go help shows overview.
    go help
    stdout 'Go is a tool'
    stdout 'bug.*start a bug report'
    
    # go help bug shows usage for bug
    go help bug
    stdout 'usage: go bug'
    stdout 'bug report'
    
    # go bug help is an error (bug takes no arguments)
    ! go bug help
    stderr 'bug takes no arguments'
    
    # go help mod shows mod subcommands
    go help mod
    stdout 'go mod <command>'
    stdout tidy
    
    # go help mod tidy explains tidy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 14:41:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top