Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 232 for shop (0.09 sec)

  1. src/cmd/internal/test2json/test2json_test.go

    	fail := func() {
    		var buf bytes.Buffer
    		show := func(i int, lines []string) {
    			for k := -2; k < 5; k++ {
    				marker := ""
    				if k == 0 {
    					marker = "» "
    				}
    				if 0 <= i+k && i+k < len(lines) {
    					fmt.Fprintf(&buf, "\t%s%s\n", marker, lines[i+k])
    				}
    			}
    			if i >= len(lines) {
    				// show marker after end of input
    				fmt.Fprintf(&buf, "\t» \n")
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_trimpath_goroot.txt

    [trimpath] env GOROOT=
    [trimpath] ! go env GOROOT
    [trimpath] stderr '^go: cannot find GOROOT directory: ''go'' binary is trimmed and GOROOT is not set$'
    [trimpath] env GOROOT=$TESTGO_GOROOT
    
    [short] stop
    
    # With GOROOT still set, 'go build' and 'go test -c'
    # should cause runtime.GOROOT() to report either the correct GOROOT
    # (without -trimpath) or no GOROOT at all (with -trimpath).
    
    go build -o example.exe .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cover_modes.txt

    ! stderr '[^0-9]0\.0%'
    ! stdout '[^0-9]0\.0%'
    
    grep -count=1 '^mode: set$' $WORK/cover.out
    grep 'errors\.go' $WORK/cover.out
    grep 'binary\.go' $WORK/cover.out
    
    [!race] stop
    
    go test -short -race -cover encoding/binary errors -coverprofile=$WORK/cover.out
    ! stderr '[^0-9]0\.0%'
    ! stdout '[^0-9]0\.0%'
    
    grep -count=1 '^mode: atomic$' $WORK/cover.out
    grep 'errors\.go' $WORK/cover.out
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 678 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/get_issue53955.txt

    # GIT_CONFIG_GLOBAL suffices for git 2.32.0 and newer.
    # For older git versions we also set $HOME.
    env GIT_CONFIG_GLOBAL=$WORK${/}home${/}gopher${/}.gitconfig
    env HOME=$WORK${/}home${/}gopher
    exec git config --global --show-origin user.name
    stdout 'Go Gopher'
    
    # Inject a local repo in place of a remote one, so that we can
    # add commits to the repo partway through the test.
    env GIT_ALLOW_PROTOCOL=file
    env GOPRIVATE=github.com/golang/issue53955
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 16:37:00 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/version_cshared.txt

    [short] skip
    [!cgo] skip '-buildmode=c-shared requires external linking'
    [!buildmode:c-shared] stop
    
    env GO111MODULE=on
    
    go get rsc.io/fortune
    go build -buildmode=c-shared -o external.so rsc.io/fortune
    go version external.so
    stdout '^external.so: .+'
    go version -m external.so
    stdout '^\tpath\trsc.io/fortune'
    stdout '^\tmod\trsc.io/fortune\tv1.0.0'
    
    -- go.mod --
    module m
    
    -- empty.go --
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 14:52:04 UTC 2024
    - 416 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testsanitizers/testdata/msan_fail.go

      int32_t * volatile q = (int32_t *)malloc(sizeof(int32_t) * n);
      memcpy(p, q, n * sizeof(*p));
      free(q);
    }
    
    void g(int32_t *p, int n) {
      if (p[4] != 1) {
        // We shouldn't get here; msan should stop us first.
        exit(0);
      }
    }
    */
    import "C"
    
    import (
    	"unsafe"
    )
    
    func main() {
    	a := make([]int32, 10)
    	C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a)))
    	a[3] = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 701 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_proxy_https.txt

    env GO111MODULE=on
    
    # GOPROXY file paths must provide the "file://" prefix explicitly.
    env GOPROXY=$WORK/proxydir
    ! go list -versions -m golang.org/x/text
    stderr 'invalid proxy URL.*proxydir'
    
    [!net:proxy.golang.org] stop
    
    # GOPROXY HTTPS paths may elide the "https://" prefix.
    # (See golang.org/issue/32191.)
    env GOPROXY=proxy.golang.org
    env GOSUMDB=
    go list -versions -m golang.org/x/text
    
    -- go.mod --
    module example.com
    go 1.13
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 492 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testsanitizers/testdata/asan4_fail.go

    package main
    
    /*
    #include <stdlib.h>
    #include <stdio.h>
    
    void test(int* a) {
    	// Access Go pointer out of bounds.
    	a[3] = 300;          // BOOM
    	// We shouldn't get here; asan should stop us first.
    	printf("a[3]=%d\n", a[3]);
    }*/
    import "C"
    
    func main() {
    	var cIntArray [2]C.int
    	C.test(&cIntArray[0]) // cIntArray is moved to heap.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 496 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/vcstest/git/issue47650.txt

    git init
    
    at 2021-08-11T13:52:00-04:00
    git add cmd
    git commit -m 'add cmd/issue47650'
    git branch -m main
    git tag v0.1.0
    
    git add go.mod
    git commit -m 'add go.mod'
    
    git show-ref --tags --heads
    cmp stdout .git-refs
    
    git log --oneline --decorate=short
    cmp stdout .git-log
    
    -- .git-refs --
    21535ef346c3e79fd09edd75bd4725f06c828e43 refs/heads/main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 12 16:13:43 UTC 2023
    - 845 bytes
    - Viewed (0)
  10. src/cmd/go/internal/lockedfile/lockedfile_test.go

    	go func() {
    		f()
    		close(done)
    	}()
    
    	timer := time.NewTimer(quiescent)
    	defer timer.Stop()
    	select {
    	case <-done:
    		t.Fatalf("%s unexpectedly did not block", desc)
    	case <-timer.C:
    	}
    
    	return func(t *testing.T) {
    		logTimer := time.NewTimer(quiescent)
    		defer logTimer.Stop()
    
    		select {
    		case <-logTimer.C:
    			// We expect the operation to have unblocked by now,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top