#include #include "../src/middleware/kompanioncontroller.h" #include "../src/middleware/regexregistry.h" class MiddlewareTest : public QObject { Q_OBJECT private slots: void prompt_to_tool_mapping() { KompanionController ctl; RegexRegistry reg; reg.loadFromFile(QStringLiteral("../resources/mappings.json")); // Connect signals (basic compile-time test) QObject::connect(&ctl, &KompanionController::toolRequested, [](auto, auto, auto){ }); QObject::connect(&ctl, &KompanionController::textOutput, [](auto, auto){ }); // If the controller used the registry internally, we'd inject it; for now this test ensures build. QVERIFY(true); } }; QTEST_MAIN(MiddlewareTest) #include "test_middleware.moc"