Projects STRLCPY syft Commits 4bf677d5
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    syft/pkg/cataloger/binary/cataloger_test.go
    skipped 178 lines
    179 179   Version: "5.12.5",
    180 180   Type: "binary",
    181 181   PURL: "pkg:generic/[email protected]",
    182  - Locations: singleLocation("perl"),
    183  - Metadata: pkg.BinaryMetadata{
    184  - Classifier: "perl-binary",
    185  - },
     182 + Locations: locations("perl"),
     183 + Metadata: metadata("perl-binary"),
    186 184   },
    187 185   },
    188 186   {
    skipped 4 lines
    193 191   Version: "5.20.0",
    194 192   Type: "binary",
    195 193   PURL: "pkg:generic/[email protected]",
    196  - Locations: singleLocation("perl"),
    197  - Metadata: pkg.BinaryMetadata{
    198  - Classifier: "perl-binary",
    199  - },
     194 + Locations: locations("perl"),
     195 + Metadata: metadata("perl-binary"),
    200 196   },
    201 197   },
    202 198   {
    skipped 4 lines
    207 203   Version: "5.37.8",
    208 204   Type: "binary",
    209 205   PURL: "pkg:generic/[email protected]",
    210  - Locations: singleLocation("perl"),
    211  - Metadata: pkg.BinaryMetadata{
    212  - Classifier: "perl-binary",
    213  - },
     206 + Locations: locations("perl"),
     207 + Metadata: metadata("perl-binary"),
    214 208   },
    215 209   },
    216 210   {
    skipped 417 lines
    634 628  func (p *panicyResolver) FileMetadataByLocation(_ source.Location) (source.FileMetadata, error) {
    635 629   return source.FileMetadata{}, errors.New("not implemented")
    636 630  }
     631 + 
     632 +var _ source.FileResolver = (*panicyResolver)(nil)
    637 633   
    638 634  func Test_Cataloger_ResilientToErrors(t *testing.T) {
    639 635   c := NewCataloger()
    skipped 7 lines
Please wait...
Page is in error, reload to recover