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

Ginkgo Completions

by onsi ALL

Sublime Completions for Ginkgo and Gomega

Details

Installs

  • Total 445
  • Win 95
  • Mac 270
  • Linux 80
May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15
Windows 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 1 0 0 0 0 0
Mac 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
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 1 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())