1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-02 11:24:28 +00:00
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
}