statping/main_test.go

29 lines
340 B
Go
Raw Normal View History

2018-06-10 08:05:57 +00:00
package main
import (
"github.com/stretchr/testify/assert"
2018-06-11 00:20:42 +00:00
"testing"
2018-06-10 08:05:57 +00:00
)
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, "", "")
2018-06-11 00:20:42 +00:00
}