Tests, fixes.

This commit is contained in:
Nuno Cruces
2023-12-02 12:03:31 +00:00
parent c667a1f469
commit 8a0baedc10
11 changed files with 202 additions and 12 deletions

View File

@@ -51,6 +51,8 @@ func Example() {
}
func TestRegister(t *testing.T) {
t.Parallel()
db, err := sqlite3.Open(":memory:")
if err != nil {
t.Fatal(err)
@@ -106,6 +108,8 @@ Robert "Griesemer" "gri"`
}
func TestRegister_errors(t *testing.T) {
t.Parallel()
db, err := sqlite3.Open(":memory:")
if err != nil {
t.Fatal(err)

View File

@@ -3,6 +3,8 @@ package csv
import "testing"
func Test_uintParam(t *testing.T) {
t.Parallel()
tests := []struct {
arg string
key string

View File

@@ -3,6 +3,8 @@ package csv
import "testing"
func Test_getSchema(t *testing.T) {
t.Parallel()
tests := []struct {
header bool
columns int