mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-03-19 20:57:50 +02:00
commit
7f7699b45e
@ -295,7 +295,7 @@ func (e *ExpectedPrepare) WillBeClosed() *ExpectedPrepare {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ExpectQuery allows to expect Query() or QueryRow() on this prepared statement.
|
// ExpectQuery allows to expect Query() or QueryRow() on this prepared statement.
|
||||||
// this method is convenient in order to prevent duplicating sql query string matching.
|
// This method is convenient in order to prevent duplicating sql query string matching.
|
||||||
func (e *ExpectedPrepare) ExpectQuery() *ExpectedQuery {
|
func (e *ExpectedPrepare) ExpectQuery() *ExpectedQuery {
|
||||||
eq := &ExpectedQuery{}
|
eq := &ExpectedQuery{}
|
||||||
eq.expectSQL = e.expectSQL
|
eq.expectSQL = e.expectSQL
|
||||||
@ -305,7 +305,7 @@ func (e *ExpectedPrepare) ExpectQuery() *ExpectedQuery {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ExpectExec allows to expect Exec() on this prepared statement.
|
// ExpectExec allows to expect Exec() on this prepared statement.
|
||||||
// this method is convenient in order to prevent duplicating sql query string matching.
|
// This method is convenient in order to prevent duplicating sql query string matching.
|
||||||
func (e *ExpectedPrepare) ExpectExec() *ExpectedExec {
|
func (e *ExpectedPrepare) ExpectExec() *ExpectedExec {
|
||||||
eq := &ExpectedExec{}
|
eq := &ExpectedExec{}
|
||||||
eq.expectSQL = e.expectSQL
|
eq.expectSQL = e.expectSQL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user