MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / TEST_METHOD

Function TEST_METHOD

DAEValidator/tests/src/XmlNodeSetTests.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 TEST_METHOD(MoveConstructor)
20 {
21 {
22 XmlNodeSet nodes;
23 Assert::IsTrue(nodes.empty());
24 XmlNodeSet moved = move(nodes);
25 Assert::IsTrue(nodes.empty());
26 Assert::IsTrue(moved.empty());
27 }
28 {
29 XmlDoc doc;
30 doc.readFile(data_path("xml/file.dae"));
31 Assert::IsTrue(doc);
32 const XmlNodeSet & nodes = doc.root().selectNodes("//collada:node");
33 Assert::AreEqual(static_cast<size_t>(4), nodes.size());
34 }
35 }
36
37 TEST_METHOD(Destructor)
38 {

Callers

nothing calls this directly

Calls 9

data_pathFunction · 0.85
IteratorCommonFunction · 0.85
rootMethod · 0.80
c_strMethod · 0.80
emptyMethod · 0.45
readFileMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected