MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / testProject105Good

Method testProject105Good

tests/testproject.cpp:49–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void TestIDE::testProject105Good()
50{
51 TestMocker mock(QString(MINIZINC_IDE_PATH) + "/data/project/project-105-good.mzp");
52 MainWindow* w = mock.mw();
53 QVERIFY(w->currentModelFile().endsWith("model1.mzn"));
54 QCOMPARE(w->codeEditors().size(), 2);
55 QCOMPARE(w->getProject().modelFiles().size(), 2);
56 QCOMPARE(w->getProject().dataFiles().size(), 2);
57
58 QTimer::singleShot(200, this, [=] () {
59 auto* message = qobject_cast<QMessageBox*>(QApplication::activeModalWidget());
60 QVERIFY(message!= nullptr);
61 QVERIFY(message->text().startsWith("There are modified solver configurations"));
62 message->accept();
63 });
64}
65
66void TestIDE::testProject105Bad()
67{

Callers

nothing calls this directly

Calls 7

mwMethod · 0.80
currentModelFileMethod · 0.80
codeEditorsMethod · 0.80
modelFilesMethod · 0.80
dataFilesMethod · 0.80
acceptMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected