// Code generated by mockery v2.12.2. DO NOT EDIT. package mocks import ( testing "testing" mock "github.com/stretchr/testify/mock" twitterapi "git.netflux.io/rob/elon-eats-my-tweets/twitterapi" ) // TwitterAPIClient is an autogenerated mock type for the APIClient type type TwitterAPIClient struct { mock.Mock } // GetLastTweet provides a mock function with given fields: _a0 func (_m *TwitterAPIClient) GetLastTweet(_a0 string) (*twitterapi.Tweet, error) { ret := _m.Called(_a0) var r0 *twitterapi.Tweet if rf, ok := ret.Get(0).(func(string) *twitterapi.Tweet); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*twitterapi.Tweet) } } var r1 error if rf, ok := ret.Get(1).(func(string) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) } return r0, r1 } // GetMe provides a mock function with given fields: func (_m *TwitterAPIClient) GetMe() (*twitterapi.User, error) { ret := _m.Called() var r0 *twitterapi.User if rf, ok := ret.Get(0).(func() *twitterapi.User); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*twitterapi.User) } } var r1 error if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // GetTweets provides a mock function with given fields: _a0, _a1 func (_m *TwitterAPIClient) GetTweets(_a0 string, _a1 string) ([]*twitterapi.Tweet, error) { ret := _m.Called(_a0, _a1) var r0 []*twitterapi.Tweet if rf, ok := ret.Get(0).(func(string, string) []*twitterapi.Tweet); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]*twitterapi.Tweet) } } var r1 error if rf, ok := ret.Get(1).(func(string, string) error); ok { r1 = rf(_a0, _a1) } else { r1 = ret.Error(1) } return r0, r1 } // NewTwitterAPIClient creates a new instance of TwitterAPIClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations. func NewTwitterAPIClient(t testing.TB) *TwitterAPIClient { mock := &TwitterAPIClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }