mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
18 lines
267 B
Plaintext
18 lines
267 B
Plaintext
# name: func TestName(t *testing.T) { tests := []struct{ ... } ... }
|
|
# key: tf
|
|
# --
|
|
func Test${1:Name}(t *testing.T) {
|
|
tests := []struct {
|
|
name string
|
|
$0
|
|
}{
|
|
{
|
|
name: "",
|
|
},
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|
})
|
|
}
|
|
} |