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

Method testFloatNumberOptionHandler

test/OptionHandlerTest.cc:200–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void OptionHandlerTest::testFloatNumberOptionHandler()
201{
202 FloatNumberOptionHandler handler(PREF_TIMEOUT);
203 Option option;
204 handler.parse(option, "1.0");
205 CPPUNIT_ASSERT_EQUAL(std::string("1.0"), option.get(PREF_TIMEOUT));
206 CPPUNIT_ASSERT_EQUAL(std::string("*-*"),
207 handler.createPossibleValuesString());
208}
209
210void OptionHandlerTest::testFloatNumberOptionHandler_min()
211{

Callers

nothing calls this directly

Calls 3

parseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected