Skip to content

Commit

Permalink
updating tabstops in the tdt snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed May 2, 2017
1 parent 936fc14 commit 850e42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
},
"table driven test": {
"prefix": "tdt",
"body": "func Test$0(t *testing.T) {\n\ttestCases := []struct {\n\t\tdesc\tstring\n\t\t$1\n\t}{\n\t\t{\n\t\t\tdesc: \"$2\",\n\t\t\t$3\n\t\t},\n\t}\n\tfor _, tC := range testCases {\n\t\tt.Run(tC.desc, func(t *testing.T) {\n\t\t\t$4\n\t\t})\n\t}\n}"
"body": "func Test$1(t *testing.T) {\n\ttestCases := []struct {\n\t\tdesc\tstring\n\t\t$2\n\t}{\n\t\t{\n\t\t\tdesc: \"$3\",\n\t\t\t$4\n\t\t},\n\t}\n\tfor _, tC := range testCases {\n\t\tt.Run(tC.desc, func(t *testing.T) {\n\t\t\t$0\n\t\t})\n\t}\n}"
},
"init function": {
"prefix": "finit",
Expand Down

0 comments on commit 850e42e

Please sign in to comment.