Skip to content
Nightinggale edited this page Jun 8, 2018 · 2 revisions

What it does

Tests if a list of operations are all true.


Why you want to use this

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.


Tags

Tag Mandatory Type Default Description
patchName no string Name of patch for log/profiling
tests yes list The list of operations to test

Pass condition

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.


Example

<li Class="ModCheck.AND">
    <tests>
        <li Class ="whatever">
            <!-- some testing -->
        </li>
        <li Class ="something else">
            <!-- more testing -->
        </li>
    </tests>
</li>

Clone this wiki locally