diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/functional/json/acudego.go (renamed from tests/functional/json.go) | 12 | ||||
| l--------- | tests/functional/json/main.go | 1 |
2 files changed, 8 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) } diff --git a/tests/functional/json/main.go b/tests/functional/json/main.go new file mode 120000 index 0000000..f67563d --- /dev/null +++ b/tests/functional/json/main.go @@ -0,0 +1 @@ +../../main.go
\ No newline at end of file |
