mock

package
v0.78.2 Latest Latest
Warning

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

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

Documentation

Overview

Package mock provides a mock implementation of the delegatedauth component for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new mock delegatedauth component for testing

Types

type Mock

type Mock struct {
	AddInstanceFunc func(context.Context, delegatedauth.InstanceParams) error
}

Mock is a mock implementation of the delegatedauth.Component interface

func (*Mock) AddInstance

func (m *Mock) AddInstance(ctx context.Context, params delegatedauth.InstanceParams) error

AddInstance calls the mock function if set, otherwise returns nil

type Provides

type Provides struct {
	Comp delegatedauth.Component
}

Provides is the mock component output

Jump to

Keyboard shortcuts

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