You've already forked go-sqlxmock
mirror of
https://github.com/zhashkevych/go-sqlxmock.git
synced 2025-11-29 21:57:41 +02:00
add bool type to query arg matcher
This commit is contained in:
@@ -358,6 +358,10 @@ func (e *queryBasedExpectation) argsMatches(args []driver.Value) bool {
|
||||
if vi.String() != ai.String() {
|
||||
return false
|
||||
}
|
||||
case reflect.Bool:
|
||||
if vi.Bool() != ai.Bool() {
|
||||
return false
|
||||
}
|
||||
default:
|
||||
// compare types like time.Time based on type only
|
||||
if vi.Kind() != ai.Kind() {
|
||||
|
||||
Reference in New Issue
Block a user