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

@@ -67,6 +67,8 @@ func Example() {
}
func Test_lines(t *testing.T) {
t.Parallel()
db, err := driver.Open(":memory:", func(c *sqlite3.Conn) error {
lines.Register(c)
return nil
@@ -95,6 +97,8 @@ func Test_lines(t *testing.T) {
}
func Test_lines_error(t *testing.T) {
t.Parallel()
db, err := driver.Open(":memory:", func(c *sqlite3.Conn) error {
lines.Register(c)
return nil
@@ -120,6 +124,8 @@ func Test_lines_error(t *testing.T) {
}
func Test_lines_read(t *testing.T) {
t.Parallel()
db, err := driver.Open(":memory:", func(c *sqlite3.Conn) error {
lines.Register(c)
return nil
@@ -149,6 +155,8 @@ func Test_lines_read(t *testing.T) {
}
func Test_lines_test(t *testing.T) {
t.Parallel()
db, err := driver.Open(":memory:", func(c *sqlite3.Conn) error {
lines.Register(c)
return nil