Documentation
¶
Overview ¶
Package testutil provides test utilities and mocks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockAuthenticator ¶
MockAuthenticator is a mock implementation of the auth.UpstreamAuthenticator interface.
func (*MockAuthenticator) Authenticate ¶
func (m *MockAuthenticator) Authenticate(req *http.Request) error
Authenticate calls the mock AuthenticateFunc if set, otherwise returns nil.
type MockTool ¶
type MockTool struct {
ExecuteFunc func(ctx context.Context, req *tool.ExecutionRequest) (any, error)
}
MockTool is a mock implementation of the tool.Tool interface for testing.
func (*MockTool) GetCacheConfig ¶
func (m *MockTool) GetCacheConfig() *configv1.CacheConfig
GetCacheConfig returns nil for the mock tool.
Click to show internal directories.
Click to hide internal directories.