MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / test_addFromWatch

Function test_addFromWatch

tests/ResourceFolderModel_test.cpp:134–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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