MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / parse

Method parse

UnitTests/sources/XMLParserTest.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 SuccessParser() : _oneShoot(false),_order(0), XMLParser(_XML.data(),_XML.size()) {}
32
33 void parse(bool oneShoot) {
34 _oneShoot = oneShoot;
35 _order = 0;
36 XMLParser::reset();
37 if (!_oneShoot) {
38 CHECK(XMLParser::parse(_ex) && !_ex);
39 CHECK(XMLParser::parse(_ex) && !_ex);
40 CHECK(XMLParser::parse(_ex) && !_ex);
41 CHECK(XMLParser::parse(_ex) && !_ex);
42 CHECK(XMLParser::parse(_ex) && !_ex);
43 CHECK(XMLParser::parse(_ex) && !_ex);
44 CHECK(XMLParser::parse(_ex) && !_ex);
45 CHECK(XMLParser::parse(_ex) && !_ex);
46 }
47 CHECK(!XMLParser::parse(_ex));
48 CHECK(!_ex);
49 }
50
51 bool onStartXMLDocument() {
52 CHECK(_order++ == 0);

Callers 1

ADD_TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected