MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / checkModelValid

Method checkModelValid

src/plugins/smartut/gui/smartutwidget.cpp:196–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool 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
215void SmartUTWidget::generateAllUTFiles()
216{

Callers

nothing calls this directly

Calls 4

findModelMethod · 0.80
lastErrorMethod · 0.80
checkValidMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected