135 lines
3.9 KiB
JSON
135 lines
3.9 KiB
JSON
{
|
|
"args": "",
|
|
"askedAt": "2026-10-03T14:18:27+00:00",
|
|
"compiler": "mojo_1_1_0",
|
|
"firstItem": "manual/code/manual/errors/typed_errors_testing",
|
|
"key": "36d31a2527e60555ec77c313ee1fbe6e3e46bac15464400f8906075e54fd1273",
|
|
"mode": "run",
|
|
"raw": {
|
|
"buildResult": {
|
|
"code": 0,
|
|
"compilationOptions": [
|
|
"build",
|
|
"/app/example.mojo"
|
|
],
|
|
"defaultExecOptions": {
|
|
"env": {
|
|
"CPLUS_INCLUDE_PATH": "/usr/include/x86_64-linux-gnu",
|
|
"C_INCLUDE_PATH": "/usr/include/x86_64-linux-gnu",
|
|
"HOME": "/home/ce",
|
|
"LD_LIBRARY_PATH": "",
|
|
"LIBRARY_PATH": "/usr/lib/x86_64-linux-gnu",
|
|
"MODULAR_CRASH_REPORTING_ENABLED": "false",
|
|
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
|
},
|
|
"maxErrorOutput": 5000,
|
|
"timeoutMs": 20000
|
|
},
|
|
"downloads": [],
|
|
"execTime": 10812,
|
|
"executableFilename": "/nosym/tmp/compiler-explorer-compiler1Ttj6P/example",
|
|
"inputFilename": "example.mojo",
|
|
"instructionSet": "amd64",
|
|
"okToCache": true,
|
|
"packageStoreTime": 105,
|
|
"preparedLdPaths": [
|
|
"/opt/compiler-explorer/mojo-1.1.0/lib",
|
|
"/opt/compiler-explorer/mojo-1.1.0/lib32",
|
|
"/opt/compiler-explorer/mojo-1.1.0/lib64"
|
|
],
|
|
"processExecutionResultTime": 0.0034400001168251038,
|
|
"stderr": [],
|
|
"stdout": [],
|
|
"timedOut": false,
|
|
"truncated": false
|
|
},
|
|
"code": 0,
|
|
"didExecute": true,
|
|
"execTime": 70,
|
|
"okToCache": true,
|
|
"processExecutionResultTime": 0.08843200001865625,
|
|
"queueTime": 5,
|
|
"stderr": [],
|
|
"stdout": [
|
|
{
|
|
"text": "=== Pattern 1: assert_raises ==="
|
|
},
|
|
{
|
|
"text": "Testing empty username..."
|
|
},
|
|
{
|
|
"text": " Passed: Error was raised"
|
|
},
|
|
{
|
|
"text": "Testing short username..."
|
|
},
|
|
{
|
|
"text": " Passed: Message contains expected text"
|
|
},
|
|
{
|
|
"text": "Testing field name in message..."
|
|
},
|
|
{
|
|
"text": " Passed: Field name found in message"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "=== Pattern 2: Type verification ==="
|
|
},
|
|
{
|
|
"text": "Verified ValidationError with correct fields"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "=== Pattern 3: Multiple scenarios ==="
|
|
},
|
|
{
|
|
"text": "Testing username validation scenarios..."
|
|
},
|
|
{
|
|
"text": " All scenarios passed"
|
|
},
|
|
{
|
|
"text": "Testing config loading..."
|
|
},
|
|
{
|
|
"text": " All scenarios passed"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "=== Pattern 4: Error type workaround ==="
|
|
},
|
|
{
|
|
"text": "Error was raised and caught correctly"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "All demonstrations completed successfully!"
|
|
}
|
|
],
|
|
"timedOut": false,
|
|
"truncated": false
|
|
},
|
|
"result": {
|
|
"asm": null,
|
|
"buildStderr": "",
|
|
"compiled": true,
|
|
"executed": true,
|
|
"exitCode": 0,
|
|
"stderr": "",
|
|
"stdout": "=== Pattern 1: assert_raises ===\nTesting empty username...\n Passed: Error was raised\nTesting short username...\n Passed: Message contains expected text\nTesting field name in message...\n Passed: Field name found in message\n\n=== Pattern 2: Type verification ===\nVerified ValidationError with correct fields\n\n=== Pattern 3: Multiple scenarios ===\nTesting username validation scenarios...\n All scenarios passed\nTesting config loading...\n All scenarios passed\n\n=== Pattern 4: Error type workaround ===\nError was raised and caught correctly\n\nAll demonstrations completed successfully!",
|
|
"timedOut": false
|
|
},
|
|
"seconds": 11.33,
|
|
"sourceSha256": "8480fe511d7912bbf0dbb1b72a776b71db3021a7eb4a85cb53035e7fc656b848",
|
|
"stdin": ""
|
|
}
|