Documentation
¶
Overview ¶
Package typeqlcheck is test support for validating generated TypeQL syntax with the official `typeql-check` CLI from typedb/typedb-tools.
The tool is a soft dependency: when the binary is not installed, assertions degrade to a one-time warning so contributors are never blocked. Set TYPEQL_CHECK_REQUIRED=1 (check.sh does this automatically when the binary is present) to turn a missing binary into a test failure instead.
Install with `make install-typeql-check`, or point TYPEQL_CHECK at a binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertValid ¶
AssertValid fails the test if query is not syntactically valid TypeQL. When the binary is missing it warns once and returns, unless TYPEQL_CHECK_REQUIRED=1 is set, in which case it fails the test.
func Available ¶
func Available() bool
Available reports whether the typeql-check binary can be found.
Types ¶
This section is empty.