Looks up the dictionary associated with the function. :param tu: The translation unit in which to look for locals functions :param fxn: The function name :param call_graph: a object used to store information about each function :return: the dictionary for the given function or N
(tu, fxn, call_graph)
| 82 | |
| 83 | |
| 84 | def find_fxn(tu, fxn, call_graph): |
| 85 | """ |
| 86 | Looks up the dictionary associated with the function. |
| 87 | :param tu: The translation unit in which to look for locals functions |
| 88 | :param fxn: The function name |
| 89 | :param call_graph: a object used to store information about each function |
| 90 | :return: the dictionary for the given function or None |
| 91 | """ |
| 92 | |
| 93 | if fxn in call_graph['globals']: |
| 94 | return call_graph['globals'][fxn] |
| 95 | else: |
| 96 | try: |
| 97 | return call_graph['locals'][fxn][tu] |
| 98 | except KeyError: |
| 99 | return None |
| 100 | |
| 101 | |
| 102 | def find_demangled_fxn(tu, fxn, call_graph): |
no outgoing calls
no test coverage detected