MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / longNames

Method longNames

test/editor_test.cpp:491–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void EditorTest::longNames()
492{
493 QString file_xml = readFile(":/issue_24.xml");
494 main_win->on_actionClear_triggered();
495 main_win->loadFromXML( file_xml );
496
497 auto abs_tree = getAbstractTree();
498 QCOMPARE( abs_tree.nodesCount(), size_t(4) );
499 auto sequence = abs_tree.node(1);
500 QCOMPARE( sequence->model.registration_ID, QString("Sequence"));
501
502 // second child on the right side.
503 int short_index = sequence->children_index[1];
504 auto short_node = abs_tree.node(short_index);
505 QCOMPARE( short_node->model.registration_ID, QString("short") );
506}
507
508void EditorTest::clearModels()
509{

Callers

nothing calls this directly

Calls 4

loadFromXMLMethod · 0.80
nodesCountMethod · 0.80
nodeMethod · 0.80

Tested by

no test coverage detected