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 ¶
- type MockClient
- func (m *MockClient) Close() error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Enqueue(arg0 posthog_go.Message) error
- func (m *MockClient) GetAllFlags(arg0 posthog_go.FeatureFlagPayloadNoKey) (map[string]any, error)
- func (m *MockClient) GetFeatureFlag(arg0 posthog_go.FeatureFlagPayload) (any, error)
- func (m *MockClient) GetFeatureFlagPayload(arg0 posthog_go.FeatureFlagPayload) (string, error)
- func (m *MockClient) GetFeatureFlags() ([]posthog_go.FeatureFlag, error)
- func (m *MockClient) GetLastCapturedEvent() *posthog_go.Capture
- func (m *MockClient) GetRemoteConfigPayload(arg0 string) (string, error)
- func (m *MockClient) IsFeatureEnabled(arg0 posthog_go.FeatureFlagPayload) (any, error)
- func (m *MockClient) ReloadFeatureFlags() error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Close() *gomock.Call
- func (mr *MockClientMockRecorder) Enqueue(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) GetAllFlags(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) GetFeatureFlag(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) GetFeatureFlagPayload(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) GetFeatureFlags() *gomock.Call
- func (mr *MockClientMockRecorder) GetLastCapturedEvent() *gomock.Call
- func (mr *MockClientMockRecorder) GetRemoteConfigPayload(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) IsFeatureEnabled(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) ReloadFeatureFlags() *gomock.Call
- type MockTelemetryClientProviderMock
- type MockTelemetryClientProviderMockMockRecorder
- type TelemetryClientProviderMock
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) 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_go.Message) error
Enqueue mocks base method.
func (*MockClient) GetAllFlags ¶
func (m *MockClient) GetAllFlags(arg0 posthog_go.FeatureFlagPayloadNoKey) (map[string]any, error)
GetAllFlags mocks base method.
func (*MockClient) GetFeatureFlag ¶
func (m *MockClient) GetFeatureFlag(arg0 posthog_go.FeatureFlagPayload) (any, error)
GetFeatureFlag mocks base method.
func (*MockClient) GetFeatureFlagPayload ¶
func (m *MockClient) GetFeatureFlagPayload(arg0 posthog_go.FeatureFlagPayload) (string, error)
GetFeatureFlagPayload mocks base method.
func (*MockClient) GetFeatureFlags ¶
func (m *MockClient) GetFeatureFlags() ([]posthog_go.FeatureFlag, error)
GetFeatureFlags mocks base method.
func (*MockClient) GetLastCapturedEvent ¶
func (m *MockClient) GetLastCapturedEvent() *posthog_go.Capture
GetLastCapturedEvent 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_go.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) Enqueue ¶
func (mr *MockClientMockRecorder) Enqueue(arg0 any) *gomock.Call
Enqueue indicates an expected call of Enqueue.
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) GetFeatureFlags ¶
func (mr *MockClientMockRecorder) GetFeatureFlags() *gomock.Call
GetFeatureFlags indicates an expected call of GetFeatureFlags.
func (*MockClientMockRecorder) GetLastCapturedEvent ¶
func (mr *MockClientMockRecorder) GetLastCapturedEvent() *gomock.Call
GetLastCapturedEvent indicates an expected call of GetLastCapturedEvent.
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 ¶
func (m *MockTelemetryClientProviderMock) EXPECT() *MockTelemetryClientProviderMockMockRecorder
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.