Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/types2/stdlib_test.go

    		w.errh(err)
    		return
    	}
    
    	// apply pkgh to the files in directory dir
    
    	// Don't get test files as these packages are imported.
    	pkgFiles, err := pkgFilenames(dir, false)
    	if err != nil {
    		w.errh(err)
    		return
    	}
    	if pkgFiles != nil {
    		w.pkgh(dir, pkgFiles)
    	}
    
    	// traverse subdirectories, but don't walk into testdata
    	for _, f := range files {
    		if f.IsDir() && f.Name() != "testdata" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/go/types/stdlib_test.go

    		w.errh(err)
    		return
    	}
    
    	// apply pkgh to the files in directory dir
    
    	// Don't get test files as these packages are imported.
    	pkgFiles, err := pkgFilenames(dir, false)
    	if err != nil {
    		w.errh(err)
    		return
    	}
    	if pkgFiles != nil {
    		w.pkgh(dir, pkgFiles)
    	}
    
    	// traverse subdirectories, but don't walk into testdata
    	for _, f := range files {
    		if f.IsDir() && f.Name() != "testdata" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/certs/certs_test.go

    	publicKey := key.Public()
    
    	var tests = []struct {
    		name           string
    		files          certstestutil.PKIFiles
    		expectedErrors int
    	}{
    		{
    			name: "success",
    			files: certstestutil.PKIFiles{
    				"ca.crt":             caCert,
    				"ca.key":             caKey,
    				"front-proxy-ca.crt": caCert,
    				"front-proxy-ca.key": caKey,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. ci/devinfra/docker_windows/Dockerfile

        msys 'pacman --noconfirm -Syy flex gawk gcc-libs grep gzip inetutils info'; \
        msys 'pacman --noconfirm -Syy less lndir mintty ncurses pactoys-git patch'; \
        msys 'pacman --noconfirm -Syy pax-git pkgfile rebase sed tar tftp-hpa time tzcode util-linux which'; \
        $old_path = [Environment]::GetEnvironmentVariable(\"PATH\", \"Machine\"); \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 18 17:24:20 UTC 2023
    - 13.6K bytes
    - Viewed (0)
Back to top