fixtures

package
v0.0.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fixtures contains code for creating bundle fixtures and is used in various parts of the code. For testing use only.

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL