Documentation
¶
Index ¶
- type MockDebugInfoStore
- type MockDebugInfoStore_Expecter
- type MockDebugInfoStore_Get_Call
- func (_c *MockDebugInfoStore_Get_Call) Return(_a0 io.ReadCloser, _a1 error) *MockDebugInfoStore_Get_Call
- func (_c *MockDebugInfoStore_Get_Call) Run(run func(ctx context.Context, buildID string)) *MockDebugInfoStore_Get_Call
- func (_c *MockDebugInfoStore_Get_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *MockDebugInfoStore_Get_Call
- type MockDebugInfoStore_Put_Call
- func (_c *MockDebugInfoStore_Put_Call) Return(_a0 error) *MockDebugInfoStore_Put_Call
- func (_c *MockDebugInfoStore_Put_Call) Run(run func(ctx context.Context, buildID string, reader io.Reader)) *MockDebugInfoStore_Put_Call
- func (_c *MockDebugInfoStore_Put_Call) RunAndReturn(run func(context.Context, string, io.Reader) error) *MockDebugInfoStore_Put_Call
- 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 MockDebugInfoStore ¶
MockDebugInfoStore is an autogenerated mock type for the DebugInfoStore type
func NewMockDebugInfoStore ¶
func NewMockDebugInfoStore(t interface {
mock.TestingT
Cleanup(func())
}) *MockDebugInfoStore
NewMockDebugInfoStore creates a new instance of MockDebugInfoStore. 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 (*MockDebugInfoStore) EXPECT ¶
func (_m *MockDebugInfoStore) EXPECT() *MockDebugInfoStore_Expecter
func (*MockDebugInfoStore) Get ¶
func (_m *MockDebugInfoStore) Get(ctx context.Context, buildID string) (io.ReadCloser, error)
Get provides a mock function with given fields: ctx, buildID
type MockDebugInfoStore_Expecter ¶
type MockDebugInfoStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDebugInfoStore_Expecter) Get ¶
func (_e *MockDebugInfoStore_Expecter) Get(ctx interface{}, buildID interface{}) *MockDebugInfoStore_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- buildID string
func (*MockDebugInfoStore_Expecter) Put ¶
func (_e *MockDebugInfoStore_Expecter) Put(ctx interface{}, buildID interface{}, reader interface{}) *MockDebugInfoStore_Put_Call
Put is a helper method to define mock.On call
- ctx context.Context
- buildID string
- reader io.Reader
type MockDebugInfoStore_Get_Call ¶
MockDebugInfoStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockDebugInfoStore_Get_Call) Return ¶
func (_c *MockDebugInfoStore_Get_Call) Return(_a0 io.ReadCloser, _a1 error) *MockDebugInfoStore_Get_Call
func (*MockDebugInfoStore_Get_Call) Run ¶
func (_c *MockDebugInfoStore_Get_Call) Run(run func(ctx context.Context, buildID string)) *MockDebugInfoStore_Get_Call
func (*MockDebugInfoStore_Get_Call) RunAndReturn ¶
func (_c *MockDebugInfoStore_Get_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *MockDebugInfoStore_Get_Call
type MockDebugInfoStore_Put_Call ¶
MockDebugInfoStore_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*MockDebugInfoStore_Put_Call) Return ¶
func (_c *MockDebugInfoStore_Put_Call) Return(_a0 error) *MockDebugInfoStore_Put_Call
func (*MockDebugInfoStore_Put_Call) Run ¶
func (_c *MockDebugInfoStore_Put_Call) Run(run func(ctx context.Context, buildID string, reader io.Reader)) *MockDebugInfoStore_Put_Call
func (*MockDebugInfoStore_Put_Call) RunAndReturn ¶
func (_c *MockDebugInfoStore_Put_Call) RunAndReturn(run func(context.Context, string, io.Reader) error) *MockDebugInfoStore_Put_Call
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