Skip to content

Instantly share code, notes, and snippets.

@glyn
Created January 13, 2015 17:42
Show Gist options
  • Save glyn/33fd0e9759d047002008 to your computer and use it in GitHub Desktop.
Save glyn/33fd0e9759d047002008 to your computer and use it in GitHub Desktop.
Ginkgo cgo test
package cgo_ginkgo_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestCgoGinkgo(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "CgoGinkgo Suite")
}
package cgo_ginkgo_test
import (
. "github.com/onsi/ginkgo"
)
var _ = Describe("Cgo", func() {
})
package cgo_ginkgo
package cgo_ginkgo_test
// #include <stdio.h>
import "C"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment