¶fir.generic.emit.tests
An emitter that works with a GenericAST and turns it into runnable tests.
¶API
This is the API provided to work with the test emitter.
| Element | Summary |
|---|---|
| Functions | |
| emit | Emits Lua tests from a GenericAST using test and tagged-test nodes. |
| emitFunctionCall | Emits a function call across languages |
| emitIfStatement | Emits an if statement across languages |
| emitInlineFunctionDefinition | Emits an inline function declaration across languages |
| emitInternal | Emits tests, as an internal function to be used in several parts. |
| emitLocalDeclaration | Emits a local declaration across languages |
| emitPairsForStatement | Emits a for statement across languages |
| emitParentheses | Emits an expression in parentheses across langauges |
| emitString | Emits a string across languages |
| emitTableIndex | Emits a table index across languages |
| emitTableLiteral | Emits a table literal across languages |
| emitTestHeader | Emits test headers. |
| emitTestWrapper | Wraps a test line in counters and error protectors |
Emits Lua tests from a GenericAST using test and tagged-test nodes.
- Emits Lua tests from a
GenericASTusingtestandtagged-testnodes.
Aliases: efn
Emits a function call across languages
Aliases: eif
Emits an if statement across languages
- Emits an if statement across languages
Aliases: eidef
Emits an inline function declaration across languages
Emits tests, as an internal function to be used in several parts.
Aliases: elocal
Emits a local declaration across languages
Aliases: eforp
Emits a for statement across languages
- Emits a for statement across languages
Aliases: eparen
Emits an expression in parentheses across langauges
Aliases: estring
Emits a string across languages
Aliases: eindex
Emits a table index across languages
- Emits a table index across languages
Aliases: etable
Emits a table literal across languages
Emits test headers.
Aliases: ewrap
Wraps a test line in counters and error protectors
- Wraps a test line in counters and error protectors