| 194 | } |
| 195 | |
| 196 | bool SmartUTWidget::checkModelValid() |
| 197 | { |
| 198 | auto model = modelCB->currentText(); |
| 199 | QString errMsg; |
| 200 | bool valid = false; |
| 201 | auto llm = SmartUTManager::instance()->findModel(model); |
| 202 | if (!llm) { |
| 203 | errMsg = SmartUTManager::instance()->lastError(); |
| 204 | } else { |
| 205 | valid = llm->checkValid(&errMsg); |
| 206 | delete llm; |
| 207 | } |
| 208 | |
| 209 | if (!valid) |
| 210 | winSrv->notify(2, "SmartUT", errMsg, {}); |
| 211 | |
| 212 | return valid; |
| 213 | } |
| 214 | |
| 215 | void SmartUTWidget::generateAllUTFiles() |
| 216 | { |
nothing calls this directly
no test coverage detected