sqlboiler/boil/db_test.go
Patrick O'brien d89d23e673 Began implementing the ORM prototype
* Hooks, query mods, and query
* Update and UpdateX
2016-04-13 23:51:58 +10:00

17 lines
213 B
Go

package boil
import (
"database/sql"
"testing"
)
func TestGetSetDB(t *testing.T) {
t.Parallel()
SetDB(&sql.DB{})
if GetDB() == nil {
t.Errorf("Expected GetDB to return a database handle, got nil")
}
}