Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 465 for SUCCEED (0.12 sec)

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

    symlink $WORK/tmp/symdir1 -> $WORK/tmp/gopath/src/dir1
    env GOPATH=$WORK/tmp/gopath
    cd $WORK/tmp/symdir1
    
    go list -f '{{.Root}}' .
    stdout '^'$WORK/tmp/gopath'$'
    
    # All of these should succeed, not die in vendor-handling code.
    go run p.go &
    go build &
    go install &
    
    wait
    
    -- p.go --
    package main
    
    import _ `v`
    
    func main () {}
    -- v.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 511 bytes
    - Viewed (0)
  2. src/compress/flate/flate_test.go

    		t.Fatalf("Given sequence of bits is bad, and should not succeed.")
    	}
    }
    
    // The following test should not panic.
    func TestIssue5962(t *testing.T) {
    	bits := []int{4, 0, 0, 6, 4, 3, 2, 3, 3, 4, 4, 5, 0, 0, 0, 0,
    		5, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11}
    	var h huffmanDecoder
    	if h.init(bits) {
    		t.Fatalf("Given sequence of bits is bad, and should not succeed.")
    	}
    }
    
    // The following test should not panic.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 11K bytes
    - Viewed (1)
  3. src/cmd/go/testdata/script/devnull.txt

    cd x
    cmp $devnull $WORK/empty.txt
    go test -o=$devnull -c
    ! exists x.test$GOEXE
    cmp $devnull $WORK/empty.txt
    
    # Issue 12407: go build -o /dev/null should succeed.
    cd ..
    go build -o $devnull y
    cmp $devnull $WORK/empty.txt
    
    -- x/x_test.go --
    package x_test
    import (
        "testing"
    )
    func TestNUL(t *testing.T) {
    }
    -- y/y.go --
    package y
    func main() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 18 19:03:27 UTC 2019
    - 525 bytes
    - Viewed (0)
  4. internal/ioutil/ioutil_test.go

    	n, err := w.Write([]byte("abcd"))
    	w.Close()
    	if err != nil {
    		t.Errorf("DeadlineWriter should succeed but failed with %s", err)
    	}
    	if n != 4 {
    		t.Errorf("DeadlineWriter should succeed but should have only written 4 bytes, but returned %d instead", n)
    	}
    }
    
    func TestCloseOnWriter(t *testing.T) {
    	writer := WriteOnClose(io.Discard)
    	if writer.HasWritten() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/os/wait_wait6.go

    //go:build dragonfly || freebsd || netbsd
    
    package os
    
    import (
    	"runtime"
    	"syscall"
    )
    
    // blockUntilWaitable attempts to block until a call to p.Wait will
    // succeed immediately, and reports whether it has done so.
    // It does not actually call p.Wait.
    func (p *Process) blockUntilWaitable() (bool, error) {
    	var errno syscall.Errno
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 21:25:45 UTC 2022
    - 781 bytes
    - Viewed (0)
  6. test/typeparam/issue39755.go

    	~map[string]string | ~[]struct{ key, value string }
    }
    
    type PathParams[T PathParamsConstraint] struct {
    	t T
    }
    
    func (pp *PathParams[T]) IsNil() bool {
    	return pp.t == nil // this must succeed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 593 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_outside.txt

    # 'go build' of source files should succeed if they do not import anything outside std.
    go build -n -o ignore ./stdonly/stdonly.go
    
    # 'go build' should succeed for standard-library packages.
    go build -n fmt
    
    # 'go build' should use the latest version of the Go language.
    go build ./newgo/newgo.go
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 18 15:34:40 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/old_tidy_toolchain.txt

    # Commands in an old module with no go line and no toolchain line,
    # or with only a go line, should succeed.
    # (They should not fail due to the go.mod not being tidy.)
    
    # No go line, no toolchain line.
    go list
    
    # Old go line, no toolchain line.
    go mod edit -go=1.16
    go list
    
    go mod edit -go=1.20
    go list
    
    # New go line, no toolchain line, using same toolchain.
    env TESTGO_VERSION=1.21
    go mod edit -go=1.21
    go list
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 19:11:44 UTC 2023
    - 615 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/list_symlink_internal.txt

    symlink $WORK/tmp/symdir1 -> $WORK/tmp/gopath/src/dir1
    env GOPATH=$WORK/tmp/gopath
    cd $WORK/tmp/symdir1
    go list -f '{{.Root}}' .
    stdout '^'$WORK/tmp/gopath'$'
    
    # All of these should succeed, not die in internal-handling code.
    go run p.go &
    go build &
    go install &
    
    wait
    
    -- p.go --
    package main
    
    import _ `dir1/internal/v`
    
    func main() {}
    -- v.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 529 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_vendor_redundant_requirement.txt

    # 'go list -mod=vendor' should succeed even when go.mod contains redundant
    # requirements. Verifies #47565.
    go list -mod=vendor
    
    -- go.mod --
    module m
    
    go 1.17
    
    require example.com/m v0.0.0
    require example.com/m v0.0.0
    
    replace example.com/m v0.0.0 => ./m
    -- m/go.mod --
    module example.com/m
    
    go 1.17
    -- m/m.go --
    package m
    -- use.go --
    package use
    
    import _ "example.com/m"
    -- vendor/example.com/m/m.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 09 20:06:35 UTC 2021
    - 507 bytes
    - Viewed (0)
Back to top