-
Notifications
You must be signed in to change notification settings - Fork 56
Add gtest
FishYoung edited this page Aug 22, 2017
·
3 revisions
Add header files path which has test cases into "./Test/gtest_main.cpp".
#include "iterator/elastic_iterator_model_test.h"
#include "../common/test/operate_test.h"
#include "iterator/elastic_iterator_model_test.h"TEST_F(ElasticIteratorModelTest, Scan) {
EXPECT_TRUE(client_.connected());
ResultSet rs;
std::string command = "select count(*) from LINEITEM;";
std::string message;
client_.submit(command, message, rs);
DynamicBlockBuffer::Iterator it = rs.createIterator();
BlockStreamBase::BlockStreamTraverseIterator *b_it =
it.nextBlock()->createIterator();
EXPECT_EQ(6001215, *(long *)b_it->nextTuple());
delete b_it;
}If you have any question, do not hesitate to contact us. Email: fzhedu@gmail.com
- Home
- How to Install
- How to Use
- How to run
- How to Contribute
- Bugs and Suggestions
- Contact to Us