Documentation
¶
Overview ¶
Package testsuite discovers and prepares TypeRB test declarations without coupling the parser or the language server to the test runner.
Index ¶
Constants ¶
View Source
const PackagePath = "trb/std/test"
Variables ¶
This section is empty.
Functions ¶
func IsTestFile ¶
Types ¶
type Item ¶
type Item struct {
ID string
ParentID string
Kind Kind
Name string
FullName string
Span token.Span
}
func Prepare ¶
func Prepare(program *ast.Program, filename, registrationName string) ([]Item, []diagnostic.Diagnostic)
Prepare validates the compiler-owned test DSL. When registrationName is non-empty, top-level suites move into a generated function that a temporary test entrypoint can call after loading every project module.
Click to show internal directories.
Click to hide internal directories.