soft-serve

Fork https://github.com/charmbracelet/soft-serve

git clone git://git.lin.moe/go/soft-serve.git

 1package config
 2
 3import "testing"
 4
 5func TestNewConfigFile(t *testing.T) {
 6	for _, cfg := range []*Config{
 7		nil,
 8		DefaultConfig(),
 9		&Config{},
10	} {
11		if s := newConfigFile(cfg); s == "" {
12			t.Errorf("newConfigFile(nil) => %q, want non-empty string", s)
13		}
14	}
15}