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

Method init

tests/test_context_menu.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66private slots:
67 void init() {
68 m_doc = new RcxDocument();
69 buildTree(m_doc->tree);
70 m_doc->provider = std::make_unique<BufferProvider>(makeBuffer());
71
72 m_splitter = new QSplitter();
73 m_ctrl = new RcxController(m_doc, nullptr);
74 m_editor = m_ctrl->addSplitEditor(m_splitter);
75
76 m_splitter->resize(800, 600);
77 m_splitter->show();
78 QVERIFY(QTest::qWaitForWindowExposed(m_splitter));
79 QApplication::processEvents();
80 }
81
82 void cleanup() {
83 delete m_ctrl; m_ctrl = nullptr;

Callers

nothing calls this directly

Calls 3

buildTreeFunction · 0.85
addSplitEditorMethod · 0.80
makeBufferFunction · 0.70

Tested by

no test coverage detected