Documentation ¶
Overview ¶
Package fixtures contains code for creating bundle fixtures and is used in various parts of the code. For testing use only.
Index ¶
- Variables
- func WithFailedForEachRuleType(mock BundleMock)
- func WithFailedGetBundle(mock SourceMock)
- func WithFailedGetProfile(mock BundleMock)
- func WithListBundles(bundleID mindpak.BundleID) func(SourceMock)
- func WithMetadata(mock BundleMock)
- func WithSuccessfulForEachRuleType(mock BundleMock)
- func WithSuccessfulGetBundle(bundle reader.BundleReader) func(SourceMock)
- func WithSuccessfulGetProfile(mock BundleMock)
- type BundleMock
- type BundleMockBuilder
- type SourceMock
- type SourceMockBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BundleName = "healthcheck" BundleNamespace = "stacklok" BundleVersion = "1.0.0" )
Functions ¶
func WithFailedForEachRuleType ¶
func WithFailedForEachRuleType(mock BundleMock)
func WithFailedGetBundle ¶
func WithFailedGetBundle(mock SourceMock)
func WithFailedGetProfile ¶
func WithFailedGetProfile(mock BundleMock)
func WithListBundles ¶
func WithListBundles(bundleID mindpak.BundleID) func(SourceMock)
func WithMetadata ¶
func WithMetadata(mock BundleMock)
func WithSuccessfulForEachRuleType ¶
func WithSuccessfulForEachRuleType(mock BundleMock)
func WithSuccessfulGetBundle ¶
func WithSuccessfulGetBundle(bundle reader.BundleReader) func(SourceMock)
func WithSuccessfulGetProfile ¶
func WithSuccessfulGetProfile(mock BundleMock)
Types ¶
type BundleMock ¶
type BundleMock = *mockbundle.MockBundleReader
type BundleMockBuilder ¶
type BundleMockBuilder = func(*gomock.Controller) BundleMock
func NewBundleReaderMock ¶
func NewBundleReaderMock(opts ...func(mock BundleMock)) BundleMockBuilder
type SourceMock ¶
type SourceMock = *mockbundle.MockBundleSource
type SourceMockBuilder ¶
type SourceMockBuilder = func(*gomock.Controller) SourceMock
func NewBundleSourceMock ¶
func NewBundleSourceMock(opts ...func(mock SourceMock)) SourceMockBuilder
Click to show internal directories.
Click to hide internal directories.