mocks

package
v0.67.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOrganizationRepository

type MockOrganizationRepository struct {
	CallCount      int
	LastCluster    *clusterv1.Cluster
	OrganizationID string
}

MockOrganizationRepository implements a minimal OrganizationRepository with call tracking. It can be used in tests to avoid complex setup of real organization repositories.

func NewMockOrganizationRepository

func NewMockOrganizationRepository(organizationID string) *MockOrganizationRepository

NewMockOrganizationRepository creates a new mock with a default organization ID.

func (*MockOrganizationRepository) Read

Read returns the configured organization ID and tracks the call.

Jump to

Keyboard shortcuts

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