Home | History | Annotate | Download | only in tar

Lines Matching refs:Header

302 	hdr := &Header{
327 t.Errorf("Header mismatch.\n got %+v\nwant %+v", rHdr, hdr)
339 h *Header
346 h: &Header{
356 h: &Header{
366 h: &Header{
376 h: &Header{
386 h: &Header{
396 h: &Header{
406 h: &Header{
416 h: &Header{
426 h: &Header{
436 h: &Header{
447 h: &Header{
515 if sysh, ok := fi.Sys().(*Header); !ok || sysh != v.h {
516 t.Errorf("i=%d: Sys didn't return original *Header", i)
523 header *Header // Input header
525 formats Format // Expected formats that can encode the header
527 header: &Header{},
530 header: &Header{Size: 077777777777},
533 header: &Header{Size: 077777777777, Format: FormatUSTAR},
536 header: &Header{Size: 077777777777, Format: FormatPAX},
539 header: &Header{Size: 077777777777, Format: FormatGNU},
542 header: &Header{Size: 077777777777 + 1},
546 header: &Header{Size: 077777777777 + 1, Format: FormatPAX},
550 header: &Header{Size: 077777777777 + 1, Format: FormatGNU},
554 header: &Header{Mode: 07777777},
557 header: &Header{Mode: 07777777 + 1},
560 header: &Header{Devmajor: -123},
563 header: &Header{Devmajor: 1<<56 - 1},
566 header: &Header{Devmajor: 1 << 56},
569 header: &Header{Devmajor: -1 << 56},
572 header: &Header{Devmajor: -1<<56 - 1},
575 header: &Header{Name: "???", Devmajor: -1 << 56},
578 header: &Header{Size: math.MaxInt64},
582 header: &Header{Size: math.MinInt64},
586 header: &Header{Uname: "0123456789abcdef0123456789abcdef"},
589 header: &Header{Uname: "0123456789abcdef0123456789abcdefx"},
593 header: &Header{Name: "foobar"},
596 header: &Header{Name: strings.Repeat("a", nameSize)},
599 header: &Header{Name: strings.Repeat("a", nameSize+1)},
603 header: &Header{Linkname: "???"},
607 header: &Header{Linkname: strings.Repeat("???\x00", nameSize)},
611 header: &Header{Linkname: "\x00hello"},
615 header: &Header{Uid: 07777777},
618 header: &Header{Uid: 07777777 + 1},
622 header: &Header{Xattrs: nil},
625 header: &Header{Xattrs: map[string]string{"foo": "bar"}},
629 header: &Header{Xattrs: map[string]string{"foo": "bar"}, Format: FormatGNU},
633 header: &Header{Xattrs: map[string]string{"???": "\x00hello"}},
637 header: &Header{Xattrs: map[string]string{"foo=bar": "baz"}},
640 header: &Header{Xattrs: map[string]string{"foo": ""}},
644 header: &Header{ModTime: time.Unix(0, 0)},
647 header: &Header{ModTime: time.Unix(077777777777, 0)},
650 header: &Header{ModTime: time.Unix(077777777777+1, 0)},
654 header: &Header{ModTime: time.Unix(math.MaxInt64, 0)},
658 header: &Header{ModTime: time.Unix(math.MaxInt64, 0), Format: FormatUSTAR},
662 header: &Header{ModTime: time.Unix(-1, 0)},
666 header: &Header{ModTime: time.Unix(1, 500)},
670 header: &Header{ModTime: time.Unix(1, 0)},
673 header: &Header{ModTime: time.Unix(1, 0), Format: FormatPAX},
676 header: &Header{ModTime: time.Unix(1, 500), Format: FormatUSTAR},
680 header: &Header{ModTime: time.Unix(1, 500), Format: FormatPAX},
684 header: &Header{ModTime: time.Unix(1, 500), Format: FormatGNU},
688 header: &Header{ModTime: time.Unix(-1, 500)},
692 header: &Header{ModTime: time.Unix(-1, 500), Format: FormatGNU},
696 header: &Header{AccessTime: time.Unix(0, 0)},
700 header: &Header{AccessTime: time.Unix(0, 0), Format: FormatUSTAR},
704 header: &Header{AccessTime: time.Unix(0, 0), Format: FormatPAX},
708 header: &Header{AccessTime: time.Unix(0, 0), Format: FormatGNU},
712 header: &Header{AccessTime: time.Unix(-123, 0)},
716 header: &Header{AccessTime: time.Unix(-123, 0), Format: FormatPAX},
720 header: &Header{ChangeTime: time.Unix(123, 456)},
724 header: &Header{ChangeTime: time.Unix(123, 456), Format: FormatUSTAR},
728 header: &Header{ChangeTime: time.Unix(123, 456), Format: FormatGNU},
732 header: &Header{ChangeTime: time.Unix(123, 456), Format: FormatPAX},
736 header: &Header{Name: "foo/", Typeflag: TypeDir},
739 header: &Header{Name: "foo/", Typeflag: TypeReg},
742 header: &Header{Name: "foo/", Typeflag: TypeSymlink},
747 formats, paxHdrs, err := v.header.allowedFormats()
765 hdr *Header
775 &Header{Name: "bar", Mode: 0640, Size: int64(3)},
778 &Header{Name: "world", Mode: 0640, Size: int64(5)},
784 &Header{Name: "bar", Mode: 0640, Size: int64(3), Devmajor: -1},
787 &Header{Name: "world", Mode: 0640, Size: int64(5), Devmajor: -1},
793 &Header{Name: "bar", Mode: 0640, Size: int64(3), Xattrs: map[string]string{"foo": "bar"}},
796 &Header{Name: "world", Mode: 0640, Size: int64(5), Xattrs: map[string]string{"foo": "bar"}},