Definition at line 76 of file testTableDataStore.h. References Impala::MakeQuid(), Impala::QuidClass(), Impala::QuidId(), Impala::QuidObject(), Impala::QuidSet(), Impala::Application::MediaTable::TableDataSource::TYPE_INT, and Impala::Application::MediaTable::TableDataSource::TYPE_NORMALIZEDVALUE. 00076 { 00077 BOOST_REQUIRE(src); 00078 00079 BOOST_REQUIRE(store); 00080 00081 BOOST_CHECK_EQUAL(Impala::QuidClass(src->GetQuid("id", 1)), 0); 00082 BOOST_CHECK_EQUAL(Impala::QuidSet(src->GetQuid("id", 1)), TableDataSource::TYPE_INT); 00083 BOOST_CHECK_EQUAL(Impala::QuidObject(src->GetQuid("id", 1)), 1); 00084 BOOST_CHECK_EQUAL(Impala::QuidId(src->GetQuid("id", 1)), 1); 00085 BOOST_CHECK_EQUAL(Impala::QuidId(src->GetQuid("id", 2)), 2); 00086 00087 BOOST_CHECK_EQUAL(src->GetQuid("id", 1), Impala::MakeQuid(0, TableDataSource::TYPE_INT, 1, 1)); 00088 BOOST_CHECK_EQUAL(src->GetQuid("red", 2), Impala::MakeQuid(0, TableDataSource::TYPE_NORMALIZEDVALUE, 2, 2)); 00089 BOOST_CHECK_EQUAL(src->GetQuid("green", 3), Impala::MakeQuid(0, TableDataSource::TYPE_NORMALIZEDVALUE, 3, 3)); 00090 BOOST_CHECK_EQUAL(src->GetQuid("blue", 4), Impala::MakeQuid(0, TableDataSource::TYPE_NORMALIZEDVALUE, 4, 4)); 00091 00092 store->AddTableDataSource("test", src); 00093 00094 BOOST_CHECK_EQUAL(Impala::QuidClass(src->GetQuid("id", 1)), 1); 00095 BOOST_CHECK_EQUAL(src->GetQuid("id", 1), Impala::MakeQuid(1, TableDataSource::TYPE_INT, 1, 1)); 00096 BOOST_CHECK_EQUAL(src->GetQuid("red", 2), Impala::MakeQuid(1, TableDataSource::TYPE_NORMALIZEDVALUE, 2, 2)); 00097 BOOST_CHECK_EQUAL(src->GetQuid("green", 3), Impala::MakeQuid(1, TableDataSource::TYPE_NORMALIZEDVALUE, 3, 3)); 00098 BOOST_CHECK_EQUAL(src->GetQuid("blue", 4), Impala::MakeQuid(1, TableDataSource::TYPE_NORMALIZEDVALUE, 4, 4)); 00099 00100 TableDataView* view = store->GetTableDataView("test", "test"); 00101 00102 BOOST_CHECK_EQUAL(Impala::QuidClass(view->GetSortedQuid("id", 1)), 1); 00103 BOOST_CHECK_EQUAL(Impala::QuidSet(view->GetSortedQuid("id", 1)), TableDataSource::TYPE_INT); 00104 BOOST_CHECK_EQUAL(Impala::QuidObject(view->GetSortedQuid("id", 1)), 1); 00105 BOOST_CHECK_EQUAL(Impala::QuidId(view->GetSortedQuid("id", 1)), 1); 00106 BOOST_CHECK_EQUAL(view->GetSortedQuid("id", 1), Impala::MakeQuid(1, TableDataSource::TYPE_INT, 1, 1)); 00107 }
Here is the call graph for this function:
|