Documentation ¶
Index ¶
- func AssertPackagesEqual(t *testing.T, a, b pkg.Package)
- func DefaultLocationComparer(x, y source.Location) bool
- func TestFileParser(t *testing.T, fixturePath string, parser generic.Parser, ...)
- func TestFileParserWithEnv(t *testing.T, fixturePath string, parser generic.Parser, ...)
- type CatalogTester
- func (p *CatalogTester) Expects(pkgs []pkg.Package, relationships []artifact.Relationship) *CatalogTester
- func (p *CatalogTester) FromDirectory(t *testing.T, path string) *CatalogTester
- func (p *CatalogTester) FromFile(t *testing.T, path string) *CatalogTester
- func (p *CatalogTester) FromString(location, data string) *CatalogTester
- func (p *CatalogTester) IgnoreLocationLayer() *CatalogTester
- func (p *CatalogTester) IgnorePackageFields(fields ...string) *CatalogTester
- func (p *CatalogTester) TestCataloger(t *testing.T, cataloger pkg.Cataloger)
- func (p *CatalogTester) TestParser(t *testing.T, parser generic.Parser)
- func (p *CatalogTester) WithEnv(env *generic.Environment) *CatalogTester
- func (p *CatalogTester) WithError() *CatalogTester
- func (p *CatalogTester) WithErrorAssertion(a require.ErrorAssertionFunc) *CatalogTester
- func (p *CatalogTester) WithImageResolver(t *testing.T, fixtureName string) *CatalogTester
- func (p *CatalogTester) WithLinuxRelease(r linux.Release) *CatalogTester
- func (p *CatalogTester) WithResolver(r source.FileResolver) *CatalogTester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertPackagesEqual ¶ added in v0.61.0
func DefaultLocationComparer ¶ added in v0.61.0
func TestFileParser ¶
func TestFileParserWithEnv ¶
Types ¶
type CatalogTester ¶
type CatalogTester struct {
// contains filtered or unexported fields
}
func NewCatalogTester ¶
func NewCatalogTester() *CatalogTester
func (*CatalogTester) Expects ¶
func (p *CatalogTester) Expects(pkgs []pkg.Package, relationships []artifact.Relationship) *CatalogTester
func (*CatalogTester) FromDirectory ¶ added in v0.60.3
func (p *CatalogTester) FromDirectory(t *testing.T, path string) *CatalogTester
func (*CatalogTester) FromFile ¶
func (p *CatalogTester) FromFile(t *testing.T, path string) *CatalogTester
func (*CatalogTester) FromString ¶
func (p *CatalogTester) FromString(location, data string) *CatalogTester
func (*CatalogTester) IgnoreLocationLayer ¶
func (p *CatalogTester) IgnoreLocationLayer() *CatalogTester
func (*CatalogTester) IgnorePackageFields ¶ added in v0.61.0
func (p *CatalogTester) IgnorePackageFields(fields ...string) *CatalogTester
func (*CatalogTester) TestCataloger ¶
func (p *CatalogTester) TestCataloger(t *testing.T, cataloger pkg.Cataloger)
func (*CatalogTester) TestParser ¶
func (p *CatalogTester) TestParser(t *testing.T, parser generic.Parser)
func (*CatalogTester) WithEnv ¶
func (p *CatalogTester) WithEnv(env *generic.Environment) *CatalogTester
func (*CatalogTester) WithError ¶
func (p *CatalogTester) WithError() *CatalogTester
func (*CatalogTester) WithErrorAssertion ¶
func (p *CatalogTester) WithErrorAssertion(a require.ErrorAssertionFunc) *CatalogTester
func (*CatalogTester) WithImageResolver ¶
func (p *CatalogTester) WithImageResolver(t *testing.T, fixtureName string) *CatalogTester
func (*CatalogTester) WithLinuxRelease ¶
func (p *CatalogTester) WithLinuxRelease(r linux.Release) *CatalogTester
func (*CatalogTester) WithResolver ¶
func (p *CatalogTester) WithResolver(r source.FileResolver) *CatalogTester
Click to show internal directories.
Click to hide internal directories.