Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 55 of 55 for testFatal (0.31 sec)

  1. src/cmd/api/api_test.go

    	}
    
    	testenv.MustHaveGoBuild(t)
    
    	td, err := os.Open("testdata/src/pkg")
    	if err != nil {
    		t.Fatal(err)
    	}
    	fis, err := td.Readdir(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, fi := range fis {
    		if !fi.IsDir() {
    			continue
    		}
    
    		// TODO(gri) remove extra pkg directory eventually
    		goldenFile := filepath.Join("testdata", "src", "pkg", fi.Name(), "golden.txt")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    		file    string
    		want    []string
    		wantErr bool
    	}{
    		{
    			file: "testdata/unix.zip",
    			want: []string{".", "dir", "dir/bar", "dir/empty", "hello", "readonly"},
    		},
    		{
    			file: "testdata/subdir.zip",
    			want: []string{".", "a", "a/b", "a/b/c"},
    		},
    		{
    			file:    "testdata/dupdir.zip",
    			wantErr: true,
    		},
    	} {
    		test := test
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    	expectedString string // String output is expected to contain
    
    	wantException bool
    }
    
    // Tests Pilot /debug
    func TestDescribe(t *testing.T) {
    	productPageConfigPath := "testdata/describe/http_config.json"
    	config, err := os.ReadFile(productPageConfigPath)
    	if err != nil {
    		t.Fatalf("failed to read %s: %v", productPageConfigPath, err)
    	}
    	cases := []execAndK8sConfigTestCase{
    		{ // case 0
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. cni/test/install_k8s_test.go

    	delayedConfFile        string
    	expectedOutputFile     string
    	expectedPostCleanFile  string
    	cniConfDirOrderedFiles []string
    }
    
    func TestInstall(t *testing.T) {
    	testDataDir := env.IstioSrc + "/cni/test/testdata"
    	cases := []testCase{
    		{
    			name:                   "File with pre-plugins--.conflist",
    			chainedCNIPlugin:       true,
    			preConfFile:            "00-calico.conflist",
    			resultFileName:         "00-calico.conflist",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jul 27 18:01:48 GMT 2022
    - 8K bytes
    - Viewed (0)
  5. cmd/xl-storage_test.go

    	// create xlStorage test setup
    	xlStorage, _, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to cfgreate xlStorage test setup, %s", err)
    	}
    
    	xlMeta, _ := os.ReadFile("testdata/xl.meta")
    	fi, _ := getFileInfo(xlMeta, "exists", "as-file", "", false, true)
    
    	// Create files for the test cases.
    	if err = xlStorage.MakeVol(context.Background(), "exists"); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top