Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testFoo (0.17 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/testing/testing.go

    		os.Exit(2)
    	}
    	if *testlog != "" {
    		// Note: Not using toOutputDir.
    		// This file is for use by cmd/go, not users.
    		var f *os.File
    		var err error
    		if m.numRun == 1 {
    			f, err = os.Create(*testlog)
    		} else {
    			f, err = os.OpenFile(*testlog, os.O_WRONLY, 0)
    			if err == nil {
    				f.Seek(0, io.SeekEnd)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/test/test.go

    	testlog, err := os.ReadFile(a.Objdir + "testlog.txt")
    	if err != nil || !bytes.HasPrefix(testlog, testlogMagic) || testlog[len(testlog)-1] != '\n' {
    		if cache.DebugTest {
    			if err != nil {
    				fmt.Fprintf(os.Stderr, "testcache: %s: reading testlog: %v\n", a.Package.ImportPath, err)
    			} else {
    				fmt.Fprintf(os.Stderr, "testcache: %s: reading testlog: malformed\n", a.Package.ImportPath)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  4. src/net/url/url_test.go

    	u1 := new(URL)
    	err = json.Unmarshal(js, u1)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if u1.String() != u.String() {
    		t.Errorf("json decoded to: %s\nwant: %s\n", u1, u)
    	}
    }
    
    func TestGob(t *testing.T) {
    	u, err := Parse("https://www.google.com/x?y=z")
    	if err != nil {
    		t.Fatal(err)
    	}
    	var w bytes.Buffer
    	err = gob.NewEncoder(&w).Encode(u)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top