mock_user

package
v0.0.0-...-7efc56f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_user is a generated GoMock package.

Package mock_user is a generated GoMock package.

Package mock_user is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Authentication

func (m *MockRepository) Authentication(ctx context.Context) (string, error)

Authentication mocks base method.

func (*MockRepository) Count

func (m *MockRepository) Count(ctx context.Context, q *database.ListQuery) (int, error)

Count mocks base method.

func (*MockRepository) CountRelationship

func (m *MockRepository) CountRelationship(ctx context.Context, q *database.ListQuery) (int, error)

CountRelationship mocks base method.

func (*MockRepository) Create

func (m *MockRepository) Create(ctx context.Context, u *user.User) error

Create mocks base method.

func (*MockRepository) CreateRelationship

func (m *MockRepository) CreateRelationship(ctx context.Context, r *user.Relationship) error

CreateRelationship mocks base method.

func (*MockRepository) CreateWithOAuth

func (m *MockRepository) CreateWithOAuth(ctx context.Context, u *user.User) error

CreateWithOAuth mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, userID string) error

Delete mocks base method.

func (*MockRepository) DeleteRelationship

func (m *MockRepository) DeleteRelationship(ctx context.Context, relationshipID int) error

DeleteRelationship mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, userID string) (*user.User, error)

Get mocks base method.

func (*MockRepository) GetAdmin

func (m *MockRepository) GetAdmin(ctx context.Context, userID string) (*user.User, error)

GetAdmin mocks base method.

func (*MockRepository) GetRelationship

func (m *MockRepository) GetRelationship(ctx context.Context, followID, followerID string) (*user.Relationship, error)

GetRelationship mocks base method.

func (*MockRepository) GetRelationshipIDByUserID

func (m *MockRepository) GetRelationshipIDByUserID(ctx context.Context, followID, followerID string) (int, error)

GetRelationshipIDByUserID mocks base method.

func (*MockRepository) GetUserIDByEmail

func (m *MockRepository) GetUserIDByEmail(ctx context.Context, email string) (string, error)

GetUserIDByEmail mocks base method.

func (*MockRepository) List

List mocks base method.

func (*MockRepository) ListFollow

func (m *MockRepository) ListFollow(ctx context.Context, q *database.ListQuery) (user.Follows, error)

ListFollow mocks base method.

func (*MockRepository) ListFollowID

func (m *MockRepository) ListFollowID(ctx context.Context, userID string, userIDs ...string) ([]string, error)

ListFollowID mocks base method.

func (*MockRepository) ListFollower

func (m *MockRepository) ListFollower(ctx context.Context, q *database.ListQuery) (user.Followers, error)

ListFollower mocks base method.

func (*MockRepository) ListFollowerID

func (m *MockRepository) ListFollowerID(ctx context.Context, userID string, userIDs ...string) ([]string, error)

ListFollowerID mocks base method.

func (*MockRepository) ListInstanceID

func (m *MockRepository) ListInstanceID(ctx context.Context, q *database.ListQuery) ([]string, error)

ListInstanceID mocks base method.

func (*MockRepository) MultiGet

func (m *MockRepository) MultiGet(ctx context.Context, userIDs []string) (user.Users, error)

MultiGet mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, u *user.User) error

Update mocks base method.

func (*MockRepository) UpdatePassword

func (m *MockRepository) UpdatePassword(ctx context.Context, userID, password string) error

UpdatePassword mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Authentication

func (mr *MockRepositoryMockRecorder) Authentication(ctx interface{}) *gomock.Call

Authentication indicates an expected call of Authentication.

func (*MockRepositoryMockRecorder) Count

func (mr *MockRepositoryMockRecorder) Count(ctx, q interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockRepositoryMockRecorder) CountRelationship

func (mr *MockRepositoryMockRecorder) CountRelationship(ctx, q interface{}) *gomock.Call

CountRelationship indicates an expected call of CountRelationship.

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(ctx, u interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) CreateRelationship

func (mr *MockRepositoryMockRecorder) CreateRelationship(ctx, r interface{}) *gomock.Call

CreateRelationship indicates an expected call of CreateRelationship.

func (*MockRepositoryMockRecorder) CreateWithOAuth

func (mr *MockRepositoryMockRecorder) CreateWithOAuth(ctx, u interface{}) *gomock.Call

CreateWithOAuth indicates an expected call of CreateWithOAuth.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, userID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) DeleteRelationship

func (mr *MockRepositoryMockRecorder) DeleteRelationship(ctx, relationshipID interface{}) *gomock.Call

