| 59 | } |
| 60 | |
| 61 | void ExceptionTracker::assertEmpty() const { |
| 62 | if (!_isEmpty) { |
| 63 | auto message = getError().toString(); |
| 64 | auto* context = ContextBase::current(); |
| 65 | if (context != nullptr) { |
| 66 | const auto& attribution = context->getAttribution(); |
| 67 | if (!attribution.moduleName.isEmpty() || !attribution.owner.isEmpty()) { |
| 68 | message += "\n[valdi_attribution] module="; |
| 69 | message += attribution.moduleName.toStringView(); |
| 70 | message += " owner="; |
| 71 | message += attribution.owner.toStringView(); |
| 72 | } |
| 73 | } |
| 74 | SC_ASSERT_FAIL(message.c_str()); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | void ExceptionTracker::assertNotEmpty() const { |
| 79 | SC_ASSERT(!_isEmpty); |
nothing calls this directly
no test coverage detected