@rtype: str @return: Short description of the event.
(self)
| 967 | return isBlockDataMove |
| 968 | |
| 969 | def briefReport(self): |
| 970 | """ |
| 971 | @rtype: str |
| 972 | @return: Short description of the event. |
| 973 | """ |
| 974 | if self.exceptionCode is not None: |
| 975 | if self.exceptionCode == win32.EXCEPTION_BREAKPOINT: |
| 976 | if self.isOurBreakpoint: |
| 977 | what = "Breakpoint hit" |
| 978 | elif self.isSystemBreakpoint: |
| 979 | what = "System breakpoint hit" |
| 980 | else: |
| 981 | what = "Assertion failed" |
| 982 | elif self.exceptionDescription: |
| 983 | what = self.exceptionDescription |
| 984 | elif self.exceptionName: |
| 985 | what = self.exceptionName |
| 986 | else: |
| 987 | what = "Exception %s" % HexDump.integer(self.exceptionCode, self.bits) |
| 988 | if self.firstChance: |
| 989 | chance = "first" |
| 990 | else: |
| 991 | chance = "second" |
| 992 | if self.exceptionLabel: |
| 993 | where = self.exceptionLabel |
| 994 | elif self.exceptionAddress: |
| 995 | where = HexDump.address(self.exceptionAddress, self.bits) |
| 996 | elif self.labelPC: |
| 997 | where = self.labelPC |
| 998 | else: |
| 999 | where = HexDump.address(self.pc, self.bits) |
| 1000 | msg = "%s (%s chance) at %s" % (what, chance, where) |
| 1001 | elif self.debugString is not None: |
| 1002 | if self.labelPC: |
| 1003 | where = self.labelPC |
| 1004 | else: |
| 1005 | where = HexDump.address(self.pc, self.bits) |
| 1006 | msg = "Debug string from %s: %r" % (where, self.debugString) |
| 1007 | else: |
| 1008 | if self.labelPC: |
| 1009 | where = self.labelPC |
| 1010 | else: |
| 1011 | where = HexDump.address(self.pc, self.bits) |
| 1012 | msg = "%s (%s) at %s" % (self.eventName, HexDump.integer(self.eventCode, self.bits), where) |
| 1013 | return msg |
| 1014 | |
| 1015 | def fullReport(self, bShowNotes=True): |
| 1016 | """ |
no test coverage detected