diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/functional/json/acudego.go (renamed from tests/functional/json.go) | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/functional/json.go b/tests/functional/json/acudego.go index 352a72c..8f5e923 100644 --- a/tests/functional/json.go +++ b/tests/functional/json/acudego.go @@ -1,4 +1,4 @@ -package main +package acudego import ( "database/sql" @@ -7,10 +7,10 @@ import ( "errors" "log" "os" - - _ "acudego" ) + + type Tag struct { Name string `json:"name"` Place string `json:"place"` @@ -25,11 +25,13 @@ func (t *Tag) Value() (driver.Value, error) { return string(b), err } -func main() { + + +func MainTest() { os.Remove("json.db") defer os.Remove("json.db") - db, err := sql.Open("acudego", "json.db") + db, err := sql.Open(DriverName, "json.db") if err != nil { log.Fatal(err) } |
