svoid test_CodeSafetyChecker() { new CodeSafetyChecker checker; checker.markSafe("iAmSafe"); testFunctionValues(code -> checker.checkCode(code/S), "grkigrgo()", "?", [[reversed("abc")]], "safe", "iAmSafe()", "safe", "jTextField()", "awt", [["\*jTextField()*/"]], "awt", // test in-string-evals ); testFunctionValues(code -> checker.verbalCheckResult(code/S), "grkigrgo()", "?. Unknown identifiers: grkigrgo", ); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030038 |
| Snippet name: | test_CodeSafetyChecker [OK] |
| Eternal ID of this version: | #1030038/9 |
| Text MD5: | 6b98ab93665ead851e71c2372018b0eb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-13 11:59:05 |
| Source code size: | 466 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 429 / 490 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |