8 #include <gtest/gtest.h>
12 using namespace HCE::sphinx;
13 using namespace HCE::reduce;
14 using namespace HCE::sphinx::reduce_task;
20 SharedPtr<SphinxTaskReducerIf>sphinxTaskReducer;
23 sphinxTaskReducersStorage.
addWithKey(taskId, sphinxTaskReducer);
25 ASSERT_EQ(sphinxTaskReducer, sphinxTaskReducersStorage.
findByKey(taskId));
32 int invalidTaskId = 8;
34 ASSERT_THROW(sphinxTaskReducersStorage.
findByKey(invalidTaskId),
42 int invalidTaskId = 8;
44 ASSERT_THROW(sphinxTaskReducersStorage.
deleteByKey(invalidTaskId),
52 SharedPtr<SphinxTaskReducerIf>sphinxTaskReducer;
55 sphinxTaskReducersStorage.
addWithKey(taskId, sphinxTaskReducer);
58 ASSERT_THROW(sphinxTaskReducersStorage.
findByKey(taskId),