mocks

package
v0.0.0-...-dc534c3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeTxMock

type FakeTxMock struct {
	BeginMock mFakeTxMockBegin

	BeginFuncMock mFakeTxMockBeginFunc

	CommitMock mFakeTxMockCommit

	ConnMock mFakeTxMockConn

	CopyFromMock mFakeTxMockCopyFrom

	ExecMock mFakeTxMockExec

	LargeObjectsMock mFakeTxMockLargeObjects

	PrepareMock mFakeTxMockPrepare

	QueryMock mFakeTxMockQuery

	QueryFuncMock mFakeTxMockQueryFunc

	QueryRowMock mFakeTxMockQueryRow

	RollbackMock mFakeTxMockRollback

	SendBatchMock mFakeTxMockSendBatch
	// contains filtered or unexported fields
}

FakeTxMock implements service.FakeTx

func NewFakeTxMock

func NewFakeTxMock(t minimock.Tester) *FakeTxMock

NewFakeTxMock returns a mock for service.FakeTx

func (*FakeTxMock) Begin

func (mmBegin *FakeTxMock) Begin(ctx context.Context) (t1 pgx.Tx, err error)

Begin implements service.FakeTx

func (*FakeTxMock) BeginAfterCounter

func (mmBegin *FakeTxMock) BeginAfterCounter() uint64

BeginAfterCounter returns a count of finished FakeTxMock.Begin invocations

func (*FakeTxMock) BeginBeforeCounter

func (mmBegin *FakeTxMock) BeginBeforeCounter() uint64

BeginBeforeCounter returns a count of FakeTxMock.Begin invocations

func (*FakeTxMock) BeginFunc

func (mmBeginFunc *FakeTxMock) BeginFunc(ctx context.Context, f func(pgx.Tx) error) (err error)

BeginFunc implements service.FakeTx

func (*FakeTxMock) BeginFuncAfterCounter

func (mmBeginFunc *FakeTxMock) BeginFuncAfterCounter() uint64

BeginFuncAfterCounter returns a count of finished FakeTxMock.BeginFunc invocations

func (*FakeTxMock) BeginFuncBeforeCounter

func (mmBeginFunc *FakeTxMock) BeginFuncBeforeCounter() uint64

BeginFuncBeforeCounter returns a count of FakeTxMock.BeginFunc invocations

func (*FakeTxMock) Commit

func (mmCommit *FakeTxMock) Commit(ctx context.Context) (err error)

Commit implements service.FakeTx

func (*FakeTxMock) CommitAfterCounter

func (mmCommit *FakeTxMock) CommitAfterCounter() uint64

CommitAfterCounter returns a count of finished FakeTxMock.Commit invocations

func (*FakeTxMock) CommitBeforeCounter

func (mmCommit *FakeTxMock) CommitBeforeCounter() uint64

CommitBeforeCounter returns a count of FakeTxMock.Commit invocations

func (*FakeTxMock) Conn

func (mmConn *FakeTxMock) Conn() (cp1 *pgx.Conn)

Conn implements service.FakeTx

func (*FakeTxMock) ConnAfterCounter

func (mmConn *FakeTxMock) ConnAfterCounter() uint64

ConnAfterCounter returns a count of finished FakeTxMock.Conn invocations

func (*FakeTxMock) ConnBeforeCounter

func (mmConn *FakeTxMock) ConnBeforeCounter() uint64

ConnBeforeCounter returns a count of FakeTxMock.Conn invocations

func (*FakeTxMock) CopyFrom

