mock_service

package
v0.0.0-...-6852176 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockArticleItem

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

MockArticleItem is a mock of ArticleItem interface.

func NewMockArticleItem

func NewMockArticleItem(ctrl *gomock.Controller) *MockArticleItem

NewMockArticleItem creates a new mock instance.

func (*MockArticleItem) Create

func (m *MockArticleItem) Create(userId int, art models.Article) (int, error)

Create mocks base method.

func (*MockArticleItem) Delete

func (m *MockArticleItem) Delete(userId, articleId int) error

Delete mocks base method.

func (*MockArticleItem) EXPECT

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

func (*MockArticleItem) Get

func (m *MockArticleItem) Get(userId, articleId int) (models.Article, error)

Get mocks base method.

func (*MockArticleItem) SelectAll

func (m *MockArticleItem) SelectAll(userId int) ([]models.Article, error)

SelectAll mocks base method.

func (*MockArticleItem) Update

func (m *MockArticleItem) Update(userId, articleId int, upArt models.UpdateArticle) error

Update mocks base method.

type MockArticleItemMockRecorder

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

MockArticleItemMockRecorder is the mock recorder for MockArticleItem.

func (*MockArticleItemMockRecorder) Create

func (mr *MockArticleItemMockRecorder) Create(userId, art interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockArticleItemMockRecorder) Delete

func (mr *MockArticleItemMockRecorder) Delete(userId, articleId interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockArticleItemMockRecorder) Get

func (mr *MockArticleItemMockRecorder) Get(userId, articleId interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockArticleItemMockRecorder) SelectAll

func (mr *MockArticleItemMockRecorder) SelectAll(userId interface{}) *gomock.Call

SelectAll indicates an expected call of SelectAll.

func (*MockArticleItemMockRecorder) Update

func (mr *MockArticleItemMockRecorder) Update(userId, articleId, upArt interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockAuthorization

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

MockAuthorization is a mock of Authorization interface.

func NewMockAuthorization

func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization

NewMockAuthorization creates a new mock instance.

func (*MockAuthorization) CreateUser

func (m *MockAuthorization) CreateUser(arg0 models.User) (int, error)

CreateUser mocks base method.

func (*MockAuthorization) EXPECT

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

func (*MockAuthorization) GenerateToken

func (m *MockAuthorization) GenerateToken(email, password string) (string, error)

GenerateToken mocks base method.

func (*MockAuthorization) ParseToken

func (m *MockAuthorization) ParseToken(token string) (int, error)

ParseToken mocks base method.

type MockAuthorizationMockRecorder

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

MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.

func (*MockAuthorizationMockRecorder) CreateUser

func (mr *MockAuthorizationMockRecorder) CreateUser(arg0 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockAuthorizationMockRecorder) GenerateToken

func (mr *MockAuthorizationMockRecorder) GenerateToken(email, password interface{}) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

func (*MockAuthorizationMockRecorder) ParseToken

func (mr *MockAuthorizationMockRecorder) ParseToken(token interface{}) *gomock.Call

ParseToken indicates an expected call of ParseToken.

Jump to

Keyboard shortcuts

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