(text : str)
| 2 | import re |
| 3 | |
| 4 | def isVariableName(text : str): |
| 5 | if ("[" in text and "]" in text): |
| 6 | text = text.split("[")[0] # Array indices are ok |
| 7 | return re.fullmatch("[a-z][a-z0-9]*(_[a-z0-9]+)+", text) |
| 8 | def isFunctionCall(text : str): |
| 9 | if (not "(" in text or not ")" in text): |
| 10 | return False |
no outgoing calls
no test coverage detected