ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Ginkgo Completions

by onsi ALL

Sublime Completions for Ginkgo and Gomega

Details

Installs

  • Total 439
  • Win 93
  • Mac 267
  • Linux 79
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Ginkgo Sublime Completions

A collection of Ginkgo and Gomega completions for Sublime Text

Installation

Use Package Control to search for and install Ginkgo Completions.

Provided Completions

Ginkgo Completions

BDD DSL

desc→/Desc→
Describe("", func() {

})
cont→/Cont→
Context("", func() {

})
it→/It→
It("", func() {

})
bef→/Bef→
BeforeEach(func() {

})
jus→/Jus→
JustBeforeEach(func() {

})
aft→/Aft→
AfterEach(func() {

})

Suite lifecycle

befs→/Befs→
BeforeSuite(func() {

})
afts→/Afts→
AfterSuite(func() {

})
syncbefs→/Syncbefs→
SynchronizedBeforeSuite(func() []byte {
    //runs on node 1
    return
}, func(node1Data []byte) {
    //runs on all nodes 
})
syncafts→/Syncafts→
SynchronizedAfterSuite(func() {
    //runs on all nodes
}, func() {
    //runs on node 1 
})

Measurements

meas→/Meas→
Measure("", func(b Benchmarker) {

})

Gomega Completions

Synchronous assertions

Ω→
Ω().Should(Equal())
Ωerr→
Ω(err).ShouldNot(HaveOccurred())
ex→/Ex→
Expect().To(Equal())
exerr→/Exerr→
Expect(err).NotTo(HaveOccurred())

Asynchronous Assertions

ev→/Ev→
Eventually().Should(Equal())
evf→/Evf→
Eventually(func() interface{} {
    return
}).Should(Equal())
cons→/Cons→
Consistently().Should(Equal())
consf→/Consf→
Consistently(func() interface{} {
    return
}).Should(Equal())