Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for pkgFiles (0.21 sec)

  1. src/go/types/self_test.go

    	. "go/types"
    )
    
    func TestSelf(t *testing.T) {
    	testenv.MustHaveGoBuild(t) // The Go command is needed for the importer to determine the locations of stdlib .a files.
    
    	fset := token.NewFileSet()
    	files, err := pkgFiles(fset, ".")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	conf := Config{Importer: importer.Default()}
    	_, err = conf.Check("go/types", fset, files, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/self_test.go

    	"time"
    
    	. "cmd/compile/internal/types2"
    )
    
    func TestSelf(t *testing.T) {
    	testenv.MustHaveGoBuild(t) // The Go command is needed for the importer to determine the locations of stdlib .a files.
    
    	files, err := pkgFiles(".")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	conf := Config{Importer: defaultImporter()}
    	_, err = conf.Check("cmd/compile/internal/types2", files, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/cover/cfg_test.go

    		apkgfiles, errExpected)
    	want = "error reading pkgconfig file"
    	if !strings.Contains(errmsg, want) {
    		t.Errorf("'bad config file' test: wanted %s got %s", want, errmsg)
    	}
    
    	// Expect error on empty config file.
    	t.Logf("writing empty config")
    	writeFile(t, incfg, []byte("\n"))
    	_, _, errmsg = runPkgCover(t, instdira, tag, incfg, mode,
    		apkgfiles, errExpected)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/errorcalls_test.go

    // TestErrorCalls makes sure that check.errorf calls have at least
    // errorfMinArgCount arguments (otherwise we should use check.error)
    // and use balanced parentheses/brackets.
    func TestErrorCalls(t *testing.T) {
    	files, err := pkgFiles(".")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, file := range files {
    		syntax.Inspect(file, func(n syntax.Node) bool {
    			call, _ := n.(*syntax.CallExpr)
    			if call == nil {
    				return true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/go/types/errorcalls_test.go

    // errorfMinArgCount arguments (otherwise we should use check.error)
    // and use balanced parentheses/brackets.
    func TestErrorCalls(t *testing.T) {
    	fset := token.NewFileSet()
    	files, err := pkgFiles(fset, ".")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, file := range files {
    		ast.Inspect(file, func(n ast.Node) bool {
    			call, _ := n.(*ast.CallExpr)
    			if call == nil {
    				return true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/lookup_test.go

    // external API calls.
    func BenchmarkLookupFieldOrMethod(b *testing.B) {
    	// Choose an arbitrary, large package.
    	path := filepath.Join(runtime.GOROOT(), "src", "net", "http")
    
    	files, err := pkgFiles(path)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	conf := Config{
    		Importer: defaultImporter(),
    	}
    
    	pkg, err := conf.Check("http", files, nil)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 15:31:35 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  7. src/go/types/lookup_test.go

    // external API calls.
    func BenchmarkLookupFieldOrMethod(b *testing.B) {
    	// Choose an arbitrary, large package.
    	path := filepath.Join(runtime.GOROOT(), "src", "net", "http")
    
    	fset := token.NewFileSet()
    	files, err := pkgFiles(fset, path)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	conf := Config{
    		Importer: importer.Default(),
    	}
    
    	pkg, err := conf.Check("http", fset, files, nil)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 15:31:43 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/certs/util.go

    			Files: PKIFiles{
    				"front-proxy-client.crt": fpCert,
    				"front-proxy-client.key": fpKey,
    			},
    			ExpectError: true,
    		},
    	}
    }
    
    // PKIFiles are a list of files that should be created for a test case
    type PKIFiles map[string]interface{}
    
    // WritePKIFiles writes the given files out to the given directory
    func WritePKIFiles(t *testing.T, dir string, files PKIFiles) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/build_test.go

    		t.Skip("skipping: Chmod ignored ModeSetgid on " + runtime.GOOS)
    	}
    
    	pkgfile, err := os.CreateTemp("", "pkgfile")
    	if err != nil {
    		t.Fatalf("os.CreateTemp(\"\", \"pkgfile\"): %v", err)
    	}
    	defer os.Remove(pkgfile.Name())
    	defer pkgfile.Close()
    
    	dirGIDFile := filepath.Join(setgiddir, "setgid")
    	if err := sh.moveOrCopyFile(dirGIDFile, pkgfile.Name(), 0666, true); err != nil {
    		t.Fatalf("moveOrCopyFile: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top