MCPcopy
hub / github.com/wagoodman/dive / TestLoadArchive

Function TestLoadArchive

dive/image/docker/testing.go:10–18  ·  view source on GitHub ↗
(tarPath string)

Source from the content-addressed store, hash-verified

8)
9
10func TestLoadArchive(tarPath string) (*ImageArchive, error) {
11 f, err := os.Open(tarPath)
12 if err != nil {
13 return nil, err
14 }
15 defer f.Close()
16
17 return NewImageArchive(f)
18}
19
20func TestAnalysisFromArchive(t *testing.T, path string) *image.AnalysisResult {
21 archive, err := TestLoadArchive(path)

Callers 3

FetchMethod · 0.92
FetchMethod · 0.92
TestAnalysisFromArchiveFunction · 0.85

Calls 1

NewImageArchiveFunction · 0.85

Tested by

no test coverage detected