(query string, args ...interface{})
| 300 | } |
| 301 | |
| 302 | func (s *DBStub) Exec(query string, args ...interface{}) (sql.Result, error) { |
| 303 | s.LastExecSql = query |
| 304 | s.LastExecArgs = args |
| 305 | return &ResultStub{id: 1, affectedRows: 1}, nil |
| 306 | } |
| 307 | |
| 308 | func (s *DBStub) Query(query string, args ...interface{}) (*sql.Rows, error) { |
| 309 | s.LastQuerySql = query |
no outgoing calls
no test coverage detected