initial commit of initial base framework

This commit is contained in:
joeybloggs
2015-10-25 15:18:54 -04:00
parent 9eea02345c
commit 8c02b7a6d7
3 changed files with 131 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
package webhooks
import (
"os"
"reflect"
"testing"
. "gopkg.in/go-playground/assert.v1"
)
// NOTES:
// - Run "go test" to run tests
// - Run "gocov test | gocov report" to report on test converage by file
// - Run "gocov test | gocov annotate -" to report on all code and functions, those ,marked with "MISS" were never called
//
// or
//
// -- may be a good idea to change to output path to somewherelike /tmp
// go test -coverprofile cover.out && go tool cover -html=cover.out -o cover.html
//
func TestMain(m *testing.M) {
// setup
os.Exit(m.Run())
// teardown
}
func TestHooks(t *testing.T) {
Equal(t, true, true)
results := New(&GitHubConfig{Provider: GitHub})
Equal(t, reflect.TypeOf(results).String(), "*webhooks.GitHubWebhook")
}