no more logger

This commit is contained in:
Bel LaPointe
2019-05-02 09:35:45 -06:00
parent 1c3823b04e
commit e34c50184f
5 changed files with 160 additions and 1 deletions

29
config/config_test.go Normal file
View File

@@ -0,0 +1,29 @@
package config
import (
"os"
"testing"
)
func TestNew(t *testing.T) {
was := append([]string{}, os.Args...)
defer func() {
os.Args = was
}()
os.Args = []string{
"nothing",
"-addr", "str",
"-u", "str",
"-p", "str",
"-description", "str",
"-category", "str",
"-to", "str",
"-from", "str",
"-type", "str",
"-cost", "1.5",
"-date", "2019-03-04",
}
if err := New(); err != nil {
t.Fatalf("error on new: %v", err)
}
}