MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / test_addFromWatch

Function test_addFromWatch

tests/ResourceFolderModel_test.cpp:136–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 void test_addFromWatch()
137 {
138 QString source = QFINDTESTDATA("testdata/ResourceFolderModel");
139
140 ModFolderModel model(source);
141
142 QCOMPARE(model.size(), 0);
143
144 EXEC_UPDATE_TASK(model.startWatching(), )
145
146 for (auto mod : model.allMods())
147 qDebug() << mod->name();
148
149 QCOMPARE(model.size(), 4);
150
151 model.stopWatching();
152 }
153
154 void test_removeResource()
155 {

Callers

nothing calls this directly

Calls 5

allModsMethod · 0.80
sizeMethod · 0.45
startWatchingMethod · 0.45
nameMethod · 0.45
stopWatchingMethod · 0.45

Tested by

no test coverage detected