yao/init_test.go
2021-09-08 18:40:02 +08:00

19 lines
204 B
Go

package main
import (
"os"
"testing"
)
var cfg Config
func TestMain(m *testing.M) {
cfg = NewConfig()
// Run test suites
exitVal := m.Run()
// we can do clean up code here
os.Exit(exitVal)
}