Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBConnectionMock ¶
type DBConnectionMock struct { Gorm *gorm.DB Mock sqlmock.Sqlmock // contains filtered or unexported fields }
DBConnectionMock structure.
func MockDBConnection ¶
func MockDBConnection() DBConnectionMock
MockDBConnection mocks a db connection and returns it.
func (DBConnectionMock) AssertAllExpectationsWereMet ¶
func (dbConnection DBConnectionMock) AssertAllExpectationsWereMet()
AssertAllExpectationsWereMet asserts all expectations were met on a mocked db connection.
func (*DBConnectionMock) Close ¶
func (dbConnection *DBConnectionMock) Close()
Close the mocked db connection.
Click to show internal directories.
Click to hide internal directories.