We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e746a commit 44e635fCopy full SHA for 44e635f
expectations_go18.go
@@ -16,7 +16,7 @@ func (e *ExpectedQuery) WillReturnRows(rows ...*Rows) *ExpectedQuery {
16
sets := make([]*Rows, len(rows))
17
for i, r := range rows {
18
sets[i] = r
19
- if r.def != nil {
+ if r != nil && r.def != nil {
20
defs++
21
}
22
0 commit comments