chore: update test

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow 2024-09-12 11:56:47 -04:00
parent 14b1a8337e
commit a7f9e30607
No known key found for this signature in database
GPG key ID: 735988DA57708682

View file

@ -75,8 +75,8 @@ func Test_getProviderConfig(t *testing.T) {
cmpopts.IgnoreFields(binary.Classifier{}, "EvidenceMatcher"),
cmpopts.IgnoreUnexported(syft.CreateSBOMConfig{}),
}
if d := cmp.Diff(tt.want, getProviderConfig(tt.opts), opts...); d != "" {
t.Errorf("getProviderConfig() mismatch (-want +got):\n%s", d)
if d := cmp.Diff(tt.want, tt.opts.ToProviderConfig(), opts...); d != "" {
t.Errorf("opts.ToProviderConfig() mismatch (-want +got):\n%s", d)
}
})
}