Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for openTestFile (0.08 sec)

  1. internal/s3select/csv/reader_contrib_test.go

    		}
    
    		if result.String() != c.content {
    			t.Errorf("Case %d failed: expected %v result %v", i, c.content, result.String())
    		}
    	}
    }
    
    type tester interface {
    	Fatal(...interface{})
    }
    
    func openTestFile(t tester, file string) []byte {
    	f, err := os.ReadFile("testdata/testdata.zip")
    	if err != nil {
    		t.Fatal(err)
    	}
    	z, err := zip.NewReader(bytes.NewReader(f), int64(len(f)))
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
Back to top