repository

package
v0.0.0-...-a1e0f3c Latest Latest
Warning

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

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

Documentation

Overview

Package repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthor

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

MockAuthor is a mock of Author interface.

func NewMockAuthor

func NewMockAuthor(ctrl *gomock.Controller) *MockAuthor

NewMockAuthor creates a new mock instance.

func (*MockAuthor) EXPECT

func (m *MockAuthor) EXPECT() *MockAuthorMockRecorder

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

type MockAuthorMockRecorder

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

MockAuthorMockRecorder is the mock recorder for MockAuthor.

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) GetUser

func (m *MockAuthorization) GetUser(arg0, arg1 string) (models.User, error)

GetUser 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) GetUser

func (mr *MockAuthorizationMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

type MockBook

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

MockBook is a mock of Book interface.

func NewMockBook

func NewMockBook(ctrl *gomock.Controller) *MockBook

NewMockBook creates a new mock instance.

func (*MockBook) CreateBook

func (m *MockBook) CreateBook(arg0 models.Book) (int, error)

CreateBook mocks base method.

func (*MockBook) DeleteBook

func (m *MockBook) DeleteBook(arg0 int) error

DeleteBook mocks base method.

func (*MockBook) EXPECT

func (m *MockBook) EXPECT() *MockBookMockRecorder

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

func (*MockBook) GetAllBook

func (m *MockBook) GetAllBook() ([]models.Book, error)

GetAllBook mocks base method.

func (*MockBook) GetBookById

func (m *MockBook) GetBookById(arg0 int) (models.Book, error)

GetBookById mocks base method.

func (*MockBook) UpdateBook

func (m *MockBook) UpdateBook(arg0 int, arg1 models.Book) error

UpdateBook mocks base method.

type MockBookMockRecorder

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

MockBookMockRecorder is the mock recorder for MockBook.

func (*MockBookMockRecorder) CreateBook

func (mr *MockBookMockRecorder) CreateBook(arg0 interface{}) *gomock.Call

CreateBook indicates an expected call of CreateBook.

func (*MockBookMockRecorder) DeleteBook

func (mr *MockBookMockRecorder) DeleteBook(arg0 interface{}) *gomock.Call

DeleteBook indicates an expected call of DeleteBook.

func (*MockBookMockRecorder) GetAllBook

func (mr *MockBookMockRecorder) GetAllBook() *gomock.Call

GetAllBook indicates an expected call of GetAllBook.

func (*MockBookMockRecorder) GetBookById

func (mr *MockBookMockRecorder) GetBookById(arg0 interface{}) *gomock.Call

GetBookById indicates an expected call of GetBookById.

func (*MockBookMockRecorder) UpdateBook

func (mr *MockBookMockRecorder) UpdateBook(arg0, arg1 interface{}) *gomock.Call

UpdateBook indicates an expected call of UpdateBook.

Jump to

Keyboard shortcuts

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