Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testFoo (0.18 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/regexp/testdata/testregex.c

    				case '?':
    					test |= TEST_VERIFY;
    					test &= ~(TEST_AND|TEST_OR);
    					state.verify = state.passed;
    					continue;
    				case '&':
    					test |= TEST_VERIFY|TEST_AND;
    					test &= ~TEST_OR;
    					continue;
    				case '|':
    					test |= TEST_VERIFY|TEST_OR;
    					test &= ~TEST_AND;
    					continue;
    				case ';':
    					test |= TEST_OR;
    					test &= ~TEST_AND;
    					continue;
    
    				case '{':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/math/all_test.go

    		if f := Copysign(vfcopysignSC[i], -1); !alike(copysignSC[i], f) {
    			t.Errorf("Copysign(%g, -1) = %g, want %g", vfcopysignSC[i], f, copysignSC[i])
    		}
    	}
    }
    
    func TestCos(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		if f := Cos(vf[i]); !veryclose(cos[i], f) {
    			t.Errorf("Cos(%g) = %g, want %g", vf[i], f, cos[i])
    		}
    	}
    	for i := 0; i < len(vfcosSC); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
Back to top