Skip to content

Commit

Permalink
chore: add another test
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <kzantow@gmail.com>
  • Loading branch information
kzantow committed Mar 24, 2023
1 parent 3b69407 commit 6ede52a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions syft/pkg/cataloger/golang/licenses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ func Test_RemoteLicenseSearch(t *testing.T) {

archive := zip.NewWriter(buf)

_, err = os.Stat(testDir)
if err != nil {
w.WriteHeader(http.StatusNotFound)
return
}

entries, err := os.ReadDir(testDir)
require.NoError(t, err)
for _, f := range entries {
Expand Down Expand Up @@ -99,6 +105,11 @@ func Test_RemoteLicenseSearch(t *testing.T) {
version: "v0.3.2",
expected: "Apache-2.0",
},
{
name: "github.com/SOMEorg/someNAME",
version: "v0.3.2",
expected: "Apache-2.0",
},
{
name: "github.com/CapORG/CapProject",
version: "v4.111.5",
Expand Down

0 comments on commit 6ede52a

Please sign in to comment.