mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-04-27 12:12:18 +02:00
Adjusting < go 1.8 implementation
This commit is contained in:
parent
327ae5dcb6
commit
4567d0a670
@ -3,7 +3,6 @@
|
||||
package sqlmock
|
||||
|
||||
import (
|
||||
"database/sql/driver"
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
@ -40,10 +39,6 @@ func (e *queryBasedExpectation) argsMatches(args []namedValue) error {
|
||||
return fmt.Errorf("could not convert %d argument %T - %+v to driver value: %s", k, e.args[k], e.args[k], err)
|
||||
}
|
||||
|
||||
if !driver.IsValue(darg) {
|
||||
return fmt.Errorf("argument %d: non-subset type %T returned from Value", k, darg)
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(darg, v.Value) {
|
||||
return fmt.Errorf("argument %d expected [%T - %+v] does not match actual [%T - %+v]", k, darg, darg, v.Value, v.Value)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user