Skip to content

Instantly share code, notes, and snippets.

@utkarshmani1997
Last active August 9, 2017 04:39
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 utkarshmani1997/2173f079125033ff914b02d8287f2508 to your computer and use it in GitHub Desktop.
Save utkarshmani1997/2173f079125033ff914b02d8287f2508 to your computer and use it in GitHub Desktop.
Demo of unit testing
package main_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestTestingDemo(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "TestingDemo Suite")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment