Skip to content

Commit

Permalink
Add example to FileTests doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mamachanko committed Sep 17, 2022
1 parent d7cef9a commit aba97c4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/filetests/filetests.go
Expand Up @@ -40,6 +40,17 @@ type EvaluateTemplate func(src string) (MarshalableResult, *TestErr)
// - expected output starting with `ERR:` indicate that expected output is an error message
// - expected output starting with `OUTPUT POSITION:` indicate that expected output is "pos" format
// - otherwise expected output is the literal output from template
//
// For example:
//
// #! my-test.tpltest
// ---
// #@ msg = "hello"
// msg: #@ msg
// +++
//
// msg: hello
//
type FileTests struct {
PathToTests string
EvalFunc EvaluateTemplate
Expand Down

0 comments on commit aba97c4

Please sign in to comment.