repo_description: Sql mock driver for golang to test database interactions
repo_topics: database go golang mock sql sql-driver tdd testing
code: package sqlmock
  
  type statement struct {
  	conn  *sqlmock
  	ex    *ExpectedPrepare
  	query string
  }
  
  func (stmt *statement) Close() error {
  	stmt.ex.wasClosed = true
  	return stmt.ex.closeErr
  }
  
  func (stmt *statement) NumInput() int {
  	return -1
  }
  