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

Method testProject106Good

tests/testproject.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <QTimer>
12
13void TestIDE::testProject106Good()
14{
15 TestMocker mock(QString(MINIZINC_IDE_PATH) + "/data/project/project-106-good.mzp");
16 MainWindow* w = mock.mw();
17 QVERIFY(w->currentModelFile().endsWith("model1.mzn"));
18 QCOMPARE(w->codeEditors().size(), 2);
19 QCOMPARE(w->getProject().modelFiles().size(), 2);
20 QCOMPARE(w->getProject().dataFiles().size(), 2);
21 QCOMPARE(w->getProject().solverConfigurationFiles().size(), 2);
22}
23
24void TestIDE::testProject106Bad()
25{

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected