Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for pkgFiles (0.15 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. 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)
  5. 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