■ ■ ■ ■ ■ ■
syft/pkg/cataloger/binary/cataloger_test.go
| skipped 514 lines |
515 | 515 | | Metadata: metadata("rust-standard-library-linux"), |
516 | 516 | | }, |
517 | 517 | | }, |
| 518 | + | { |
| 519 | + | name: "positive-ruby-3.2.1", |
| 520 | + | fixtureDir: "test-fixtures/classifiers/dynamic/ruby-library-3.2.1", |
| 521 | + | expected: pkg.Package{ |
| 522 | + | Name: "ruby", |
| 523 | + | Version: "3.2.1", |
| 524 | + | Type: "binary", |
| 525 | + | PURL: "pkg:generic/[email protected]", |
| 526 | + | Locations: locations("ruby", "libruby.so.3.2.1"), |
| 527 | + | Metadata: pkg.BinaryMetadata{ |
| 528 | + | Matches: []pkg.ClassifierMatch{ |
| 529 | + | match("ruby-binary", "ruby"), |
| 530 | + | match("ruby-binary", "libruby.so.3.2.1"), |
| 531 | + | }, |
| 532 | + | }, |
| 533 | + | }, |
| 534 | + | }, |
| 535 | + | { |
| 536 | + | name: "positive-ruby-2.7.7", |
| 537 | + | fixtureDir: "test-fixtures/classifiers/dynamic/ruby-library-2.7.7", |
| 538 | + | expected: pkg.Package{ |
| 539 | + | Name: "ruby", |
| 540 | + | Version: "2.7.7p221", |
| 541 | + | Type: "binary", |
| 542 | + | PURL: "pkg:generic/[email protected]", |
| 543 | + | Locations: locations("ruby", "libruby.so.2.7.7"), |
| 544 | + | Metadata: pkg.BinaryMetadata{ |
| 545 | + | Matches: []pkg.ClassifierMatch{ |
| 546 | + | match("ruby-binary", "ruby"), |
| 547 | + | match("ruby-binary", "libruby.so.2.7.7"), |
| 548 | + | }, |
| 549 | + | }, |
| 550 | + | }, |
| 551 | + | }, |
| 552 | + | { |
| 553 | + | name: "positive-ruby-1.9.3p551", |
| 554 | + | fixtureDir: "test-fixtures/classifiers/positive/ruby-1.9.3p551", |
| 555 | + | expected: pkg.Package{ |
| 556 | + | Name: "ruby", |
| 557 | + | Version: "1.9.3p551", |
| 558 | + | Type: "binary", |
| 559 | + | PURL: "pkg:generic/[email protected]", |
| 560 | + | Locations: locations("ruby"), |
| 561 | + | Metadata: metadata("ruby-binary"), |
| 562 | + | }, |
| 563 | + | }, |
518 | 564 | | } |
519 | 565 | | |
520 | 566 | | for _, test := range tests { |
| skipped 247 lines |