Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TweetRepository ¶
TweetRepository is an autogenerated mock type for the TweetRepository type
func NewTweetRepository ¶
func NewTweetRepository(t mockConstructorTestingTNewTweetRepository) *TweetRepository
NewTweetRepository creates a new instance of TweetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TweetRepository) EXPECT ¶
func (_m *TweetRepository) EXPECT() *TweetRepository_Expecter
type TweetRepository_Expecter ¶
type TweetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*TweetRepository_Expecter) GetTweet ¶
func (_e *TweetRepository_Expecter) GetTweet(_a0 interface{}, _a1 interface{}) *TweetRepository_GetTweet_Call
GetTweet is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TweetRepository_Expecter) Store ¶
func (_e *TweetRepository_Expecter) Store(_a0 interface{}, _a1 interface{}) *TweetRepository_Store_Call
Store is a helper method to define mock.On call
- _a0 context.Context
- _a1 *models.Tweet
type TweetRepository_GetTweet_Call ¶
TweetRepository_GetTweet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTweet'
func (*TweetRepository_GetTweet_Call) Return ¶
func (_c *TweetRepository_GetTweet_Call) Return(_a0 *models.Tweet, _a1 error) *TweetRepository_GetTweet_Call
func (*TweetRepository_GetTweet_Call) Run ¶
func (_c *TweetRepository_GetTweet_Call) Run(run func(_a0 context.Context, _a1 string)) *TweetRepository_GetTweet_Call
type TweetRepository_Store_Call ¶
TweetRepository_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'
func (*TweetRepository_Store_Call) Return ¶
func (_c *TweetRepository_Store_Call) Return(_a0 error) *TweetRepository_Store_Call
func (*TweetRepository_Store_Call) Run ¶
func (_c *TweetRepository_Store_Call) Run(run func(_a0 context.Context, _a1 *models.Tweet)) *TweetRepository_Store_Call
Click to show internal directories.
Click to hide internal directories.