Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecStubber ¶
ExecStubber is the actor which performs stubs of db.Exec()
func (*ExecStubber) Stub ¶
func (exec *ExecStubber) Stub(mock sqlmock.Sqlmock) *sqlmock.ExpectedExec
Stub stubs the execution with the given mock It uses .Err to provide connection errs, and Result to stub the desired output on caller
type QueryStubber ¶
QueryStubber is the actor which performs stubs of db.Query()
func (*QueryStubber) Stub ¶
func (query *QueryStubber) Stub(mock sqlmock.Sqlmock) *sqlmock.ExpectedQuery
Stub stubs the query with the given mock It uses .Err to provide connection errs, and Rows to stub the desired output on caller
Click to show internal directories.
Click to hide internal directories.