mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-13 00:54:53 +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
|
||||
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…
Add table
Reference in a new issue