1
0
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:
Matthew Huxtable
2019-11-04 18:02:04 +00:00
parent e64ef33e8b
commit dd0fe2afd6
7 changed files with 329 additions and 5 deletions

10
sqlmock_before_go18.go Normal file
View 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{}
}