Test tweaks.

This commit is contained in:
Nuno Cruces
2024-08-30 01:27:22 +01:00
parent 1660c41f8c
commit 3806c1cc23
6 changed files with 12 additions and 6 deletions

View File

@@ -58,9 +58,10 @@ func Example() {
// Hello BLOB!
}
func init() {
func TestMain(m *testing.M) {
sqlite3.AutoExtension(blobio.Register)
sqlite3.AutoExtension(array.Register)
m.Run()
}
func Test_readblob(t *testing.T) {

View File

@@ -12,8 +12,9 @@ import (
_ "github.com/ncruces/go-sqlite3/internal/testcfg"
)
func init() {
func TestMain(m *testing.M) {
sqlite3.AutoExtension(bloom.Register)
m.Run()
}
func TestRegister(t *testing.T) {

View File

@@ -54,8 +54,9 @@ func Example() {
// On Twosday, 1€ = $1.1342
}
func init() {
func TestMain(m *testing.M) {
sqlite3.AutoExtension(csv.Register)
m.Run()
}
func TestRegister(t *testing.T) {

View File

@@ -83,8 +83,9 @@ func Example() {
// gamma 80 75 78 80
}
func init() {
func TestMain(m *testing.M) {
sqlite3.AutoExtension(pivot.Register)
m.Run()
}
func TestRegister(t *testing.T) {

View File

@@ -48,8 +48,9 @@ func Example() {
// Twosday was 2022-2-22
}
func init() {
func TestMain(m *testing.M) {
sqlite3.AutoExtension(statement.Register)
m.Run()
}
func TestRegister(t *testing.T) {

View File

@@ -10,8 +10,9 @@ import (
_ "github.com/ncruces/go-sqlite3/internal/testcfg"
)
func init() {
func TestMain(m *testing.M) {
sqlite3.AutoExtension(stats.Register)
m.Run()
}
func TestRegister_variance(t *testing.T) {