🧠 AND Unit Tests - unit-test.logic.yaml🟢
- Contextual name: 🧠 unit-test.logic.yaml🟢
- ID:
/ce/unit-test/and/unit-test.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2026-01-03T12:03:48.800744322Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | Test-1 | ✔️ 199 | ✔️ unitTest(Test-1): true | ✔️ null |
| 🟢 | Test-2 | ✔️ 299 | ✔️ unitTest(Test-2): not(false) | ✔️ null |
| 🟢 | Test-3 | ✔️ 399 | ✔️ unitTest(Test-3): not(false && false) | ✔️ null |
| 🟢 | Test-4 | ✔️ 499 | ✔️ unitTest(Test-4): not(true && false) | ✔️ null |
| 🟢 | Test-5 | ✔️ 599 | ✔️ unitTest(Test-5): not(false && true) | ✔️ null |
| 🟢 | Test-6 | ✔️ 699 | ✔️ unitTest(Test-6): true && true | ✔️ null |
| 🟢 | Test-7 | ✔️ 799 | ✔️ unitTest(Test-7): not(true && true && false) | ✔️ null |
| 🟢 | Test-8 | ✔️ 899 | ✔️ unitTest(Test-8): not(false && error('Short-circuit evaluation: does not compute second argument')) | ✔️ null |
| 🟢 | Test-9 | ✔️ 901 | ✔️ error('Short-circuit evaluation: compute second argument').throw() | ✔️ Short-circuit evaluation: compute second argument |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/unit-test/and/policy.yaml | CE65BADE101E4634663712661F2AD758 |
| Open | /ce/unit-test/and/unit-test.logic.yaml | 8ACD378FED89B7C7E87AED3FAB96D6D4 |
Available Commands
repo-manager policies generate FULL /ce/unit-test/and/unit-test.logic.yaml
repo-manager policies generate DEBUG /ce/unit-test/and/unit-test.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/unit-test/and/unit-test.logic.yaml
repo-manager policies generate TESTS /ce/unit-test/and/unit-test.logic.yaml
# Execute tests
repo-manager policies test /ce/unit-test/and/unit-test.logic.yaml
Content
---
inputType: CA10__CaAwsInstance__c
conditions:
- status: COMPLIANT
currentStateMessage: Test-1
check:
UNIT_TEST:
id: Test-1
arg:
AND:
args:
- BOOLEAN: true
expected:
text: "unitTest(Test-1): true"
- status: COMPLIANT
currentStateMessage: Test-2
check:
UNIT_TEST:
id: Test-2
arg:
NOT:
arg:
AND:
args:
- BOOLEAN: false
expected:
text: "unitTest(Test-2): not(false)"
- status: COMPLIANT
currentStateMessage: Test-3
check:
UNIT_TEST:
id: Test-3
arg:
NOT:
arg:
AND:
args:
- BOOLEAN: false
- BOOLEAN: false
expected:
text: "unitTest(Test-3): not(false && false)"
- status: COMPLIANT
currentStateMessage: Test-4
check:
UNIT_TEST:
id: Test-4
arg:
NOT:
arg:
AND:
args:
- BOOLEAN: true
- BOOLEAN: false
expected:
text: "unitTest(Test-4): not(true && false)"
- status: COMPLIANT
currentStateMessage: Test-5
check:
UNIT_TEST:
id: Test-5
arg:
NOT:
arg:
AND:
args:
- BOOLEAN: false
- BOOLEAN: true
expected:
text: "unitTest(Test-5): not(false && true)"
- status: COMPLIANT
currentStateMessage: Test-6
check:
UNIT_TEST:
id: Test-6
arg:
AND:
args:
- BOOLEAN: true
- BOOLEAN: true
expected:
text: "unitTest(Test-6): true && true"
- status: COMPLIANT
currentStateMessage: Test-7
check:
UNIT_TEST:
id: Test-7
arg:
NOT:
arg:
AND:
args:
- BOOLEAN: true
- BOOLEAN: true
- BOOLEAN: false
expected:
text: "unitTest(Test-7): not(true && true && false)"
- status: COMPLIANT
currentStateMessage: Test-8
check:
UNIT_TEST:
id: Test-8
arg:
NOT:
arg:
AND:
args:
- BOOLEAN: false
- UNIT_TEST_RUNTIME_ERROR:
returnType: BOOLEAN
message: "Short-circuit evaluation: does not compute second argument"
expected:
text: "unitTest(Test-8): not(false && error('Short-circuit evaluation: does not compute second argument'))"
- status: COMPLIANT
currentStateMessage: Test-9
check:
UNIT_TEST:
id: Test-9
arg:
AND:
args:
- BOOLEAN: true
- UNIT_TEST_RUNTIME_ERROR:
returnType: BOOLEAN
message: "Short-circuit evaluation: compute second argument"
expected:
status: UNDETERMINED
subIndex: 1
text: "error('Short-circuit evaluation: compute second argument').throw()"
runtimeError: "Short-circuit evaluation: compute second argument"
otherwise:
status: INCOMPLIANT
currentStateMessage: Test Failed
remediationMessage: Developer Fix Required