Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created June 6, 2021 21:49
Show Gist options
  • Select an option

  • Save agusrichard/729ae61f1ded51dc43021e6d6949704f to your computer and use it in GitHub Desktop.

Select an option

Save agusrichard/729ae61f1ded51dc43021e6d6949704f to your computer and use it in GitHub Desktop.
// TweetRepository is an autogenerated mock type for the TweetRepository type
type TweetRepository struct {
mock.Mock
}
// CreateTweet provides a mock function with given fields: tweet
func (_m *TweetRepository) CreateTweet(tweet *entities.Tweet) error {
ret := _m.Called(tweet)
var r0 error
if rf, ok := ret.Get(0).(func(*entities.Tweet) error); ok {
r0 = rf(tweet)
} else {
r0 = ret.Error(0)
}
return r0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment