MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / testDurationFromString

Method testDurationFromString

tests/testutils.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24};
25
26void UtilsTest::testDurationFromString()
27{
28 QFETCH(QString, str);
29 QFETCH(std::chrono::microseconds, us);
30 QFETCH(bool, ok);
31
32 bool _ok = false;
33 QCOMPARE(us, Cutelyst::Utils::durationFromString(str, &_ok));
34 QCOMPARE(ok, _ok);
35}
36
37void UtilsTest::testDurationFromString_data()
38{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected