gorqlite/util_test.go

24 lines
359 B
Go
Raw Permalink Normal View History

2016-09-01 16:47:49 +00:00
package gorqlite
import "os"
/*
No actual tests here, just utilities used by testing
*/
func testUrl() string {
url := os.Getenv("GORQLITE_TEST_URL")
2017-07-15 20:50:10 +00:00
if url == "" {
2016-09-01 16:47:49 +00:00
url = "http://"
}
return url
}
func testTableName() string {
tableName := os.Getenv("GORQLITE_TEST_TABLE")
2017-07-15 20:50:10 +00:00
if tableName == "" {
2016-09-01 16:47:49 +00:00
tableName = "gorqlite_test"
}
return tableName
}