Skip to content

Commit 4567d0a

Browse files
author
Benjamin Rupp
committed
Adjusting < go 1.8 implementation
1 parent 327ae5d commit 4567d0a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

expectations_before_go18.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package sqlmock
44

55
import (
6-
"database/sql/driver"
76
"fmt"
87
"reflect"
98
)
@@ -40,10 +39,6 @@ func (e *queryBasedExpectation) argsMatches(args []namedValue) error {
4039
return fmt.Errorf("could not convert %d argument %T - %+v to driver value: %s", k, e.args[k], e.args[k], err)
4140
}
4241

43-
if !driver.IsValue(darg) {
44-
return fmt.Errorf("argument %d: non-subset type %T returned from Value", k, darg)
45-
}
46-
4742
if !reflect.DeepEqual(darg, v.Value) {
4843
return fmt.Errorf("argument %d expected [%T - %+v] does not match actual [%T - %+v]", k, darg, darg, v.Value, v.Value)
4944
}

0 commit comments

Comments
 (0)