xml binary internal support & code optimize

This commit is contained in:
obdev
2023-05-24 05:41:47 +00:00
committed by ob-robot
parent bb69281e07
commit 884c4c3a02
7 changed files with 1204 additions and 35 deletions

View File

@ -2161,7 +2161,7 @@ TEST_F(TestXmlParser, test_ns_attr_simple)
ASSERT_EQ(ObMulModeNodeType::M_ELEMENT, root_node->type());
ObXmlElement* root = dynamic_cast<ObXmlElement*>(root_node);
ASSERT_EQ(1, root->size());
ASSERT_EQ(2, root->attributes_size());
ASSERT_EQ(2, root->attribute_size());
// check root attrs
ObXmlAttribute* attr1 = NULL;
@ -2213,7 +2213,7 @@ TEST_F(TestXmlParser, test_ns_attr_before_simple)
ASSERT_EQ(ObMulModeNodeType::M_ELEMENT, root_node->type());
ObXmlElement* root = dynamic_cast<ObXmlElement*>(root_node);
ASSERT_EQ(1, root->size());
ASSERT_EQ(2, root->attributes_size());
ASSERT_EQ(2, root->attribute_size());
// check root attrs
ObXmlAttribute* attr1 = NULL;
@ -2263,7 +2263,7 @@ TEST_F(TestXmlParser, test_ns_default_elem)
ObXmlNode* root_node = doc->at(0);
ASSERT_EQ(ObMulModeNodeType::M_ELEMENT, root_node->type());
ObXmlElement* root = dynamic_cast<ObXmlElement*>(root_node);
ASSERT_EQ(2, root->attributes_size());
ASSERT_EQ(2, root->attribute_size());
ASSERT_EQ(1, root->size());
// check root attrs