Skip to content

Commit

Permalink
PushAsserter snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Oct 8, 2024
1 parent 3d6dce2 commit 0e14aab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"body": "defer err2.Handle(&err, func(err error) error {\n\t$0\n})\n",
"description": "Snippet for err2.Handle(&err, func(err error) error {})"
},
"defer assert.PushAsserter(asserter.Plain)()": {
"prefix": "apu",
"body": "defer assert.PushAsserter(${1:asserter.Plain})()\n",
"description": "Snippet for 1-liner pushing AND poping asserter.Plain"
},
"defer assert.PushTester(t)()": {
"prefix": "aspa",
"body": "defer assert.PushTester(${1:t})()\n",
Expand Down

0 comments on commit 0e14aab

Please sign in to comment.