mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-05-13 21:56:39 +02:00
fix
This commit is contained in:
parent
e1791635b1
commit
db5c272208
@ -339,21 +339,6 @@ type queryBasedExpectation struct {
|
|||||||
args []driver.Value
|
args []driver.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *queryBasedExpectation) attemptArgMatch(args []namedValue) (err error) {
|
|
||||||
// catch panic
|
|
||||||
defer func() {
|
|
||||||
if e := recover(); e != nil {
|
|
||||||
_, ok := e.(error)
|
|
||||||
if !ok {
|
|
||||||
err = fmt.Errorf(e.(string))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
|
|
||||||
err = e.argsMatches(args)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// ExpectedPing is used to manage *sql.DB.Ping expectations.
|
// ExpectedPing is used to manage *sql.DB.Ping expectations.
|
||||||
// Returned by *Sqlmock.ExpectPing.
|
// Returned by *Sqlmock.ExpectPing.
|
||||||
type ExpectedPing struct {
|
type ExpectedPing struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user