func (mmCopyFrom *FakeTxMock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (i1 int64, err error)

CopyFrom implements service.FakeTx

func (*FakeTxMock) CopyFromAfterCounter

func (mmCopyFrom *FakeTxMock) CopyFromAfterCounter() uint64

CopyFromAfterCounter returns a count of finished FakeTxMock.CopyFrom invocations

func (*FakeTxMock) CopyFromBeforeCounter

func (mmCopyFrom *FakeTxMock) CopyFromBeforeCounter() uint64

CopyFromBeforeCounter returns a count of FakeTxMock.CopyFrom invocations

func (*FakeTxMock) Exec

func (mmExec *FakeTxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error)

Exec implements service.FakeTx

func (*FakeTxMock) ExecAfterCounter

func (mmExec *FakeTxMock) ExecAfterCounter() uint64

ExecAfterCounter returns a count of finished FakeTxMock.Exec invocations

func (*FakeTxMock) ExecBeforeCounter

func (mmExec *FakeTxMock) ExecBeforeCounter() uint64

ExecBeforeCounter returns a count of FakeTxMock.Exec invocations

func (*FakeTxMock) LargeObjects

func (mmLargeObjects *FakeTxMock) LargeObjects() (l1 pgx.LargeObjects)

LargeObjects implements service.FakeTx

func (*FakeTxMock) LargeObjectsAfterCounter

func (mmLargeObjects *FakeTxMock) LargeObjectsAfterCounter() uint64

LargeObjectsAfterCounter returns a count of finished FakeTxMock.LargeObjects invocations

func (*FakeTxMock) LargeObjectsBeforeCounter

func (mmLargeObjects *FakeTxMock) LargeObjectsBeforeCounter() uint64

LargeObjectsBeforeCounter returns a count of FakeTxMock.LargeObjects invocations

func (*FakeTxMock) MinimockBeginDone

func (m *FakeTxMock) MinimockBeginDone() bool

MinimockBeginDone returns true if the count of the Begin invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockBeginFuncDone

func (m *FakeTxMock) MinimockBeginFuncDone() bool

MinimockBeginFuncDone returns true if the count of the BeginFunc invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockBeginFuncInspect

func (m *FakeTxMock) MinimockBeginFuncInspect()

MinimockBeginFuncInspect logs each unmet expectation

func (*FakeTxMock) MinimockBeginInspect

func (m *FakeTxMock) MinimockBeginInspect()

MinimockBeginInspect logs each unmet expectation

func (*FakeTxMock) MinimockCommitDone

func (m *FakeTxMock) MinimockCommitDone() bool

MinimockCommitDone returns true if the count of the Commit invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockCommitInspect

func (m *FakeTxMock) MinimockCommitInspect()

MinimockCommitInspect logs each unmet expectation

func (*FakeTxMock) MinimockConnDone

func (m *FakeTxMock) MinimockConnDone() bool

MinimockConnDone returns true if the count of the Conn invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockConnInspect

func (m *FakeTxMock) MinimockConnInspect()

MinimockConnInspect logs each unmet expectation

func (*FakeTxMock) MinimockCopyFromDone

func (m *FakeTxMock) MinimockCopyFromDone() bool

MinimockCopyFromDone returns true if the count of the CopyFrom invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockCopyFromInspect

func (m *FakeTxMock) MinimockCopyFromInspect()

MinimockCopyFromInspect logs each unmet expectation

func (*FakeTxMock) MinimockExecDone

func (m *FakeTxMock) MinimockExecDone() bool

MinimockExecDone returns true if the count of the Exec invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockExecInspect

func (m *FakeTxMock) MinimockExecInspect()

MinimockExecInspect logs each unmet expectation

func (*FakeTxMock) MinimockFinish

func (m *FakeTxMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*FakeTxMock) MinimockLargeObjectsDone

func (m *FakeTxMock) MinimockLargeObjectsDone() bool

MinimockLargeObjectsDone returns true if the count of the LargeObjects invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockLargeObjectsInspect

func (m *FakeTxMock) MinimockLargeObjectsInspect()

MinimockLargeObjectsInspect logs each unmet expectation

func (*FakeTxMock) MinimockPrepareDone

func (m *FakeTxMock) MinimockPrepareDone() bool

MinimockPrepareDone returns true if the count of the Prepare invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockPrepareInspect

func (m *FakeTxMock) MinimockPrepareInspect()

MinimockPrepareInspect logs each unmet expectation

func (*FakeTxMock) MinimockQueryDone

func (m *FakeTxMock) MinimockQueryDone() bool

MinimockQueryDone returns true if the count of the Query invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockQueryFuncDone

func (m *FakeTxMock) MinimockQueryFuncDone() bool

MinimockQueryFuncDone returns true if the count of the QueryFunc invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockQueryFuncInspect

func (m *FakeTxMock) MinimockQueryFuncInspect()

MinimockQueryFuncInspect logs each unmet expectation

func (*FakeTxMock) MinimockQueryInspect

func (m *FakeTxMock) MinimockQueryInspect()

MinimockQueryInspect logs each unmet expectation

func (*FakeTxMock) MinimockQueryRowDone

func (m *FakeTxMock) MinimockQueryRowDone() bool

MinimockQueryRowDone returns true if the count of the QueryRow invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockQueryRowInspect

func (m *FakeTxMock) MinimockQueryRowInspect()

MinimockQueryRowInspect logs each unmet expectation

func (*FakeTxMock) MinimockRollbackDone

func (m *FakeTxMock) MinimockRollbackDone() bool

MinimockRollbackDone returns true if the count of the Rollback invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockRollbackInspect

func (m *FakeTxMock) MinimockRollbackInspect()

MinimockRollbackInspect logs each unmet expectation

func (*FakeTxMock) MinimockSendBatchDone

func (m *FakeTxMock) MinimockSendBatchDone() bool

MinimockSendBatchDone returns true if the count of the SendBatch invocations corresponds the number of defined expectations

func (*FakeTxMock) MinimockSendBatchInspect

func (m *FakeTxMock) MinimockSendBatchInspect()

MinimockSendBatchInspect logs each unmet expectation

func (*FakeTxMock) MinimockWait

func (m *FakeTxMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*FakeTxMock) Prepare

func (mmPrepare *FakeTxMock) Prepare(ctx context.Context, name string, sql string) (sp1 *pgconn.StatementDescription, err error)

Prepare implements service.FakeTx

func (*FakeTxMock) PrepareAfterCounter

func (mmPrepare *FakeTxMock) PrepareAfterCounter() uint64

PrepareAfterCounter returns a count of finished FakeTxMock.Prepare invocations

func (*FakeTxMock) PrepareBeforeCounter

func (mmPrepare *FakeTxMock) PrepareBeforeCounter() uint64

PrepareBeforeCounter returns a count of FakeTxMock.Prepare invocations

func (*FakeTxMock) Query

func (mmQuery *FakeTxMock) Query(ctx context.Context, sql string, args ...interface{}) (r1 pgx.Rows, err error)

Query implements service.FakeTx

func (*FakeTxMock) QueryAfterCounter

func (mmQuery *FakeTxMock) QueryAfterCounter() uint64

QueryAfterCounter returns a count of finished FakeTxMock.Query invocations

func (*FakeTxMock) QueryBeforeCounter

func (mmQuery *FakeTxMock) QueryBeforeCounter() uint64

QueryBeforeCounter returns a count of FakeTxMock.Query invocations

func (*FakeTxMock) QueryFunc

func (mmQueryFunc *FakeTxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, f func(pgx.QueryFuncRow) error) (c2 pgconn.CommandTag, err error)

QueryFunc implements service.FakeTx

func (*FakeTxMock) QueryFuncAfterCounter

func (mmQueryFunc *FakeTxMock) QueryFuncAfterCounter() uint64

QueryFuncAfterCounter returns a count of finished FakeTxMock.QueryFunc invocations

func (*FakeTxMock) QueryFuncBeforeCounter

func (mmQueryFunc *FakeTxMock) QueryFuncBeforeCounter() uint64

QueryFuncBeforeCounter returns a count of FakeTxMock.QueryFunc invocations

func (*FakeTxMock) QueryRow

func (mmQueryRow *FakeTxMock) QueryRow(ctx context.Context, sql string, args ...interface{}) (r1 pgx.Row)

QueryRow implements service.FakeTx

func (*FakeTxMock) QueryRowAfterCounter

func (mmQueryRow *FakeTxMock) QueryRowAfterCounter() uint64

QueryRowAfterCounter returns a count of finished FakeTxMock.QueryRow invocations

func (*FakeTxMock) QueryRowBeforeCounter

func (mmQueryRow *FakeTxMock) QueryRowBeforeCounter() uint64

QueryRowBeforeCounter returns a count of FakeTxMock.QueryRow invocations

func (*FakeTxMock) Rollback

func (mmRollback *FakeTxMock) Rollback(ctx context.Context) (err error)

Rollback implements service.FakeTx

func (*FakeTxMock) RollbackAfterCounter

func (mmRollback *FakeTxMock) RollbackAfterCounter() uint64

RollbackAfterCounter returns a count of finished FakeTxMock.Rollback invocations

func (*FakeTxMock) RollbackBeforeCounter

func (mmRollback *FakeTxMock) RollbackBeforeCounter() uint64

RollbackBeforeCounter returns a count of FakeTxMock.Rollback invocations

func (*FakeTxMock) SendBatch

func (mmSendBatch *FakeTxMock) SendBatch(ctx context.Context, b *pgx.Batch) (b1 pgx.BatchResults)

SendBatch implements service.FakeTx

func (*FakeTxMock) SendBatchAfterCounter

func (mmSendBatch *FakeTxMock) SendBatchAfterCounter() uint64

SendBatchAfterCounter returns a count of finished FakeTxMock.SendBatch invocations

func (*FakeTxMock) SendBatchBeforeCounter

func (mmSendBatch *FakeTxMock) SendBatchBeforeCounter() uint64

SendBatchBeforeCounter returns a count of FakeTxMock.SendBatch invocations

type FakeTxMockBeginExpectation

type FakeTxMockBeginExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockBeginExpectation specifies expectation struct of the FakeTx.Begin

func (*FakeTxMockBeginExpectation) Then

func (e *FakeTxMockBeginExpectation) Then(t1 pgx.Tx, err error) *FakeTxMock

Then sets up FakeTx.Begin return parameters for the expectation previously defined by the When method

type FakeTxMockBeginFuncExpectation

type FakeTxMockBeginFuncExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockBeginFuncExpectation specifies expectation struct of the FakeTx.BeginFunc

func (*FakeTxMockBeginFuncExpectation) Then

Then sets up FakeTx.BeginFunc return parameters for the expectation previously defined by the When method

type FakeTxMockBeginFuncParams

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

FakeTxMockBeginFuncParams contains parameters of the FakeTx.BeginFunc

type FakeTxMockBeginFuncResults

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

FakeTxMockBeginFuncResults contains results of the FakeTx.BeginFunc

type FakeTxMockBeginParams

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

FakeTxMockBeginParams contains parameters of the FakeTx.Begin

type FakeTxMockBeginResults

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

FakeTxMockBeginResults contains results of the FakeTx.Begin

type FakeTxMockCommitExpectation

type FakeTxMockCommitExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockCommitExpectation specifies expectation struct of the FakeTx.Commit

func (*FakeTxMockCommitExpectation) Then

Then sets up FakeTx.Commit return parameters for the expectation previously defined by the When method

type FakeTxMockCommitParams

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

FakeTxMockCommitParams contains parameters of the FakeTx.Commit

type FakeTxMockCommitResults

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

FakeTxMockCommitResults contains results of the FakeTx.Commit

type FakeTxMockConnExpectation

type FakeTxMockConnExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockConnExpectation specifies expectation struct of the FakeTx.Conn

type FakeTxMockConnResults

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

FakeTxMockConnResults contains results of the FakeTx.Conn

type FakeTxMockCopyFromExpectation

type FakeTxMockCopyFromExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockCopyFromExpectation specifies expectation struct of the FakeTx.CopyFrom

func (*FakeTxMockCopyFromExpectation) Then

Then sets up FakeTx.CopyFrom return parameters for the expectation previously defined by the When method

type FakeTxMockCopyFromParams

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

FakeTxMockCopyFromParams contains parameters of the FakeTx.CopyFrom

type FakeTxMockCopyFromResults

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

FakeTxMockCopyFromResults contains results of the FakeTx.CopyFrom

type FakeTxMockExecExpectation

type FakeTxMockExecExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockExecExpectation specifies expectation struct of the FakeTx.Exec

func (*FakeTxMockExecExpectation) Then

func (e *FakeTxMockExecExpectation) Then(commandTag pgconn.CommandTag, err error) *FakeTxMock

Then sets up FakeTx.Exec return parameters for the expectation previously defined by the When method

type FakeTxMockExecParams

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

FakeTxMockExecParams contains parameters of the FakeTx.Exec

type FakeTxMockExecResults

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

FakeTxMockExecResults contains results of the FakeTx.Exec

type FakeTxMockLargeObjectsExpectation

type FakeTxMockLargeObjectsExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockLargeObjectsExpectation specifies expectation struct of the FakeTx.LargeObjects

type FakeTxMockLargeObjectsResults

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

FakeTxMockLargeObjectsResults contains results of the FakeTx.LargeObjects

type FakeTxMockPrepareExpectation

type FakeTxMockPrepareExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockPrepareExpectation specifies expectation struct of the FakeTx.Prepare

func (*FakeTxMockPrepareExpectation) Then

Then sets up FakeTx.Prepare return parameters for the expectation previously defined by the When method

type FakeTxMockPrepareParams

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

FakeTxMockPrepareParams contains parameters of the FakeTx.Prepare

type FakeTxMockPrepareResults

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

FakeTxMockPrepareResults contains results of the FakeTx.Prepare

type FakeTxMockQueryExpectation

type FakeTxMockQueryExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockQueryExpectation specifies expectation struct of the FakeTx.Query

func (*FakeTxMockQueryExpectation) Then

func (e *FakeTxMockQueryExpectation) Then(r1 pgx.Rows, err error) *FakeTxMock

Then sets up FakeTx.Query return parameters for the expectation previously defined by the When method

type FakeTxMockQueryFuncExpectation

type FakeTxMockQueryFuncExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockQueryFuncExpectation specifies expectation struct of the FakeTx.QueryFunc

func (*FakeTxMockQueryFuncExpectation) Then

Then sets up FakeTx.QueryFunc return parameters for the expectation previously defined by the When method

type FakeTxMockQueryFuncParams

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

FakeTxMockQueryFuncParams contains parameters of the FakeTx.QueryFunc

type FakeTxMockQueryFuncResults

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

FakeTxMockQueryFuncResults contains results of the FakeTx.QueryFunc

type FakeTxMockQueryParams

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

FakeTxMockQueryParams contains parameters of the FakeTx.Query

type FakeTxMockQueryResults

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

FakeTxMockQueryResults contains results of the FakeTx.Query

type FakeTxMockQueryRowExpectation

type FakeTxMockQueryRowExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockQueryRowExpectation specifies expectation struct of the FakeTx.QueryRow

func (*FakeTxMockQueryRowExpectation) Then

func (e *FakeTxMockQueryRowExpectation) Then(r1 pgx.Row) *FakeTxMock

Then sets up FakeTx.QueryRow return parameters for the expectation previously defined by the When method

type FakeTxMockQueryRowParams

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

FakeTxMockQueryRowParams contains parameters of the FakeTx.QueryRow

type FakeTxMockQueryRowResults

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

FakeTxMockQueryRowResults contains results of the FakeTx.QueryRow

type FakeTxMockRollbackExpectation

type FakeTxMockRollbackExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockRollbackExpectation specifies expectation struct of the FakeTx.Rollback

func (*FakeTxMockRollbackExpectation) Then

Then sets up FakeTx.Rollback return parameters for the expectation previously defined by the When method

type FakeTxMockRollbackParams

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

FakeTxMockRollbackParams contains parameters of the FakeTx.Rollback

type FakeTxMockRollbackResults

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

FakeTxMockRollbackResults contains results of the FakeTx.Rollback

type FakeTxMockSendBatchExpectation

type FakeTxMockSendBatchExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

FakeTxMockSendBatchExpectation specifies expectation struct of the FakeTx.SendBatch

func (*FakeTxMockSendBatchExpectation) Then

func (e *FakeTxMockSendBatchExpectation) Then(b1 pgx.BatchResults) *FakeTxMock

Then sets up FakeTx.SendBatch return parameters for the expectation previously defined by the When method

type FakeTxMockSendBatchParams

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

FakeTxMockSendBatchParams contains parameters of the FakeTx.SendBatch

type FakeTxMockSendBatchResults

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

FakeTxMockSendBatchResults contains results of the FakeTx.SendBatch

type UserServiceMock

type UserServiceMock struct {
	CreateMock mUserServiceMockCreate

	DeleteMock mUserServiceMockDelete

	GetMock mUserServiceMockGet

	UpdateMock mUserServiceMockUpdate
	// contains filtered or unexported fields
}

UserServiceMock implements service.UserService

func NewUserServiceMock

func NewUserServiceMock(t minimock.Tester) *UserServiceMock

NewUserServiceMock returns a mock for service.UserService

func (*UserServiceMock) Create

func (mmCreate *UserServiceMock) Create(ctx context.Context, userInfo *model.UserInfo, userPassword *model.UserPassword) (i1 int64, err error)

Create implements service.UserService

func (*UserServiceMock) CreateAfterCounter

func (mmCreate *UserServiceMock) CreateAfterCounter() uint64

CreateAfterCounter returns a count of finished UserServiceMock.Create invocations

func (*UserServiceMock) CreateBeforeCounter

func (mmCreate *UserServiceMock) CreateBeforeCounter() uint64

CreateBeforeCounter returns a count of UserServiceMock.Create invocations

func (*UserServiceMock) Delete

func (mmDelete *UserServiceMock) Delete(ctx context.Context, id int64) (err error)

Delete implements service.UserService

func (*UserServiceMock) DeleteAfterCounter

func (mmDelete *UserServiceMock) DeleteAfterCounter() uint64

DeleteAfterCounter returns a count of finished UserServiceMock.Delete invocations

func (*UserServiceMock) DeleteBeforeCounter

func (mmDelete *UserServiceMock) DeleteBeforeCounter() uint64

DeleteBeforeCounter returns a count of UserServiceMock.Delete invocations

func (*UserServiceMock) Get

func (mmGet *UserServiceMock) Get(ctx context.Context, id int64) (up1 *model.UserPublic, err error)

Get implements service.UserService

func (*UserServiceMock) GetAfterCounter

func (mmGet *UserServiceMock) GetAfterCounter() uint64

GetAfterCounter returns a count of finished UserServiceMock.Get invocations

func (*UserServiceMock) GetBeforeCounter

func (mmGet *UserServiceMock) GetBeforeCounter() uint64

GetBeforeCounter returns a count of UserServiceMock.Get invocations

func (*UserServiceMock) MinimockCreateDone

func (m *UserServiceMock) MinimockCreateDone() bool

MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations

func (*UserServiceMock) MinimockCreateInspect

func (m *UserServiceMock) MinimockCreateInspect()

MinimockCreateInspect logs each unmet expectation

func (*UserServiceMock) MinimockDeleteDone

func (m *UserServiceMock) MinimockDeleteDone() bool

MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations

func (*UserServiceMock) MinimockDeleteInspect

func (m *UserServiceMock) MinimockDeleteInspect()

MinimockDeleteInspect logs each unmet expectation

func (*UserServiceMock) MinimockFinish

func (m *UserServiceMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*UserServiceMock) MinimockGetDone

func (m *UserServiceMock) MinimockGetDone() bool

MinimockGetDone returns true if the count of the Get invocations corresponds the number of defined expectations

func (*UserServiceMock) MinimockGetInspect

func (m *UserServiceMock) MinimockGetInspect()

MinimockGetInspect logs each unmet expectation

func (*UserServiceMock) MinimockUpdateDone

func (m *UserServiceMock) MinimockUpdateDone() bool

MinimockUpdateDone returns true if the count of the Update invocations corresponds the number of defined expectations

func (*UserServiceMock) MinimockUpdateInspect

func (m *UserServiceMock) MinimockUpdateInspect()

MinimockUpdateInspect logs each unmet expectation

func (*UserServiceMock) MinimockWait

func (m *UserServiceMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*UserServiceMock) Update

func (mmUpdate *UserServiceMock) Update(ctx context.Context, id int64, userInfo *model.UserInfo) (err error)

Update implements service.UserService

func (*UserServiceMock) UpdateAfterCounter

func (mmUpdate *UserServiceMock) UpdateAfterCounter() uint64

UpdateAfterCounter returns a count of finished UserServiceMock.Update invocations

func (*UserServiceMock) UpdateBeforeCounter

func (mmUpdate *UserServiceMock) UpdateBeforeCounter() uint64

UpdateBeforeCounter returns a count of UserServiceMock.Update invocations

type UserServiceMockCreateExpectation

type UserServiceMockCreateExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

UserServiceMockCreateExpectation specifies expectation struct of the UserService.Create

func (*UserServiceMockCreateExpectation) Then

Then sets up UserService.Create return parameters for the expectation previously defined by the When method

type UserServiceMockCreateParams

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

UserServiceMockCreateParams contains parameters of the UserService.Create

type UserServiceMockCreateResults

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

UserServiceMockCreateResults contains results of the UserService.Create

type UserServiceMockDeleteExpectation

type UserServiceMockDeleteExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

UserServiceMockDeleteExpectation specifies expectation struct of the UserService.Delete

func (*UserServiceMockDeleteExpectation) Then

Then sets up UserService.Delete return parameters for the expectation previously defined by the When method

type UserServiceMockDeleteParams

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

UserServiceMockDeleteParams contains parameters of the UserService.Delete

type UserServiceMockDeleteResults

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

UserServiceMockDeleteResults contains results of the UserService.Delete

type UserServiceMockGetExpectation

type UserServiceMockGetExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

UserServiceMockGetExpectation specifies expectation struct of the UserService.Get

func (*UserServiceMockGetExpectation) Then

Then sets up UserService.Get return parameters for the expectation previously defined by the When method

type UserServiceMockGetParams

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

UserServiceMockGetParams contains parameters of the UserService.Get

type UserServiceMockGetResults

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

UserServiceMockGetResults contains results of the UserService.Get

type UserServiceMockUpdateExpectation

type UserServiceMockUpdateExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

UserServiceMockUpdateExpectation specifies expectation struct of the UserService.Update

func (*UserServiceMockUpdateExpectation) Then

Then sets up UserService.Update return parameters for the expectation previously defined by the When method

type UserServiceMockUpdateParams

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

UserServiceMockUpdateParams contains parameters of the UserService.Update

type UserServiceMockUpdateResults

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

UserServiceMockUpdateResults contains results of the UserService.Update

Jump to

Keyboard shortcuts

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