Created
September 23, 2017 05:10
-
-
Save catatsuy/349f98ae093c66ae753e7543dd86fe67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func TestMain(m *testing.M) { | |
d, err := ioutil.TempDir("", "fortest") | |
if err != nil { | |
log.Fatal(err) | |
} | |
setup(d) | |
code := m.Run() | |
clean(d) | |
os.Exit(code) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment