Install yasnippet and vala-snippets packages
This commit is contained in:
21
elpa/yasnippet-20160924.2001/snippets/go-mode/testmain
Normal file
21
elpa/yasnippet-20160924.2001/snippets/go-mode/testmain
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: testmain
|
||||
# key: testmain
|
||||
# contributor : @atotto
|
||||
# --
|
||||
func TestMain(m *testing.M) {
|
||||
setup()
|
||||
ret := m.Run()
|
||||
if ret == 0 {
|
||||
teardown()
|
||||
}
|
||||
os.Exit(ret)
|
||||
}
|
||||
|
||||
func setup() {
|
||||
$1
|
||||
}
|
||||
|
||||
func teardown() {
|
||||
$2
|
||||
}
|
Reference in New Issue
Block a user