(view, func, is_valid)
| 275 | |
| 276 | @staticmethod |
| 277 | def _function_is_valid(view, func, is_valid): |
| 278 | try: |
| 279 | if is_valid is None: |
| 280 | return True |
| 281 | file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view)) |
| 282 | view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view)) |
| 283 | func_obj = function.Function(view_obj, core.BNNewFunctionReference(func)) |
| 284 | return is_valid(view_obj, func_obj) |
| 285 | except: |
| 286 | log_error(traceback.format_exc()) |
| 287 | return False |
| 288 | |
| 289 | @staticmethod |
| 290 | def _low_level_il_function_is_valid(view, func, is_valid): |
no test coverage detected