When a test file declares one or more expected diagnostics, we check those instead of checking the result value. The severities and source ranges must match. We don't test the error messages themselves because they are not part of the specification and may vary between implementations or, in future, be translated into other languages. |
||
---|---|---|
.. | ||
diagnostics.go | ||
log.go | ||
main.go | ||
README.md | ||
runner.go | ||
test_file.go | ||
traversals.go |
hclspecsuite
hclspecsuite
is the test harness for
the HCL specification test suite.