src/test/maintest.cpp
void Main::testModulesList(const ModuleList& list)
{
    BOOST_ASSERT(!list.empty());

    // the test selfcheck
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(), _1, "00000")) == list.end()
        );


    // checks that base modules are in the list
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(),
                              _1, klk::msgcore::MODID)) != list.end()
        );
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(),
                              _1, klk::adapter::MODID)) != list.end()
        );
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(),
                              _1, klk::srv::MODID)) != list.end()
        );
}
// tests list of modules passed as the argument
tests list of modules passed as the argument
tests list of modules passed as the argument
void Main::testModulesList(const ModuleList& list)
{
    BOOST_ASSERT(!list.empty());
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(), _1, "00000")) == list.end()
        );
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(),
                              _1, klk::msgcore::MODID)) != list.end()
        );
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(),
                              _1, klk::adapter::MODID)) != list.end()
        );
    BOOST_ASSERT(
        std::find_if(
            list.begin(), list.end(),
            boost::bind<bool>(FindModuleByID(),
                              _1, klk::srv::MODID)) != list.end()
        );
}
void Main :: testModulesList ( const ModuleList & list ) { BOOST_ASSERT ( ! list . empty ( ) ) ; BOOST_ASSERT ( std :: find_if ( list . begin ( ) , list . end ( ) , boost :: bind < bool > ( FindModuleByID ( ) , _1 , " " ) ) == list . end ( ) ) ; BOOST_ASSERT ( std :: find_if ( list . begin ( ) , list . end ( ) , boost :: bind < bool > ( FindModuleByID ( ) , _1 , klk :: msgcore :: MODID ) ) != list . end ( ) ) ; BOOST_ASSERT ( std :: find_if ( list . begin ( ) , list . end ( ) , boost :: bind < bool > ( FindModuleByID ( ) , _1 , klk :: adapter :: MODID ) ) != list . end ( ) ) ; BOOST_ASSERT ( std :: find_if ( list . begin ( ) , list . end ( ) , boost :: bind < bool > ( FindModuleByID ( ) , _1 , klk :: srv :: MODID ) ) != list . end ( ) ) ; }
tests list of modules passed as the argument
tests list of modules passed as the argument
// the test selfcheck // checks that base modules are in the list