Called before each testfunction is executed
| 124 | |
| 125 | // Called before each testfunction is executed |
| 126 | void LldbFormattersTest::init() |
| 127 | { |
| 128 | //remove all breakpoints - so we can set our own in the test |
| 129 | KConfigGroup bpCfg = KSharedConfig::openConfig()->group("breakpoints"); |
| 130 | bpCfg.writeEntry("number", 0); |
| 131 | bpCfg.sync(); |
| 132 | |
| 133 | auto count = m_core->debugController()->breakpointModel()->rowCount(); |
| 134 | m_core->debugController()->breakpointModel()->removeRows(0, count); |
| 135 | |
| 136 | while (variableCollection()->watches()->childCount() > 0) { |
| 137 | auto idx = watchVariableIndexAt(0); |
| 138 | auto var = qobject_cast<LldbVariable*>(variableCollection()->itemForIndex(idx)); |
| 139 | if (!var) break; |
| 140 | var->die(); |
| 141 | } |
| 142 | |
| 143 | m_session = new TestDebugSession; |
| 144 | } |
| 145 | |
| 146 | void LldbFormattersTest::cleanup() |
| 147 | { |
nothing calls this directly
no test coverage detected