Add tests for YAML file parsing.

This commit is contained in:
Will Rouesnel 2017-06-29 02:34:58 +10:00
parent 2f1ea098c0
commit 53ec2e7acc
3 changed files with 127 additions and 47 deletions

View file

@ -233,6 +233,7 @@ var hooksLoadFromFileTests = []struct {
ok bool
}{
{"../hooks.json.example", true},
{"../hooks.yaml.example", true},
{"", true},
// failures
{"missing.json", false},