24)
25
26▶func bytediff(a, b []byte) string {
27 const (
28 uniqueA = "- "
· · ·
53}
54
55▶func TestWriter(t *testing.T) {
56 type (
57 testHeader struct { // WriteHeader(hdr) == wantErr
· · ·
480 }}
481
482▶ equalError := func(x, y error) bool {
483 _, ok1 := x.(headerError)
484 _, ok2 := y.(headerError)
· · ·
489 }
490 for _, v := range vectors {
491▶ t.Run(strings.TrimSuffix(path.Base(v.file), ".base64"), func(t *testing.T) {
492 const maxSize = 10 << 10 // 10KiB
493 buf := new(bytes.Buffer)
· · ·
550}
551
552▶func TestPax(t *testing.T) {
553 // Create an archive with a large name
554 fileinfo, err := os.Stat("testdata/small.txt")
+ 71 more matches in this file