25)
26
27▶func TestReader(t *testing.T) {
28 vectors := []struct {
29 file string // Test input file
· · ·
633
634 for _, v := range vectors {
635▶ t.Run(strings.TrimSuffix(path.Base(v.file), ".base64"), func(t *testing.T) {
636 path := v.file
637 if v.obscured {
· · ·
712}
713
714▶func TestPartialRead(t *testing.T) {
715 type testCase struct {
716 cnt int // Number of bytes to read
· · ·
738
739 for _, v := range vectors {
740▶ t.Run(path.Base(v.file), func(t *testing.T) {
741 f, err := os.Open(v.file)
742 if err != nil {
· · ·
767}
768
769▶func TestUninitializedRead(t *testing.T) {
770 f, err := os.Open("testdata/gnu.tar")
771 if err != nil {
+ 56 more matches in this file