Find first call_function node whose target contains target_name.
(graph, target_name)
| 22 | |
| 23 | |
| 24 | def find_node_by_target(graph, target_name): |
| 25 | """Find first call_function node whose target contains target_name.""" |
| 26 | for node in graph.nodes: |
| 27 | if node.op == "call_function" and target_name in str(node.target): |
| 28 | return node |
| 29 | return None |
| 30 | |
| 31 | |
| 32 | def find_all_nodes_by_target(graph, target_name): |
no outgoing calls
no test coverage detected