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

Method testPopArrayFrame

test/XmlRpcRequestParserControllerTest.cc:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void XmlRpcRequestParserControllerTest::testPopArrayFrame()
72{
73 XmlRpcRequestParserController controller;
74 controller.setCurrentFrameValue(List::g());
75 controller.pushFrame();
76 controller.setCurrentFrameValue(Integer::g(100));
77 controller.popArrayFrame();
78 const List* array = downcast<List>(controller.getCurrentFrameValue());
79 CPPUNIT_ASSERT_EQUAL((size_t)1, array->size());
80 CPPUNIT_ASSERT_EQUAL((Integer::ValueType)100,
81 downcast<Integer>(array->get(0))->i());
82}
83
84void XmlRpcRequestParserControllerTest::testPopArrayFrame_noValue()
85{

Callers

nothing calls this directly

Calls 6

iMethod · 0.80
setCurrentFrameValueMethod · 0.45
pushFrameMethod · 0.45
popArrayFrameMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected