Documentation
¶
Overview ¶
Package fetchuser is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIFetcher ¶
type MockAPIFetcher ¶
type MockAPIFetcher struct {
// contains filtered or unexported fields
}
MockAPIFetcher is a mock of APIFetcher interface.
func NewMockAPIFetcher ¶
func NewMockAPIFetcher(ctrl *gomock.Controller) *MockAPIFetcher
NewMockAPIFetcher creates a new mock instance.
func (*MockAPIFetcher) EXPECT ¶
func (m *MockAPIFetcher) EXPECT() *MockAPIFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAPIFetcherMockRecorder ¶
type MockAPIFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIFetcherMockRecorder is the mock recorder for MockAPIFetcher.
func (*MockAPIFetcherMockRecorder) FetchData ¶
func (mr *MockAPIFetcherMockRecorder) FetchData(id interface{}) *gomock.Call
FetchData indicates an expected call of FetchData.
type RealAPIFetcher ¶
type RealAPIFetcher struct {
ApiURL string
}
type User ¶
func ProcessUser ¶
func ProcessUser(fetcher APIFetcher, id int) (User, error)
func ProcessUserHOF ¶
func ProcessUserHOF(fetchData FetchDataFunc, url string, id int) (User, error)
Click to show internal directories.
Click to hide internal directories.