src/test/maintest.cpp
void Main::testModules()
{
    printOut("\nModules test ...");

    // tests that all modules can be loaded
    IModuleFactory* factory = test::Factory::instance()->getModuleFactory();
    // will produce exception in the case of error
    printOut("\n\tklk::IModuleFactory::getModules() ...");
    ModuleList list1 = factory->getModules();
    testModulesList(list1);
    printOut("\n\tklk::IModuleFactory::getModulesWithoutRegistration() ...");
    ModuleList list2 = factory->getModulesWithoutRegistration();
    testModulesList(list2);
}
// The modules test
// It tests that all modules can be loaded
The modules test
It tests that all modules can be loaded
The modules test It tests that all modules can be loaded
void Main::testModules()
{
    printOut("\nModules test ...");
    IModuleFactory* factory = test::Factory::instance()->getModuleFactory();
    printOut("\n\tklk::IModuleFactory::getModules() ...");
    ModuleList list1 = factory->getModules();
    testModulesList(list1);
    printOut("\n\tklk::IModuleFactory::getModulesWithoutRegistration() ...");
    ModuleList list2 = factory->getModulesWithoutRegistration();
    testModulesList(list2);
}
void Main :: testModules ( ) { printOut ( " \n " ) ; IModuleFactory * factory = test :: Factory :: instance ( ) -> getModuleFactory ( ) ; printOut ( " \n \t " ) ; ModuleList list1 = factory -> getModules ( ) ; testModulesList ( list1 ) ; printOut ( " \n \t " ) ; ModuleList list2 = factory -> getModulesWithoutRegistration ( ) ; testModulesList ( list2 ) ; }
The modules test
It tests that all modules can be loaded
The modules test It tests that all modules can be loaded
// tests that all modules can be loaded // will produce exception in the case of error