Documentation
¶
Index ¶
- type MockSettingsSource
- type MockSettingsSource_Current_Call
- func (_c *MockSettingsSource_Current_Call) Return(settings *otelcore.Settings) *MockSettingsSource_Current_Call
- func (_c *MockSettingsSource_Current_Call) Run(run func()) *MockSettingsSource_Current_Call
- func (_c *MockSettingsSource_Current_Call) RunAndReturn(run func() *otelcore.Settings) *MockSettingsSource_Current_Call
- type MockSettingsSource_Expecter
- type MockSettingsSource_Version_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSettingsSource ¶
MockSettingsSource is an autogenerated mock type for the SettingsSource type
func NewMockSettingsSource ¶
func NewMockSettingsSource(t interface {
mock.TestingT
Cleanup(func())
}) *MockSettingsSource
NewMockSettingsSource creates a new instance of MockSettingsSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockSettingsSource) Current ¶
func (_mock *MockSettingsSource) Current() *otelcore.Settings
Current provides a mock function for the type MockSettingsSource
func (*MockSettingsSource) EXPECT ¶
func (_m *MockSettingsSource) EXPECT() *MockSettingsSource_Expecter
func (*MockSettingsSource) Version ¶
func (_mock *MockSettingsSource) Version() uint64
Version provides a mock function for the type MockSettingsSource
type MockSettingsSource_Current_Call ¶
MockSettingsSource_Current_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Current'
func (*MockSettingsSource_Current_Call) Return ¶
func (_c *MockSettingsSource_Current_Call) Return(settings *otelcore.Settings) *MockSettingsSource_Current_Call
func (*MockSettingsSource_Current_Call) Run ¶
func (_c *MockSettingsSource_Current_Call) Run(run func()) *MockSettingsSource_Current_Call
func (*MockSettingsSource_Current_Call) RunAndReturn ¶
func (_c *MockSettingsSource_Current_Call) RunAndReturn(run func() *otelcore.Settings) *MockSettingsSource_Current_Call
type MockSettingsSource_Expecter ¶
type MockSettingsSource_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSettingsSource_Expecter) Current ¶
func (_e *MockSettingsSource_Expecter) Current() *MockSettingsSource_Current_Call
Current is a helper method to define mock.On call
func (*MockSettingsSource_Expecter) Version ¶
func (_e *MockSettingsSource_Expecter) Version() *MockSettingsSource_Version_Call
Version is a helper method to define mock.On call
type MockSettingsSource_Version_Call ¶
MockSettingsSource_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'
func (*MockSettingsSource_Version_Call) Return ¶
func (_c *MockSettingsSource_Version_Call) Return(v uint64) *MockSettingsSource_Version_Call
func (*MockSettingsSource_Version_Call) Run ¶
func (_c *MockSettingsSource_Version_Call) Run(run func()) *MockSettingsSource_Version_Call
func (*MockSettingsSource_Version_Call) RunAndReturn ¶
func (_c *MockSettingsSource_Version_Call) RunAndReturn(run func() uint64) *MockSettingsSource_Version_Call