GoBlog/config_test.go

13 lines
198 B
Go
Raw Normal View History

2021-12-14 16:38:36 +00:00
package main
import (
"path/filepath"
"testing"
)
func createDefaultTestConfig(t *testing.T) *config {
c := createDefaultConfig()
c.Db.File = filepath.Join(t.TempDir(), "blog.db")
return c
}