-
Notifications
You must be signed in to change notification settings - Fork 1
api
Samuel Martel edited this page Oct 6, 2022
·
2 revisions
When describing code usage, the following convention is used:
- Optional fields are indicated by being wrapped in square-brackets (
[]) - Placeholder fields are indicated by being wrapped in arrow-brackets (
<>) - Functions are described as
function <name>([<parameter>: <type>, ...]) [-> <type>], even if that does not follow Lua's syntax.- If a function does not return anything, the trailing return type is omitted.
- Parameter types follow the name of that parameter, as
<name>: <type>- When the type of a parameter is a function, the function's signature is used, as
<name>: function([<type>, ...]) [-> <type>]
- When the type of a parameter is a function, the function's signature is used, as
To write test sequences at the highest level.
- Sequence - Describes a list of test.
- Test - Describes a test in a Sequence.
- Expect - Describes a condition in a Test.
- Requires - Describes the requirements that needs to be met for something to be executed.
To write commands unique to a specific test bench using generic functionalities.
To write commands unique to a specific test bench using functionalities not offered by commands.