-
Notifications
You must be signed in to change notification settings - Fork 3
AND
Nightinggale edited this page Jun 8, 2018
·
2 revisions
Tests if a list of operations are all true.
Makes it easier to read the patch file as it helps tell testing and actions apart. Can be used to make more complex test conditions when nested with OR and IfElse.
| Tag | Mandatory | Type | Default | Description |
|---|---|---|---|---|
| patchName | no | string | Name of patch for log/profiling | |
| tests | yes | list | The list of operations to test |
Pass if all operations in tests pass. Lazy testings is used, meaning if one operation fails, the rest of the list will not be tested. Putting slow test conditions late and/or likely to fail conditions first can be used to speed up patching.
<li Class="ModCheck.AND">
<tests>
<li Class ="whatever">
<!-- some testing -->
</li>
<li Class ="something else">
<!-- more testing -->
</li>
</tests>
</li>