Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testdata (0.2 sec)

  1. internal/s3select/select_test.go

    			},
    		},
    	}
    
    	for i, testCase := range testTable {
    		t.Run(fmt.Sprint(i), func(t *testing.T) {
    			testdataFile := "testdata/testdata.parquet"
    			file, err := os.Open(testdataFile)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			s3Select, err := NewS3Select(bytes.NewReader(testCase.requestXML))
    			if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K 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. cmd/test-utils_test.go

    		}
    		rec = httptest.NewRecorder()
    		apiRouter.ServeHTTP(rec, reqC)
    		checkRespErr(rec, http.StatusOK)
    	}
    }
    
    // unzip a file into a specific target dir - used to unzip sample data in cmd/testdata/
    func unzipArchive(zipFilePath, targetDir string) error {
    	zipReader, err := zip.OpenReader(zipFilePath)
    	if err != nil {
    		return err
    	}
    	for _, file := range zipReader.Reader.File {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. 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)
  5. src/bufio/bufio_test.go

    	}
    }
    
    func TestReadAfterLines(t *testing.T) {
    	line1 := "this is line1"
    	restData := "this is line2\nthis is line 3\n"
    	inbuf := bytes.NewReader([]byte(line1 + "\n" + restData))
    	outbuf := new(strings.Builder)
    	maxLineLength := len(line1) + len(restData)/2
    	l := NewReaderSize(inbuf, maxLineLength)
    	line, isPrefix, err := l.ReadLine()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
Back to top