mocks

package
v0.0.0-...-706d53e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TweetRepository

type TweetRepository struct {
	mock.Mock
}

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 (*TweetRepository) GetTweet

func (_m *TweetRepository) GetTweet(_a0 context.Context, _a1 string) (*models.Tweet, error)

GetTweet provides a mock function with given fields: _a0, _a1

func (*TweetRepository) Store

func (_m *TweetRepository) Store(_a0 context.Context, _a1 *models.Tweet) error

Store provides a mock function with given fields: _a0, _a1

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

type TweetRepository_GetTweet_Call struct {
	*mock.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 (*TweetRepository_GetTweet_Call) Run

type TweetRepository_Store_Call

type TweetRepository_Store_Call struct {
	*mock.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 (*TweetRepository_Store_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL