Skip to content

Instantly share code, notes, and snippets.

@partkyle
Created December 10, 2014 18:38
Show Gist options
  • Save partkyle/1bb851720f75c066dcd5 to your computer and use it in GitHub Desktop.
Save partkyle/1bb851720f75c066dcd5 to your computer and use it in GitHub Desktop.
GoSublime Completion Bug
package main_test
import (
"fmt"
"testing"
)
import . "github.com/onsi/ginkgo"
type Value struct {
A int
B Element
}
type Element struct {
E int
}
func (e *Element) PrintE() {
fmt.Println(e.E)
}
func TestInternalFunction(t *testing.T) {
var _ = Describe("testing this", func() {
var (
v Value
)
BeforeEach(func() {
v = Value{}
})
It("Should Run", func() {
v.B.PrintE()
})
It("should panic", func() {
})
})
}
var _ = Describe("testing this", func() {
var (
v Value
)
BeforeEach(func() {
v = Value{}
})
It("Should Run", func() {
v.B.PrintE()
})
It("should panic", func() {
})
})
func TestThis(t *testing.T) {
RunSpecs(t, "cuz")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment