Skip to content

Commit

Permalink
More coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapette committed Jun 22, 2017
1 parent bb2754e commit 37b4202
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ func TestTemplatesWithCLIArgs(t *testing.T) {
wantErr bool
}{
{"simple.tmpl", "simple-template.golden", false},
{"broken.tmpl", "broken-template.golden", true},
{"unknown-function.tmpl", "unknown-function.golden", true},
}

for _, tt := range tests {
Expand Down
1 change: 1 addition & 0 deletions integration/fixtures/broken.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{Int}} {{Int}
1 change: 1 addition & 0 deletions integration/fixtures/unknown-function.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{Int 42 42}} {{Madeup}}
1 change: 1 addition & 0 deletions integration/golden/broken-template.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
template: broken.tmpl:1: unexpected "}" in operand
1 change: 1 addition & 0 deletions integration/golden/unknown-function.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
template: unknown-function.tmpl:1: function "Madeup" not defined

0 comments on commit 37b4202

Please sign in to comment.