Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for TestGO (0.12 sec)

  1. src/cmd/go/go_test.go

    func skipIfGccgo(t *testing.T, msg string) {
    	if runtime.Compiler == "gccgo" {
    		t.Skipf("skipping test not supported on gccgo: %s", msg)
    	}
    }
    
    // testgo sets up for a test that runs testgo.
    func testgo(t *testing.T) *testgoData {
    	t.Helper()
    	testenv.MustHaveGoBuild(t)
    	testenv.SkipIfShortAndSlow(t)
    
    	return &testgoData{t: t}
    }
    
    // must gives a fatal error if err is not nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  2. src/cmd/go/go_boring_test.go

    // license that can be found in the LICENSE file.
    
    //go:build boringcrypto
    
    package main_test
    
    import "testing"
    
    func TestBoringInternalLink(t *testing.T) {
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    	tg.tempFile("main.go", `package main
    		import "crypto/sha1"
    		func main() {
    			sha1.New()
    		}`)
    	tg.run("build", "-ldflags=-w -extld=false", tg.path("main.go"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:22 UTC 2022
    - 544 bytes
    - Viewed (0)
  3. src/cmd/go/go_windows_test.go

    package main_test
    
    import (
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    
    	"cmd/go/internal/robustio"
    )
    
    func TestAbsolutePath(t *testing.T) {
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    
    	tmp, err := os.MkdirTemp("", "TestAbsolutePath")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer robustio.RemoveAll(tmp)
    
    	file := filepath.Join(tmp, "a.go")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:26 UTC 2022
    - 1K bytes
    - Viewed (0)
  4. src/cmd/go/go_unix_test.go

    	"testing"
    )
    
    func TestGoBuildUmask(t *testing.T) {
    	// Do not use tg.parallel; avoid other tests seeing umask manipulation.
    	mask := syscall.Umask(0077) // prohibit low bits
    	defer syscall.Umask(mask)
    
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.tempFile("x.go", `package main; func main() {}`)
    
    	// We have set a umask, but if the parent directory happens to have a default
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/mod/rsc.io_quote_v1.2.0.txt

    }
    
    func TestGlass(t *testing.T) {
    	glass := "I can eat glass and it doesn't hurt me."
    	if out := Glass(); out != glass {
    		t.Errorf("Glass() = %q, want %q", out, glass)
    	}
    }
    
    // Go returns a Go proverb.
    func TestGo(t *testing.T) {
    	go1 := "Don't communicate by sharing memory. Share memory by communicating."
    	if out := Go(); out != go1 {
    		t.Errorf("Go() = %q, want %q", out, go1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  6. src/cmd/go/help_test.go

    	if !*fixDocs {
    		t.Parallel()
    	}
    
    	// We run 'go help documentation' as a subprocess instead of
    	// calling help.Help directly because it may be sensitive to
    	// init-time configuration
    	cmd := testenv.Command(t, testGo, "help", "documentation")
    	// Unset GO111MODULE so that the 'go get' section matches
    	// the default 'go get' implementation.
    	cmd.Env = append(cmd.Environ(), "GO111MODULE=")
    	cmd.Stderr = new(strings.Builder)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 28 15:45:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/mod/not-rsc.io_quote_v0.1.0-nomod.txt

    	}
    }
    
    func TestGlass(t *testing.T) {
    	glass := "I can eat glass and it doesn't hurt me."
    	if out := Glass(); out != glass {
    		t.Errorf("Glass() = %q, want %q", out, glass)
    	}
    }
    
    func TestGo(t *testing.T) {
    	go1 := "Don't communicate by sharing memory. Share memory by communicating."
    	if out := Go(); out != go1 {
    		t.Errorf("Go() = %q, want %q", out, go1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 24 17:40:35 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/mod/rsc.io_quote_v1.2.1.txt

    	}
    }
    
    func TestGlass(t *testing.T) {
    	glass := "I can eat glass and it doesn't hurt me."
    	if out := Glass(); out != glass {
    		t.Errorf("Glass() = %q, want %q", out, glass)
    	}
    }
    
    func TestGo(t *testing.T) {
    	go1 := "Don't communicate by sharing memory, share memory by communicating."
    	if out := Go(); out != go1 {
    		t.Errorf("Go() = %q, want %q", out, go1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/mod/rsc.io_quote_v0.0.0-20180214005133-e7a685a342c0.txt

    	}
    }
    
    func TestGlass(t *testing.T) {
    	glass := "I can eat glass and it doesn't hurt me."
    	if out := Glass(); out != glass {
    		t.Errorf("Glass() = %q, want %q", out, glass)
    	}
    }
    
    func TestGo(t *testing.T) {
    	go1 := "Don't communicate by sharing memory. Share memory by communicating."
    	if out := Go(); out != go1 {
    		t.Errorf("Go() = %q, want %q", out, go1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/mod/rsc.io_!q!u!o!t!e_v1.5.2.txt

    	}
    }
    
    func TestGLASS(t *testing.T) {
    	glass := "I CAN EAT GLASS AND IT DOESN'T HURT ME."
    	if out := GLASS(); out != glass {
    		t.Errorf("GLASS() = %q, want %q", out, glass)
    	}
    }
    
    func TestGO(t *testing.T) {
    	go1 := "DON'T COMMUNICATE BY SHARING MEMORY, SHARE MEMORY BY COMMUNICATING."
    	if out := GO(); out != go1 {
    		t.Errorf("GO() = %q, want %q", out, go1)
    	}
    }
    
    func TestOPT(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 20 15:30:21 UTC 2018
    - 1.8K bytes
    - Viewed (0)
Back to top