Skip to main content

πŸ§ͺ test-data.json

  • Contextual name: πŸ§ͺ test-data.json
  • ID: /ce/unit-test/collection-from/test-data.json

Used In​

LogicPolicyFlags
🧠 unit-test.logic.yaml πŸŸ’πŸ“ COLLECTION_FROM Unit Tests 🟒🟒 x3

Content​

Open File

[
{
"expectedResult": {
"status": "COMPLIANT",
"conditionIndex": "199",
"conditionText": "unitTest(Test-1): ''.asCollection(',').isEmpty()",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-01-01T00:00:00Z"
},
"Id": "Test-1",
"Name": "Test-1",
"CA10__disappearanceTime__c": null
},
{
"expectedResult": {
"status": "COMPLIANT",
"conditionIndex": "299",
"conditionText": "unitTest(Test-2): 'a,a'.asCollection(',') == ['a']",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-01-01T00:00:00Z"
},
"Id": "Test-2",
"Name": "Test-2",
"CA10__disappearanceTime__c": null
},
{
"expectedResult": {
"status": "COMPLIANT",
"conditionIndex": "399",
"conditionText": "unitTest(Test-3): 'a,b'.asCollection(',') == ['a', 'b']",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-01-01T00:00:00Z"
},
"Id": "Test-3",
"Name": "Test-3",
"CA10__disappearanceTime__c": null
},
{
"expectedResult": {
"status": "COMPLIANT",
"conditionIndex": "499",
"conditionText": "unitTest(Test-4): 'A\\n, a '.asCollection(',') == ['a']",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-01-01T00:00:00Z"
},
"Id": "Test-4",
"Name": "Test-4",
"CA10__disappearanceTime__c": null
},
{
"expectedResult": {
"status": "COMPLIANT",
"conditionIndex": "599",
"conditionText": "unitTest(Test-5): '\\nline1\\nline2\\nline3\\n'.asCollection('\\n') == ['line1', 'line2', 'line3']",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-01-01T00:00:00Z"
},
"Id": "Test-5",
"Name": "Test-5",
"CA10__disappearanceTime__c": null
},
{
"expectedResult": {
"status": "COMPLIANT",
"conditionIndex": "699",
"conditionText": "unitTest(Test-6): [' ABC '].contains(' abc\\n\\t')",
"runtimeError": null
},
"context": {
"snapshotTime": "2024-01-01T00:00:00Z"
},
"Id": "Test-6",
"Name": "Test-6",
"CA10__disappearanceTime__c": null
}
]