17 lines
213 B
Go
17 lines
213 B
Go
package config
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestGenerateConfig(t *testing.T) {
|
|
path := "./config.toml"
|
|
_, err := os.Stat(path)
|
|
if err != os.ErrNotExist {
|
|
_ = os.Remove(path)
|
|
}
|
|
|
|
_ = GenerateConfig()
|
|
}
|