| 109 | |
| 110 | |
| 111 | class InputFunctionVisitor(ast.NodeVisitor): |
| 112 | def __init__(self): |
| 113 | self.found_input = False |
| 114 | |
| 115 | def visit_Call(self, node): |
| 116 | if isinstance(node.func, ast.Name) and node.func.id == 'input': |
| 117 | self.found_input = True |
| 118 | self.generic_visit(node) |
| 119 | |
| 120 | def has_input_function_calls(code): |
| 121 | try: |
no outgoing calls
no test coverage detected