mock_telemetry

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_telemetry is a generated GoMock package.

Package mock_telemetry is a generated GoMock package.

Package mock_telemetry provides mock implementations for telemetry client testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Close

func (m *MockClient) Close() error

Close mocks base method.

func (*MockClient) CloseWithContext added in v1.205.0

func (m *MockClient) CloseWithContext(arg0 context.Context) error

CloseWithContext mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) Enqueue

func (m *MockClient) Enqueue(arg0 posthog.Message) error

Enqueue mocks base method.

func (*MockClient) EvaluateFlags added in v1.219.0

EvaluateFlags mocks base method.

func (*MockClient) GetAllFlags

func (m *MockClient) GetAllFlags(arg0 posthog.FeatureFlagPayloadNoKey) (map[string]any, error)

GetAllFlags mocks base method.

func (*MockClient) GetFeatureFlag

func (m *MockClient) GetFeatureFlag(arg0 posthog.FeatureFlagPayload) (any, error)

GetFeatureFlag mocks base method.

func (*MockClient) GetFeatureFlagPayload

func (m *MockClient) GetFeatureFlagPayload(arg0 posthog.FeatureFlagPayload) (string, error)

GetFeatureFlagPayload mocks base method.

func (*MockClient) GetFeatureFlagResult added in v1.206.0

func (m *MockClient) GetFeatureFlagResult(arg0 posthog.FeatureFlagPayload) (*posthog.FeatureFlagResult, error)

GetFeatureFlagResult mocks base method.

func (*MockClient) GetFeatureFlags

func (m *MockClient) GetFeatureFlags() ([]posthog.FeatureFlag, error)

GetFeatureFlags mocks base method.

func (*MockClient) GetRemoteConfigPayload

func (m *MockClient) GetRemoteConfigPayload(arg0 string) (string, error)

GetRemoteConfigPayload mocks base method.

func (*MockClient) IsFeatureEnabled

func (m *MockClient) IsFeatureEnabled(arg0 posthog.FeatureFlagPayload) (any, error)

IsFeatureEnabled mocks base method.

func (*MockClient) ReloadFeatureFlags

func (m *MockClient) ReloadFeatureFlags() error

ReloadFeatureFlags mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Close

func (mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockClientMockRecorder) CloseWithContext added in v1.205.0

func (mr *MockClientMockRecorder) CloseWithContext(arg0 any) *gomock.Call

CloseWithContext indicates an expected call of CloseWithContext.

func (*MockClientMockRecorder) Enqueue

func (mr *MockClientMockRecorder) Enqueue(arg0 any) *gomock.Call

Enqueue indicates an expected call of Enqueue.

func (*MockClientMockRecorder) EvaluateFlags added in v1.219.0

func (mr *MockClientMockRecorder) EvaluateFlags(arg0 any) *gomock.Call

EvaluateFlags indicates an expected call of EvaluateFlags.

func (*MockClientMockRecorder) GetAllFlags

func (mr *MockClientMockRecorder) GetAllFlags(arg0 any) *gomock.Call

GetAllFlags indicates an expected call of GetAllFlags.

func (*MockClientMockRecorder) GetFeatureFlag

func (mr *MockClientMockRecorder) GetFeatureFlag(arg0 any) *gomock.Call

GetFeatureFlag indicates an expected call of GetFeatureFlag.

func (*MockClientMockRecorder) GetFeatureFlagPayload

func (mr *MockClientMockRecorder) GetFeatureFlagPayload(arg0 any) *gomock.Call

GetFeatureFlagPayload indicates an expected call of GetFeatureFlagPayload.

func (*MockClientMockRecorder) GetFeatureFlagResult added in v1.206.0

func (mr *MockClientMockRecorder) GetFeatureFlagResult(arg0 any) *gomock.Call

GetFeatureFlagResult indicates an expected call of GetFeatureFlagResult.

func (*MockClientMockRecorder) GetFeatureFlags

func (mr *MockClientMockRecorder) GetFeatureFlags() *gomock.Call

GetFeatureFlags indicates an expected call of GetFeatureFlags.

func (*MockClientMockRecorder) GetRemoteConfigPayload

func (mr *MockClientMockRecorder) GetRemoteConfigPayload(arg0 any) *gomock.Call

GetRemoteConfigPayload indicates an expected call of GetRemoteConfigPayload.

func (*MockClientMockRecorder) IsFeatureEnabled

func (mr *MockClientMockRecorder) IsFeatureEnabled(arg0 any) *gomock.Call

IsFeatureEnabled indicates an expected call of IsFeatureEnabled.

func (*MockClientMockRecorder) ReloadFeatureFlags

func (mr *MockClientMockRecorder) ReloadFeatureFlags() *gomock.Call

ReloadFeatureFlags indicates an expected call of ReloadFeatureFlags.

type MockTelemetryClientProviderMock

type MockTelemetryClientProviderMock struct {
	// contains filtered or unexported fields
}

MockTelemetryClientProviderMock is a mock of TelemetryClientProviderMock interface.

func NewMockTelemetryClientProviderMock

func NewMockTelemetryClientProviderMock(ctrl *gomock.Controller) *MockTelemetryClientProviderMock

NewMockTelemetryClientProviderMock creates a new mock instance.

func (*MockTelemetryClientProviderMock) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTelemetryClientProviderMock) NewMockClient

func (m *MockTelemetryClientProviderMock) NewMockClient(token string, config *posthog_go.Config) (posthog_go.Client, error)

NewMockClient mocks base method.

type MockTelemetryClientProviderMockMockRecorder

type MockTelemetryClientProviderMockMockRecorder struct {
	// contains filtered or unexported fields
}

MockTelemetryClientProviderMockMockRecorder is the mock recorder for MockTelemetryClientProviderMock.

func (*MockTelemetryClientProviderMockMockRecorder) NewMockClient

func (mr *MockTelemetryClientProviderMockMockRecorder) NewMockClient(token, config any) *gomock.Call

NewMockClient indicates an expected call of NewMockClient.

type TelemetryClientProviderMock

type TelemetryClientProviderMock interface {
	// NewMockClient creates a new mock PostHog client instance.
	// Parameters:
	//   - token: The authentication token for the PostHog client
	//   - config: Configuration settings for the PostHog client
	// Returns:
	//   - posthog_go.Client: The mock client instance
	//   - error: Any error that occurred during client creation
	NewMockClient(token string, config *posthog_go.Config) (posthog_go.Client, error)
}

TelemetryClientProviderMock defines the interface for creating mock telemetry clients. This interface is used for testing purposes to provide controlled telemetry behavior.

Jump to

Keyboard shortcuts

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