package ocaml import ( "testing" "github.com/anchore/syft/syft/pkg/cataloger/internal/pkgtest" ) func Test_PackageCataloger_Globs(t *testing.T) { tests := []struct { name string fixture string expected []string }{ { name: "obtain package files", fixture: "testdata/glob-paths", expected: []string{ "opam/alcotest.opam", "opam/ocaml-base-compiler.4.14.0/opam", }, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { pkgtest.NewCatalogTester(). FromDirectory(t, test.fixture). ExpectsResolverContentQueries(test.expected). TestCataloger(t, NewOpamPackageManagerCataloger()) }) } }