3 ms·
This function takes a `query` of type `string` and a variable-length list of `args` of type `interface{}`, which is anything, (real implementations would have
by cratermoon 6y ago
This function takes a `query` of type `string` and a variable-length list of `args` of type `interface{}`, which is anything, (real implementations would have code to determine if the type is correct), and returns `(sql.Result, error)`
In this mock version, he's returning a nil for both. I take this as example code, because if the results are actually checked in the test, then the first result would have to be non-nil if the error was nil.
It doesn't really matter, because the author is saying not to do this.