Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pkgFiles (0.1 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/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)
  3. 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)
  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)
Back to top