Documentation
¶
Overview ¶
Package test provides an opt-in @test directive for nflow test runs.
The bundle is intentionally not registered in the process-wide compiler registry or added to native.Bundles. Hosts mount it only when test behavior is explicitly enabled.
Index ¶
Constants ¶
View Source
const ID = "test"
Variables ¶
View Source
var Directive = compiler.Directive{ Name: "test", Example: "@test: result.ok == true\n@test {\n result.count > 0\n}", Handler: handleDirective, OpaqueBlock: true, }
Directive records a post-run assertion using the same syntax and metadata as @assert. Its availability is controlled by the host that mounts Bundle.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.