d89d23e673
* Hooks, query mods, and query * Update and UpdateX
16 lines
213 B
Go
16 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")
|
|
}
|
|
}
|