Skip to content

Instantly share code, notes, and snippets.

@manigandand
Created May 21, 2018 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manigandand/22057e013641016c2936d37cc9aa76fc to your computer and use it in GitHub Desktop.
Save manigandand/22057e013641016c2936d37cc9aa76fc to your computer and use it in GitHub Desktop.
AtomSnipets
'.source.go':
'ginkgo snipet':
'prefix': 'ginkgo'
'body': """var _ = Describe("Describe", func() {
Describe("Main Describe", func() {
Context("Context", func() {
It("Scenario", func() {
By("Test By")
Expect("test goginko").To(Equal("test goginko"))
})
})
})
})"""
'ginkgo Describe snipet':
'prefix': 'gDescribe'
'body': """Describe("Main Describe", func() {
Context("Context", func() {
It("Scenario", func() {
By("Test By")
Expect("test goginko").To(Equal("test goginko"))
})
})
})"""
'ginkgo Context snipet':
'prefix': 'gContext'
'body': """Context("Context", func() {
It("Scenario", func() {
By("Test By")
Expect("test goginko").To(Equal("test goginko"))
})
})"""
'ginkgo It snipet':
'prefix': 'gIt'
'body': """It("Scenario", func() {
By("Test By")
Expect("test goginko").To(Equal("test goginko"))
})"""
'return nil and error':
'prefix': 'rne'
'body': 'return nil, err'
'return false and error':
'prefix': 'rfe'
'body': 'return false, err'
'Return True and Nil':
'prefix': 'rte'
'body': 'return true, nil'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment