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 ExpectPing to watch for db Ping calls
This commit is contained in:
10
sqlmock_before_go18.go
Normal file
10
sqlmock_before_go18.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// +build !go1.8
|
||||
|
||||
package sqlmock
|
||||
|
||||
import "log"
|
||||
|
||||
func (c *sqlmock) ExpectPing() *ExpectedPing {
|
||||
log.Println("ExpectPing has no effect on Go 1.7 or below")
|
||||
return &ExpectedPing{}
|
||||
}
|
||||
Reference in New Issue
Block a user