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

Method test_SetProgress

tests/Task_test.cpp:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 void test_SetProgress()
116 {
117 BasicTask t;
118 int current = 42;
119 int total = 207;
120
121 t.setProgress(current, total);
122
123 QCOMPARE(t.getProgress(), current);
124 QCOMPARE(t.getTotalProgress(), total);
125 }
126
127 void test_basicRun()
128 {

Callers

nothing calls this directly

Calls 3

setProgressMethod · 0.80
getProgressMethod · 0.80
getTotalProgressMethod · 0.80

Tested by

no test coverage detected