testutil

package
v4.23.13 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAuditLogFiredWithLog added in v4.20.3

func AssertAuditLogFiredWithLog(m *gomock.Controller, app *mock.MockApplicationInterface, msg contracts.AuditLogImpl)

func AssertAuditLogFiredWithMsg added in v4.19.7

func AssertAuditLogFiredWithMsg(m *gomock.Controller, app *mock.MockApplicationInterface, msg string)

func NewEventLister added in v4.23.1

func NewEventLister(events ...*eventsv1.Event) eventsv1lister.EventLister

func NewPodLister

func NewPodLister(pods ...*corev1.Pod) corev1lister.PodLister

func NewSecretLister

func NewSecretLister(rs ...*corev1.Secret) corev1lister.SecretLister

func NewServiceLister

func NewServiceLister(svcs ...*corev1.Service) corev1lister.ServiceLister

func SetGormDB

func SetGormDB(m *gomock.Controller, app *mock.MockApplicationInterface) (*gorm.DB, func())

Types

type ValueMatcher

type ValueMatcher struct {
	gomock.Matcher
	Value any
}

func (*ValueMatcher) Matches

func (v *ValueMatcher) Matches(x any) bool

Jump to

Keyboard shortcuts

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