Entries from 2015-01-21 to 1 day

testing.Mが追加されテスト実行前後に何かを書けるようになった

commit cmd/go, testing: add TestMain support · 182d131 · golang/go · GitHub issue testing: allow tests to control main execution · Issue #8202 · golang/go · GitHub 例えば // main_test.go var exitCode = 0 func TestMain(m *testing.M) { defer…