Documentation
¶
Index ¶
- type MockDebuginfodClient
- type MockDebuginfodClient_Expecter
- type MockDebuginfodClient_FetchDebuginfo_Call
- func (_c *MockDebuginfodClient_FetchDebuginfo_Call) Return(_a0 io.ReadCloser, _a1 error) *MockDebuginfodClient_FetchDebuginfo_Call
- func (_c *MockDebuginfodClient_FetchDebuginfo_Call) Run(run func(ctx context.Context, buildID string)) *MockDebuginfodClient_FetchDebuginfo_Call
- func (_c *MockDebuginfodClient_FetchDebuginfo_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *MockDebuginfodClient_FetchDebuginfo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDebuginfodClient ¶
MockDebuginfodClient is an autogenerated mock type for the DebuginfodClient type
func NewMockDebuginfodClient ¶
func NewMockDebuginfodClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockDebuginfodClient
NewMockDebuginfodClient creates a new instance of MockDebuginfodClient. 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 (*MockDebuginfodClient) EXPECT ¶
func (_m *MockDebuginfodClient) EXPECT() *MockDebuginfodClient_Expecter
func (*MockDebuginfodClient) FetchDebuginfo ¶
func (_m *MockDebuginfodClient) FetchDebuginfo(ctx context.Context, buildID string) (io.ReadCloser, error)
FetchDebuginfo provides a mock function with given fields: ctx, buildID
type MockDebuginfodClient_Expecter ¶
type MockDebuginfodClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDebuginfodClient_Expecter) FetchDebuginfo ¶
func (_e *MockDebuginfodClient_Expecter) FetchDebuginfo(ctx interface{}, buildID interface{}) *MockDebuginfodClient_FetchDebuginfo_Call
FetchDebuginfo is a helper method to define mock.On call
- ctx context.Context
- buildID string
type MockDebuginfodClient_FetchDebuginfo_Call ¶
MockDebuginfodClient_FetchDebuginfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchDebuginfo'
func (*MockDebuginfodClient_FetchDebuginfo_Call) Return ¶
func (_c *MockDebuginfodClient_FetchDebuginfo_Call) Return(_a0 io.ReadCloser, _a1 error) *MockDebuginfodClient_FetchDebuginfo_Call
func (*MockDebuginfodClient_FetchDebuginfo_Call) Run ¶
func (_c *MockDebuginfodClient_FetchDebuginfo_Call) Run(run func(ctx context.Context, buildID string)) *MockDebuginfodClient_FetchDebuginfo_Call
func (*MockDebuginfodClient_FetchDebuginfo_Call) RunAndReturn ¶
func (_c *MockDebuginfodClient_FetchDebuginfo_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *MockDebuginfodClient_FetchDebuginfo_Call
Click to show internal directories.
Click to hide internal directories.