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

Method test_SetProgress

tests/Task_test.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void test_SetProgress(){
60 BasicTask t;
61 int current = 42;
62 int total = 207;
63
64 t.setProgress(current, total);
65
66 QCOMPARE(t.getProgress(), current);
67 QCOMPARE(t.getTotalProgress(), total);
68 }
69
70 void test_basicRun(){
71 BasicTask t;

Callers

nothing calls this directly

Calls 3

setProgressMethod · 0.80
getProgressMethod · 0.80
getTotalProgressMethod · 0.80

Tested by

no test coverage detected