MCPcopy Create free account
hub / github.com/KDAB/GammaRay / testClientSide

Method testClientSide

tests/toolmanagertest.cpp:123–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 void testClientSide()
124 {
125 ClientToolManager::instance()->requestAvailableTools();
126 QAbstractItemModelTester modelTest(ClientToolManager::instance()->model());
127
128 // we're testing inprocess, thus tool list should be available instantly.
129 QVERIFY(ClientToolManager::instance()->isToolListLoaded());
130
131 testHasBasicTools(false);
132 testToolEnabled();
133 testToolSelected();
134 testRequestToolsForObject();
135
136 testClearance();
137
138 ClientToolManager::instance()->requestAvailableTools(); // "reconnect"
139 testHasBasicTools(true);
140 testToolSelected();
141 testRequestToolsForObject();
142 }
143
144private:
145 static void testHasBasicTools(bool actionInspectorEnabled)

Callers

nothing calls this directly

Calls 3

isToolListLoadedMethod · 0.80
requestAvailableToolsMethod · 0.45
modelMethod · 0.45

Tested by

no test coverage detected