initial commit of initial base framework
This commit is contained in:
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user