DeleteRelationship indicates an expected call of DeleteRelationship.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, userID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) GetAdmin

func (mr *MockRepositoryMockRecorder) GetAdmin(ctx, userID interface{}) *gomock.Call

GetAdmin indicates an expected call of GetAdmin.

func (*MockRepositoryMockRecorder) GetRelationship

func (mr *MockRepositoryMockRecorder) GetRelationship(ctx, followID, followerID interface{}) *gomock.Call

GetRelationship indicates an expected call of GetRelationship.

func (*MockRepositoryMockRecorder) GetRelationshipIDByUserID

func (mr *MockRepositoryMockRecorder) GetRelationshipIDByUserID(ctx, followID, followerID interface{}) *gomock.Call

GetRelationshipIDByUserID indicates an expected call of GetRelationshipIDByUserID.

func (*MockRepositoryMockRecorder) GetUserIDByEmail

func (mr *MockRepositoryMockRecorder) GetUserIDByEmail(ctx, email interface{}) *gomock.Call

GetUserIDByEmail indicates an expected call of GetUserIDByEmail.

func (*MockRepositoryMockRecorder) List

func (mr *MockRepositoryMockRecorder) List(ctx, q interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockRepositoryMockRecorder) ListFollow

func (mr *MockRepositoryMockRecorder) ListFollow(ctx, q interface{}) *gomock.Call

ListFollow indicates an expected call of ListFollow.

func (*MockRepositoryMockRecorder) ListFollowID

func (mr *MockRepositoryMockRecorder) ListFollowID(ctx, userID interface{}, userIDs ...interface{}) *gomock.Call

ListFollowID indicates an expected call of ListFollowID.

func (*MockRepositoryMockRecorder) ListFollower

func (mr *MockRepositoryMockRecorder) ListFollower(ctx, q interface{}) *gomock.Call

ListFollower indicates an expected call of ListFollower.

func (*MockRepositoryMockRecorder) ListFollowerID

func (mr *MockRepositoryMockRecorder) ListFollowerID(ctx, userID interface{}, userIDs ...interface{}) *gomock.Call

ListFollowerID indicates an expected call of ListFollowerID.

func (*MockRepositoryMockRecorder) ListInstanceID

func (mr *MockRepositoryMockRecorder) ListInstanceID(ctx, q interface{}) *gomock.Call

ListInstanceID indicates an expected call of ListInstanceID.

func (*MockRepositoryMockRecorder) MultiGet

func (mr *MockRepositoryMockRecorder) MultiGet(ctx, userIDs interface{}) *gomock.Call

MultiGet indicates an expected call of MultiGet.

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, u interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockRepositoryMockRecorder) UpdatePassword

func (mr *MockRepositoryMockRecorder) UpdatePassword(ctx, userID, password interface{}) *gomock.Call

UpdatePassword indicates an expected call of UpdatePassword.

type MockUploader

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

MockUploader is a mock of Uploader interface.

func NewMockUploader

func NewMockUploader(ctrl *gomock.Controller) *MockUploader

NewMockUploader creates a new mock instance.

func (*MockUploader) EXPECT

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

func (*MockUploader) Thumbnail

func (m *MockUploader) Thumbnail(ctx context.Context, userID string, data []byte) (string, error)

Thumbnail mocks base method.

type MockUploaderMockRecorder

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

MockUploaderMockRecorder is the mock recorder for MockUploader.

func (*MockUploaderMockRecorder) Thumbnail

func (mr *MockUploaderMockRecorder) Thumbnail(ctx, userID, data interface{}) *gomock.Call

Thumbnail indicates an expected call of Thumbnail.

type MockValidation

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

MockValidation is a mock of Validation interface.

func NewMockValidation

func NewMockValidation(ctrl *gomock.Controller) *MockValidation

NewMockValidation creates a new mock instance.

func (*MockValidation) EXPECT

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

func (*MockValidation) Relationship

func (m *MockValidation) Relationship(ctx context.Context, r *user.Relationship) error

Relationship mocks base method.

func (*MockValidation) User

func (m *MockValidation) User(ctx context.Context, u *user.User) error

User mocks base method.

type MockValidationMockRecorder

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

MockValidationMockRecorder is the mock recorder for MockValidation.

func (*MockValidationMockRecorder) Relationship

func (mr *MockValidationMockRecorder) Relationship(ctx, r interface{}) *gomock.Call

Relationship indicates an expected call of Relationship.

func (*MockValidationMockRecorder) User

func (mr *MockValidationMockRecorder) User(ctx, u interface{}) *gomock.Call

User indicates an expected call of User.

Jump to

Keyboard shortcuts

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