mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-02 15:54:28 +00:00
13 lines
198 B
Go
13 lines
198 B
Go
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
|
|
}
|