package
0.0.0-20241210134139-eeb2676d61cc
Repository: https://github.com/t1pcrips/platform-pkg.git
Documentation: pkg.go.dev
# Functions
NewClientMock returns a mock for mm_database.Client.
NewDBMock returns a mock for mm_database.DB.
NewNamedExecerMock returns a mock for mm_database.NamedExecer.
NewPingerMock returns a mock for mm_database.Pinger.
NewQueryExecerMock returns a mock for mm_database.QueryExecer.
NewSqlExecerMock returns a mock for mm_database.SqlExecer.
NewTransactorMock returns a mock for mm_database.Transactor.
NewTxManegerMock returns a mock for mm_database.TxManeger.
# Structs
ClientMock implements mm_database.Client.
ClientMockCloseExpectation specifies expectation struct of the Client.Close.
ClientMockCloseResults contains results of the Client.Close.
ClientMockDBExpectation specifies expectation struct of the Client.DB.
ClientMockDBResults contains results of the Client.DB.
DBMock implements mm_database.DB.
DBMockBeginTxExpectation specifies expectation struct of the DB.BeginTx.
DBMockBeginTxOrigins contains origins of expectations of the DB.BeginTx.
DBMockBeginTxParamPtrs contains pointers to parameters of the DB.BeginTx.
DBMockBeginTxParams contains parameters of the DB.BeginTx.
DBMockBeginTxResults contains results of the DB.BeginTx.
DBMockCloseExpectation specifies expectation struct of the DB.Close.
DBMockExecContextExpectation specifies expectation struct of the DB.ExecContext.
DBMockExecContextOrigins contains origins of expectations of the DB.ExecContext.
DBMockExecContextParamPtrs contains pointers to parameters of the DB.ExecContext.
DBMockExecContextParams contains parameters of the DB.ExecContext.
DBMockExecContextResults contains results of the DB.ExecContext.
DBMockPingExpectation specifies expectation struct of the DB.Ping.
DBMockPingOrigins contains origins of expectations of the DB.Ping.
DBMockPingParamPtrs contains pointers to parameters of the DB.Ping.
DBMockPingParams contains parameters of the DB.Ping.
DBMockPingResults contains results of the DB.Ping.
DBMockQueryContextExpectation specifies expectation struct of the DB.QueryContext.
DBMockQueryContextOrigins contains origins of expectations of the DB.QueryContext.
DBMockQueryContextParamPtrs contains pointers to parameters of the DB.QueryContext.
DBMockQueryContextParams contains parameters of the DB.QueryContext.
DBMockQueryContextResults contains results of the DB.QueryContext.
DBMockQueryRowContextExpectation specifies expectation struct of the DB.QueryRowContext.
DBMockQueryRowContextOrigins contains origins of expectations of the DB.QueryRowContext.
DBMockQueryRowContextParamPtrs contains pointers to parameters of the DB.QueryRowContext.
DBMockQueryRowContextParams contains parameters of the DB.QueryRowContext.
DBMockQueryRowContextResults contains results of the DB.QueryRowContext.
DBMockScanAllContextExpectation specifies expectation struct of the DB.ScanAllContext.
DBMockScanAllContextOrigins contains origins of expectations of the DB.ScanAllContext.
DBMockScanAllContextParamPtrs contains pointers to parameters of the DB.ScanAllContext.
DBMockScanAllContextParams contains parameters of the DB.ScanAllContext.
DBMockScanAllContextResults contains results of the DB.ScanAllContext.
DBMockScanOneContextExpectation specifies expectation struct of the DB.ScanOneContext.
DBMockScanOneContextOrigins contains origins of expectations of the DB.ScanOneContext.
DBMockScanOneContextParamPtrs contains pointers to parameters of the DB.ScanOneContext.
DBMockScanOneContextParams contains parameters of the DB.ScanOneContext.
DBMockScanOneContextResults contains results of the DB.ScanOneContext.
NamedExecerMock implements mm_database.NamedExecer.
NamedExecerMockScanAllContextExpectation specifies expectation struct of the NamedExecer.ScanAllContext.
NamedExecerMockScanAllContextOrigins contains origins of expectations of the NamedExecer.ScanAllContext.
NamedExecerMockScanAllContextParamPtrs contains pointers to parameters of the NamedExecer.ScanAllContext.
NamedExecerMockScanAllContextParams contains parameters of the NamedExecer.ScanAllContext.
NamedExecerMockScanAllContextResults contains results of the NamedExecer.ScanAllContext.
NamedExecerMockScanOneContextExpectation specifies expectation struct of the NamedExecer.ScanOneContext.
NamedExecerMockScanOneContextOrigins contains origins of expectations of the NamedExecer.ScanOneContext.
NamedExecerMockScanOneContextParamPtrs contains pointers to parameters of the NamedExecer.ScanOneContext.
NamedExecerMockScanOneContextParams contains parameters of the NamedExecer.ScanOneContext.
NamedExecerMockScanOneContextResults contains results of the NamedExecer.ScanOneContext.
PingerMock implements mm_database.Pinger.
PingerMockPingExpectation specifies expectation struct of the Pinger.Ping.
PingerMockPingOrigins contains origins of expectations of the Pinger.Ping.
PingerMockPingParamPtrs contains pointers to parameters of the Pinger.Ping.
PingerMockPingParams contains parameters of the Pinger.Ping.
PingerMockPingResults contains results of the Pinger.Ping.
QueryExecerMock implements mm_database.QueryExecer.
QueryExecerMockExecContextExpectation specifies expectation struct of the QueryExecer.ExecContext.
QueryExecerMockExecContextOrigins contains origins of expectations of the QueryExecer.ExecContext.
QueryExecerMockExecContextParamPtrs contains pointers to parameters of the QueryExecer.ExecContext.
QueryExecerMockExecContextParams contains parameters of the QueryExecer.ExecContext.
QueryExecerMockExecContextResults contains results of the QueryExecer.ExecContext.
QueryExecerMockQueryContextExpectation specifies expectation struct of the QueryExecer.QueryContext.
QueryExecerMockQueryContextOrigins contains origins of expectations of the QueryExecer.QueryContext.
QueryExecerMockQueryContextParamPtrs contains pointers to parameters of the QueryExecer.QueryContext.
QueryExecerMockQueryContextParams contains parameters of the QueryExecer.QueryContext.
QueryExecerMockQueryContextResults contains results of the QueryExecer.QueryContext.
QueryExecerMockQueryRowContextExpectation specifies expectation struct of the QueryExecer.QueryRowContext.
QueryExecerMockQueryRowContextOrigins contains origins of expectations of the QueryExecer.QueryRowContext.
QueryExecerMockQueryRowContextParamPtrs contains pointers to parameters of the QueryExecer.QueryRowContext.
QueryExecerMockQueryRowContextParams contains parameters of the QueryExecer.QueryRowContext.
QueryExecerMockQueryRowContextResults contains results of the QueryExecer.QueryRowContext.
SqlExecerMock implements mm_database.SqlExecer.
SqlExecerMockExecContextExpectation specifies expectation struct of the SqlExecer.ExecContext.
SqlExecerMockExecContextOrigins contains origins of expectations of the SqlExecer.ExecContext.
SqlExecerMockExecContextParamPtrs contains pointers to parameters of the SqlExecer.ExecContext.
SqlExecerMockExecContextParams contains parameters of the SqlExecer.ExecContext.
SqlExecerMockExecContextResults contains results of the SqlExecer.ExecContext.
SqlExecerMockQueryContextExpectation specifies expectation struct of the SqlExecer.QueryContext.
SqlExecerMockQueryContextOrigins contains origins of expectations of the SqlExecer.QueryContext.
SqlExecerMockQueryContextParamPtrs contains pointers to parameters of the SqlExecer.QueryContext.
SqlExecerMockQueryContextParams contains parameters of the SqlExecer.QueryContext.
SqlExecerMockQueryContextResults contains results of the SqlExecer.QueryContext.
SqlExecerMockQueryRowContextExpectation specifies expectation struct of the SqlExecer.QueryRowContext.
SqlExecerMockQueryRowContextOrigins contains origins of expectations of the SqlExecer.QueryRowContext.
SqlExecerMockQueryRowContextParamPtrs contains pointers to parameters of the SqlExecer.QueryRowContext.
SqlExecerMockQueryRowContextParams contains parameters of the SqlExecer.QueryRowContext.
SqlExecerMockQueryRowContextResults contains results of the SqlExecer.QueryRowContext.
SqlExecerMockScanAllContextExpectation specifies expectation struct of the SqlExecer.ScanAllContext.
SqlExecerMockScanAllContextOrigins contains origins of expectations of the SqlExecer.ScanAllContext.
SqlExecerMockScanAllContextParamPtrs contains pointers to parameters of the SqlExecer.ScanAllContext.
SqlExecerMockScanAllContextParams contains parameters of the SqlExecer.ScanAllContext.
SqlExecerMockScanAllContextResults contains results of the SqlExecer.ScanAllContext.
SqlExecerMockScanOneContextExpectation specifies expectation struct of the SqlExecer.ScanOneContext.
SqlExecerMockScanOneContextOrigins contains origins of expectations of the SqlExecer.ScanOneContext.
SqlExecerMockScanOneContextParamPtrs contains pointers to parameters of the SqlExecer.ScanOneContext.
SqlExecerMockScanOneContextParams contains parameters of the SqlExecer.ScanOneContext.
SqlExecerMockScanOneContextResults contains results of the SqlExecer.ScanOneContext.
TransactorMock implements mm_database.Transactor.
TransactorMockBeginTxExpectation specifies expectation struct of the Transactor.BeginTx.
TransactorMockBeginTxOrigins contains origins of expectations of the Transactor.BeginTx.
TransactorMockBeginTxParamPtrs contains pointers to parameters of the Transactor.BeginTx.
TransactorMockBeginTxParams contains parameters of the Transactor.BeginTx.
TransactorMockBeginTxResults contains results of the Transactor.BeginTx.
TxManegerMock implements mm_database.TxManeger.
TxManegerMockReadCommittedExpectation specifies expectation struct of the TxManeger.ReadCommitted.
TxManegerMockReadCommittedOrigins contains origins of expectations of the TxManeger.ReadCommitted.
TxManegerMockReadCommittedParamPtrs contains pointers to parameters of the TxManeger.ReadCommitted.
TxManegerMockReadCommittedParams contains parameters of the TxManeger.ReadCommitted.
TxManegerMockReadCommittedResults contains results of the TxManeger.ReadCommitted.