| 69 | } |
| 70 | |
| 71 | void 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 | |
| 84 | void XmlRpcRequestParserControllerTest::testPopArrayFrame_noValue() |
| 85 | { |
nothing calls this directly
no test coverage detected