| 44 | } |
| 45 | |
| 46 | void |
| 47 | checkNodeList1(const DocNodeList &node_list) |
| 48 | { |
| 49 | DocNodeList::const_iterator list_iter = node_list.begin(); |
| 50 | REQUIRE(list_iter->type == DocNode::TYPE_PRE); |
| 51 | REQUIRE(list_iter->data_len == 4); |
| 52 | REQUIRE(strncmp(list_iter->data, "foo ", list_iter->data_len) == 0); |
| 53 | ++list_iter; |
| 54 | REQUIRE(list_iter->type == DocNode::TYPE_INCLUDE); |
| 55 | REQUIRE(list_iter->data_len == 0); |
| 56 | REQUIRE(list_iter->attr_list.size() == 1); |
| 57 | check_node_attr(list_iter->attr_list.front(), "src", "blah"); |
| 58 | ++list_iter; |
| 59 | REQUIRE(list_iter->type == DocNode::TYPE_PRE); |
| 60 | REQUIRE(list_iter->data_len == 4); |
| 61 | REQUIRE(strncmp(list_iter->data, " bar", list_iter->data_len) == 0); |
| 62 | REQUIRE((list_iter->child_nodes).size() == 0); |
| 63 | } |
| 64 | |
| 65 | void |
| 66 | checkNodeList2(const DocNodeList &node_list) |
no test coverage detected