29 lines
340 B
Go
29 lines
340 B
Go
package main
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestMakeConfig(t *testing.T) {
|
|
config := &DbConfig{
|
|
"postgres",
|
|
"localhost",
|
|
"travis",
|
|
"",
|
|
"postgres",
|
|
5432,
|
|
"Testing",
|
|
"admin",
|
|
"admin",
|
|
}
|
|
err := config.Save()
|
|
assert.Nil(t, err)
|
|
}
|
|
|
|
func Test(t *testing.T) {
|
|
|
|
assert.Equal(t, "", "")
|
|
|
|
}
|