1 #include <gtest/gtest.h>
7 #include <Poco/SharedPtr.h>
26 extern Poco::SharedPtr<HCE::sphinx::SphinxFunctionalObject>
pObj;
44 ASSERT_NE(pObj,
nullptr);
51 ASSERT_NE(pObject,
nullptr);
58 ASSERT_NE(pObj,
nullptr);
85 ASSERT_FALSE(
pObj.isNull());
90 ASSERT_FALSE(
pObj->isActiveSearchd());
95 ASSERT_FALSE(
pObj->isLoadedConfig());
133 for (
size_t i=0;i<
branches.size();++i)
162 for (
size_t i=0;i<
branches.size();++i)
180 for (
size_t i=0;i<
branches.size();++i)
200 for (
size_t i=0;i<
branches.size();++i)
224 for (
size_t i=0;i<
branches.size();++i)
241 for (
size_t i=0;i<
branches.size();++i)
259 for (
size_t i=0;i<
branches.size();++i)
281 for (
size_t i=0;i<
branches.size();++i)
301 for (
size_t i=0;i<
branches.size();++i)
322 for (
size_t i=0;i<
branches.size();++i)
325 for (
size_t i=0;i<
branches.size();++i)
346 for (
size_t i=0;i<
branches.size();++i)
354 for (
size_t i=0;i<
branches.size();++i)
357 for (
size_t i=0;i<
branches.size();++i)
374 for (
size_t i=0;i<
branches.size();++i)
379 std::vector<unsigned long long> ids = { 123456789012, 123456789023, 123456789034, 123456789045, 123456789056, 123456789067, 123456789078, 123456789089, 123456789090, 1234567890101};
397 for (
size_t i=0;i<
branches.size();++i)
421 ASSERT_TRUE(
pObj->isError());
434 for (
size_t i=0;i<
branches.size();++i)
462 for (
size_t i=0;i<
branches.size();++i)
482 std::cout <<
"HOME DIR: " <<
pObj->getHomeDir() <<
std::endl;
490 for (
size_t i=0;i<
branches.size();++i)
504 for (
size_t i=0;i<
branches.size();++i)
516 std::string paramValue;
519 ASSERT_EQ(paramValue,
"test_value1");
522 ASSERT_EQ(paramValue,
"test_value2");
525 ASSERT_EQ(paramValue,
"test_value1");
528 ASSERT_EQ(paramValue,
"test_value2");
536 for (
size_t i=0;i<
branches.size();++i)
553 ASSERT_FALSE(
pObj->isError());
565 for (
size_t i=0;i<
branches.size();++i)
585 for (
size_t i=0;i<
branches.size();++i)
605 for (
size_t i=0;i<
branches.size();++i)
625 for (
size_t i=0;i<
branches.size();++i)
645 for (
size_t i=0;i<
branches.size();++i)
665 for (
size_t i=0;i<
branches.size();++i)
684 for (
size_t i=0;i<
branches.size();++i)
695 ASSERT_TRUE(
pObj->isError());