1
0
mirror of https://github.com/zhashkevych/go-sqlxmock.git synced 2025-06-12 21:47:29 +02:00

added tests

This commit is contained in:
Nikita Koryabkin
2019-12-03 12:47:50 +03:00
parent e062dfc202
commit 5a7ddb9845
7 changed files with 119 additions and 14 deletions

View File

@ -1,9 +1,5 @@
package sqlmock
import (
"database/sql/driver"
)
type statement struct {
conn *sqlmock
ex *ExpectedPrepare
@ -18,11 +14,3 @@ func (stmt *statement) Close() error {
func (stmt *statement) NumInput() int {
return -1
}
func (stmt *statement) Exec(args []driver.Value) (driver.Result, error) {
return stmt.conn.Exec(stmt.query, args)
}
func (stmt *statement) Query(args []driver.Value) (driver.Rows, error) {
return stmt.conn.Query(stmt.query, args)
}