MCPcopy Create free account
hub / github.com/bodgit/sevenzip / TestOpenReader

Function TestOpenReader

reader_test.go:94–253  ·  view source on GitHub ↗

nolint:funlen

(t *testing.T)

Source from the content-addressed store, hash-verified

92
93//nolint:funlen
94func TestOpenReader(t *testing.T) {
95 t.Parallel()
96
97 tables := []struct {
98 name, file string
99 volumes []string
100 err error
101 }{
102 {
103 name: testNoHeaderCompression,
104 file: testT07z,
105 },
106 {
107 name: "with header compression",
108 file: "t1.7z",
109 },
110 {
111 name: "multiple volume",
112 file: "multi.7z.001",
113 volumes: []string{
114 "multi.7z.001",
115 "multi.7z.002",
116 "multi.7z.003",
117 "multi.7z.004",
118 "multi.7z.005",
119 "multi.7z.006",
120 },
121 },
122 {
123 name: "empty streams and files",
124 file: "empty.7z",
125 },
126 {
127 name: "empty2",
128 file: "empty2.7z",
129 },
130 {
131 name: "bcj2",
132 file: "bcj2.7z",
133 },
134 {
135 name: "bzip2",
136 file: "bzip2.7z",
137 },
138 {
139 name: "copy",
140 file: "copy.7z",
141 },
142 {
143 name: "deflate",
144 file: "deflate.7z",
145 },
146 {
147 name: "delta",
148 file: "delta.7z",
149 },
150 {
151 name: "lzma",

Callers

nothing calls this directly

Calls 4

OpenReaderFunction · 0.92
extractArchiveFunction · 0.85
VolumesMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…