mirror of
https://github.com/singchia/frontier.git
synced 2025-10-07 01:02:45 +08:00
19 lines
294 B
Go
19 lines
294 B
Go
package config
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestGenDefaultConfig(t *testing.T) {
|
|
file, err := os.OpenFile("../../../etc/frontlas.yaml", os.O_CREATE|os.O_RDWR, 0666)
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
defer file.Close()
|
|
err = genDefaultConfig(file)
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
}
|