mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-13 17:14:44 +00:00
Merge pull request #371 from moorereason/feature/internal-hook
Make hook package internal
This commit is contained in:
commit
93ce24d3f3
4 changed files with 6 additions and 6 deletions
|
@ -373,10 +373,10 @@ var hooksLoadFromFileTests = []struct {
|
||||||
asTemplate bool
|
asTemplate bool
|
||||||
ok bool
|
ok bool
|
||||||
}{
|
}{
|
||||||
{"../hooks.json.example", false, true},
|
{"../../hooks.json.example", false, true},
|
||||||
{"../hooks.yaml.example", false, true},
|
{"../../hooks.yaml.example", false, true},
|
||||||
{"../hooks.json.tmpl.example", true, true},
|
{"../../hooks.json.tmpl.example", true, true},
|
||||||
{"../hooks.yaml.tmpl.example", true, true},
|
{"../../hooks.yaml.tmpl.example", true, true},
|
||||||
{"", false, true},
|
{"", false, true},
|
||||||
// failures
|
// failures
|
||||||
{"missing.json", false, false},
|
{"missing.json", false, false},
|
|
@ -15,7 +15,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/adnanh/webhook/hook"
|
"github.com/adnanh/webhook/internal/hook"
|
||||||
"github.com/codegangsta/negroni"
|
"github.com/codegangsta/negroni"
|
||||||
"github.com/gofrs/uuid"
|
"github.com/gofrs/uuid"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/adnanh/webhook/hook"
|
"github.com/adnanh/webhook/internal/hook"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStaticParams(t *testing.T) {
|
func TestStaticParams(t *testing.T) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue