Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testChain (0.41 sec)

  1. src/cmd/go/internal/load/pkg.go

    		return nil
    	}
    
    	// The generated 'testmain' package is allowed to access testing/internal/...,
    	// as if it were generated into the testing directory tree
    	// (it's actually in a temporary directory outside any Go tree).
    	// This cleans up a former kludge in passing functionality to the testing package.
    	if str.HasPathPrefix(p.ImportPath, "testing/internal") && importerPath == "testmain" {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    // allowed to install a.Target.
    //
    // The build of cmd/go running under its own test is forbidden from installing
    // to its original GOROOT. The var is exported so it can be set by TestMain.
    var AllowInstall = func(*Action) error { return nil }
    
    // cleanup removes a's object dir to keep the amount of
    // on-disk garbage down in a large build. On an operating system
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    		t.Errorf("mbig.MapIndex(\"hello\") for nil map = %v, want Invalid Value", x)
    	}
    
    	// Test that deletes from a nil map succeed.
    	mv.SetMapIndex(ValueOf("hi"), Value{})
    }
    
    func TestChan(t *testing.T) {
    	for loop := 0; loop < 2; loop++ {
    		var c chan int
    		var cv Value
    
    		// check both ways to allocate channels
    		switch loop {
    		case 1:
    			c = make(chan int, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top