statping/main_test.go

28 lines
339 B
Go
Raw Normal View History

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