MCPcopy Create free account
hub / github.com/aria2/aria2 / testNumberOptionHandler

Method testNumberOptionHandler

test/OptionHandlerTest.cc:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void OptionHandlerTest::testNumberOptionHandler()
69{
70 NumberOptionHandler handler(PREF_TIMEOUT);
71 Option option;
72 handler.parse(option, "0");
73 CPPUNIT_ASSERT_EQUAL(std::string("0"), option.get(PREF_TIMEOUT));
74 CPPUNIT_ASSERT_EQUAL(std::string("*-*"),
75 handler.createPossibleValuesString());
76}
77
78void OptionHandlerTest::testNumberOptionHandler_min()
79{

Callers

nothing calls this directly

Calls 3

parseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected