Merge pull request #371 from moorereason/feature/internal-hook
Make hook package internal
This commit is contained in:
commit
93ce24d3f3
@ -373,10 +373,10 @@ var hooksLoadFromFileTests = []struct {
|
||||
asTemplate bool
|
||||
ok bool
|
||||
}{
|
||||
{"../hooks.json.example", false, true},
|
||||
{"../hooks.yaml.example", false, true},
|
||||
{"../hooks.json.tmpl.example", true, true},
|
||||
{"../hooks.yaml.tmpl.example", true, true},
|
||||
{"../../hooks.json.example", false, true},
|
||||
{"../../hooks.yaml.example", false, true},
|
||||
{"../../hooks.json.tmpl.example", true, true},
|
||||
{"../../hooks.yaml.tmpl.example", true, true},
|
||||
{"", false, true},
|
||||
// failures
|
||||
{"missing.json", false, false},
|
@ -15,7 +15,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/adnanh/webhook/hook"
|
||||
"github.com/adnanh/webhook/internal/hook"
|
||||
"github.com/codegangsta/negroni"
|
||||
"github.com/gofrs/uuid"
|
||||
"github.com/gorilla/mux"
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
"github.com/adnanh/webhook/hook"
|
||||
"github.com/adnanh/webhook/internal/hook"
|
||||
)
|
||||
|
||||
func TestStaticParams(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user