We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1225f commit 455e1a9Copy full SHA for 455e1a9
snippets/go.json
@@ -215,6 +215,11 @@
215
"body": "func Test$1(t *testing.T) {\n\t$0\n}",
216
"description": "Snippet for Test function"
217
},
218
+ "test main": {
219
+ "prefix": "tm",
220
+ "body": "func TestMain(m *testing.M) {\n\t$1\n\n\tos.Exit(m.Run())\n}",
221
+ "description": "Snippet for TestMain function"
222
+ },
223
"benchmark function": {
224
"prefix": "bf",
225
"body": "func Benchmark$1(b *testing.B) {\n\tfor ${2:i} := 0; ${2:i} < b.N; ${2:i}++ {\n\t\t$0\n\t}\n}",
0 commit comments