MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / init

Method init

tests/test_controller.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69private slots:
70 void init() {
71 m_doc = new RcxDocument();
72 buildSmallTree(m_doc->tree);
73 m_doc->provider = std::make_unique<BufferProvider>(makeSmallBuffer());
74
75 m_splitter = new QSplitter();
76 // Pass nullptr as parent so controller is not auto-deleted with splitter
77 m_ctrl = new RcxController(m_doc, nullptr);
78 m_editor = m_ctrl->addSplitEditor(m_splitter);
79
80 m_splitter->resize(800, 600);
81 m_splitter->show();
82 QVERIFY(QTest::qWaitForWindowExposed(m_splitter));
83 QApplication::processEvents();
84 }
85
86 void cleanup() {
87 // Delete controller first (disconnects from editor signals)

Callers

nothing calls this directly

Calls 3

buildSmallTreeFunction · 0.85
makeSmallBufferFunction · 0.85
addSplitEditorMethod · 0.80

Tested by

no test coverage detected