build source
This commit is contained in:
commit
ee1fec43ed
4171 changed files with 1351288 additions and 0 deletions
12
vendor/github.com/fergusstrange/embedded-postgres/test_config.go
generated
vendored
Normal file
12
vendor/github.com/fergusstrange/embedded-postgres/test_config.go
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package embeddedpostgres
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestGetConnectionURL(t *testing.T) {
|
||||
config := DefaultConfig().Database("mydb").Username("myuser").Password("mypass")
|
||||
expect := "postgresql://myuser:mypass@localhost:5432/mydb"
|
||||
|
||||
if got := config.GetConnectionURL(); got != expect {
|
||||
t.Errorf("expected \"%s\" got \"%s\"", expect, got)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue