mock_repository

package
v0.0.0-...-0ef8f77 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthRepository

type MockAuthRepository struct {
	// contains filtered or unexported fields
}

MockAuthRepository is a mock of AuthRepository interface.

func NewMockAuthRepository

func NewMockAuthRepository(ctrl *gomock.Controller) *MockAuthRepository

NewMockAuthRepository creates a new mock instance.

func (*MockAuthRepository) CreateCookie

func (m *MockAuthRepository) CreateCookie(token string, expiresIn time.Duration) (string, error)

CreateCookie mocks base method.

func (*MockAuthRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthRepository) IsValid

func (m *MockAuthRepository) IsValid(token string) (bool, error)

IsValid mocks base method.

func (*MockAuthRepository) IsValidCookie

func (m *MockAuthRepository) IsValidCookie(cookie string) (bool, error)

IsValidCookie mocks base method.

type MockAuthRepositoryMockRecorder

type MockAuthRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthRepositoryMockRecorder is the mock recorder for MockAuthRepository.

func (*MockAuthRepositoryMockRecorder) CreateCookie

func (mr *MockAuthRepositoryMockRecorder) CreateCookie(token, expiresIn interface{}) *gomock.Call

CreateCookie indicates an expected call of CreateCookie.

func (*MockAuthRepositoryMockRecorder) IsValid

func (mr *MockAuthRepositoryMockRecorder) IsValid(token interface{}) *gomock.Call

IsValid indicates an expected call of IsValid.

func (*MockAuthRepositoryMockRecorder) IsValidCookie

func (mr *MockAuthRepositoryMockRecorder) IsValidCookie(cookie interface{}) *gomock.Call

IsValidCookie indicates an expected call of IsValidCookie.

type MockPost

type MockPost struct {
	// contains filtered or unexported fields
}

MockPost is a mock of Post interface.

func NewMockPost

func NewMockPost(ctrl *gomock.Controller) *MockPost

NewMockPost creates a new mock instance.

func (*MockPost) Count

func (m *MockPost) Count(condition string, params []interface{}) (int, error)

Count mocks base method.

func (*MockPost) Create

func (m *MockPost) Create(post *entity.Post) error

Create mocks base method.

func (*MockPost) Delete

func (m *MockPost) Delete(id string) error

Delete mocks base method.

func (*MockPost) EXPECT

func (m *MockPost) EXPECT() *MockPostMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPost) FindAll

func (m *MockPost) FindAll(offset, pageSize int, condition string, params []interface{}, sortCondition string) ([]*entity.Post, error)

FindAll mocks base method.

func (*MockPost) FindByID

func (m *MockPost) FindByID(id string) (*entity.Post, error)

FindByID mocks base method.

func (m *MockPost) FindByPermalink(permalink string) (*entity.Post, error)

FindByPermalink mocks base method.

func (*MockPost) Update

func (m *MockPost) Update(post *entity.Post) error

Update mocks base method.

type MockPostMockRecorder

type MockPostMockRecorder struct {
	// contains filtered or unexported fields
}

MockPostMockRecorder is the mock recorder for MockPost.

func (*MockPostMockRecorder) Count

func (mr *MockPostMockRecorder) Count(condition, params interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockPostMockRecorder) Create

func (mr *MockPostMockRecorder) Create(post interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockPostMockRecorder) Delete

func (mr *MockPostMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPostMockRecorder) FindAll

func (mr *MockPostMockRecorder) FindAll(offset, pageSize, condition, params, sortCondition interface{}) *gomock.Call

FindAll indicates an expected call of FindAll.

func (*MockPostMockRecorder) FindByID

func (mr *MockPostMockRecorder) FindByID(id interface{}) *gomock.Call

FindByID indicates an expected call of FindByID.

func (mr *MockPostMockRecorder) FindByPermalink(permalink interface{}) *gomock.Call

FindByPermalink indicates an expected call of FindByPermalink.

func (*MockPostMockRecorder) Update

