(self, report)
| 1014 | return "<reports: %s>" % repr(list(self)) |
| 1015 | |
| 1016 | def append(self, report): |
| 1017 | if report.view is None: |
| 1018 | view = None |
| 1019 | else: |
| 1020 | view = report.view.handle |
| 1021 | if isinstance(report, PlainTextReport): |
| 1022 | core.BNAddPlainTextReportToCollection(self.handle, view, report.title, report.contents) |
| 1023 | elif isinstance(report, MarkdownReport): |
| 1024 | core.BNAddMarkdownReportToCollection(self.handle, view, report.title, report.contents, report.plaintext) |
| 1025 | elif isinstance(report, HTMLReport): |
| 1026 | core.BNAddHTMLReportToCollection(self.handle, view, report.title, report.contents, report.plaintext) |
| 1027 | elif isinstance(report, FlowGraphReport): |
| 1028 | core.BNAddGraphReportToCollection(self.handle, view, report.title, report.graph.handle) |
| 1029 | else: |
| 1030 | raise TypeError("expected report object") |
| 1031 | |
| 1032 | def update(self, i, report): |
| 1033 | # if isinstance(report, PlainTextReport): |
no outgoing calls
no test coverage detected