mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 15:06:36 +01:00
rename to syft
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
"os"
|
||||
"sort"
|
||||
|
||||
"github.com/anchore/imgbom/internal"
|
||||
"github.com/anchore/syft/internal"
|
||||
|
||||
"github.com/anchore/imgbom/internal/log"
|
||||
"github.com/anchore/syft/internal/log"
|
||||
)
|
||||
|
||||
type ZipFileManifest map[string]os.FileInfo
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/anchore/imgbom/internal/log"
|
||||
"github.com/anchore/syft/internal/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -67,7 +67,7 @@ func equal(r1, r2 io.Reader) (bool, error) {
|
||||
}
|
||||
|
||||
func TestUnzipToDir(t *testing.T) {
|
||||
archivePrefix, err := ioutil.TempFile("", "imgbom-ziputil-archive-TEST-")
|
||||
archivePrefix, err := ioutil.TempFile("", "syft-ziputil-archive-TEST-")
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create tempfile: %+v", err)
|
||||
}
|
||||
@@ -79,7 +79,7 @@ func TestUnzipToDir(t *testing.T) {
|
||||
|
||||
generateFixture(t, archivePrefix.Name())
|
||||
|
||||
contentsDir, err := ioutil.TempDir("", "imgbom-ziputil-contents-TEST-")
|
||||
contentsDir, err := ioutil.TempDir("", "syft-ziputil-contents-TEST-")
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create tempdir: %+v", err)
|
||||
}
|
||||
@@ -162,7 +162,7 @@ func TestUnzipToDir(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestExtractFilesFromZipFile(t *testing.T) {
|
||||
archivePrefix, err := ioutil.TempFile("", "imgbom-ziputil-archive-TEST-")
|
||||
archivePrefix, err := ioutil.TempFile("", "syft-ziputil-archive-TEST-")
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create tempfile: %+v", err)
|
||||
}
|
||||
@@ -211,7 +211,7 @@ func TestExtractFilesFromZipFile(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestZipFileManifest(t *testing.T) {
|
||||
archivePrefix, err := ioutil.TempFile("", "imgbom-ziputil-archive-TEST-")
|
||||
archivePrefix, err := ioutil.TempFile("", "syft-ziputil-archive-TEST-")
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create tempfile: %+v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user