func (mr *MockPostMockRecorder) Update(post interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockPostsTags

type MockPostsTags struct {
	// contains filtered or unexported fields
}

MockPostsTags is a mock of PostsTags interface.

func NewMockPostsTags

func NewMockPostsTags(ctrl *gomock.Controller) *MockPostsTags

NewMockPostsTags creates a new mock instance.

func (*MockPostsTags) Delete

func (m *MockPostsTags) Delete(id string) error

Delete mocks base method.

func (*MockPostsTags) DeleteByPostID

func (m *MockPostsTags) DeleteByPostID(postID string) error

DeleteByPostID mocks base method.

func (*MockPostsTags) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPostsTags) FindByPostIDAndTagName

func (m *MockPostsTags) FindByPostIDAndTagName(postID, tagName string) (*entity.PostsTags, error)

FindByPostIDAndTagName mocks base method.

func (*MockPostsTags) Store

func (m *MockPostsTags) Store(postsTags []*entity.PostsTags) error

Store mocks base method.

type MockPostsTagsMockRecorder

type MockPostsTagsMockRecorder struct {
	// contains filtered or unexported fields
}

MockPostsTagsMockRecorder is the mock recorder for MockPostsTags.

func (*MockPostsTagsMockRecorder) Delete

func (mr *MockPostsTagsMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPostsTagsMockRecorder) DeleteByPostID

func (mr *MockPostsTagsMockRecorder) DeleteByPostID(postID interface{}) *gomock.Call

DeleteByPostID indicates an expected call of DeleteByPostID.

func (*MockPostsTagsMockRecorder) FindByPostIDAndTagName

func (mr *MockPostsTagsMockRecorder) FindByPostIDAndTagName(postID, tagName interface{}) *gomock.Call

FindByPostIDAndTagName indicates an expected call of FindByPostIDAndTagName.

func (*MockPostsTagsMockRecorder) Store

func (mr *MockPostsTagsMockRecorder) Store(postsTags interface{}) *gomock.Call

Store indicates an expected call of Store.

type MockTag

type MockTag struct {
	// contains filtered or unexported fields
}

MockTag is a mock of Tag interface.

func NewMockTag

func NewMockTag(ctrl *gomock.Controller) *MockTag

NewMockTag creates a new mock instance.

func (*MockTag) Count

func (m *MockTag) Count() (int, error)

Count mocks base method.

func (*MockTag) Delete

func (m *MockTag) Delete(id string) error

Delete mocks base method.

func (*MockTag) EXPECT

func (m *MockTag) EXPECT() *MockTagMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTag) FindAll

func (m *MockTag) FindAll(offset, pageSize int, condition string, params []interface{}) ([]*entity.Tag, error)

FindAll mocks base method.

func (*MockTag) FindByID

func (m *MockTag) FindByID(id string) (*entity.Tag, error)

FindByID mocks base method.

func (*MockTag) FindByName

func (m *MockTag) FindByName(name string) (*entity.Tag, error)

FindByName mocks base method.

func (*MockTag) Store

func (m *MockTag) Store(tag *entity.Tag) error

Store mocks base method.

type MockTagMockRecorder

type MockTagMockRecorder struct {
	// contains filtered or unexported fields
}

MockTagMockRecorder is the mock recorder for MockTag.

func (*MockTagMockRecorder) Count

func (mr *MockTagMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*MockTagMockRecorder) Delete

func (mr *MockTagMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTagMockRecorder) FindAll

func (mr *MockTagMockRecorder) FindAll(offset, pageSize, condition, params interface{}) *gomock.Call

FindAll indicates an expected call of FindAll.

func (*MockTagMockRecorder) FindByID

func (mr *MockTagMockRecorder) FindByID(id interface{}) *gomock.Call

FindByID indicates an expected call of FindByID.

func (*MockTagMockRecorder) FindByName

func (mr *MockTagMockRecorder) FindByName(name interface{}) *gomock.Call

FindByName indicates an expected call of FindByName.

func (*MockTagMockRecorder) Store

func (mr *MockTagMockRecorder) Store(tag interface{}) *gomock.Call

Store indicates an expected call of Store.

Jump to

Keyboard shortcuts

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