Definition at line 53 of file testOglImageCacheStore.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. 00053 { 00054 BOOST_REQUIRE(src); 00055 00056 BOOST_REQUIRE(store); 00057 00058 BOOST_CHECK_EQUAL(Impala::QuidClass(src->GetQuid("id", 1)), 0); 00059 BOOST_CHECK_EQUAL(Impala::QuidSet(src->GetQuid("id", 1)), TableDataSource::TYPE_INT); 00060 BOOST_CHECK_EQUAL(Impala::QuidObject(src->GetQuid("id", 1)), 1); 00061 BOOST_CHECK_EQUAL(Impala::QuidId(src->GetQuid("id", 1)), 1); 00062 BOOST_CHECK_EQUAL(Impala::QuidId(src->GetQuid("id", 2)), 2); 00063 00064 BOOST_CHECK_EQUAL(src->GetQuid("id", 1), Impala::MakeQuid(0, TableDataSource::TYPE_INT, 1, 1)); 00065 BOOST_CHECK_EQUAL(src->GetQuid("red", 2), Impala::MakeQuid(0, TableDataSource::TYPE_NORMALIZEDVALUE, 2, 2)); 00066 BOOST_CHECK_EQUAL(src->GetQuid("green", 3), Impala::MakeQuid(0, TableDataSource::TYPE_NORMALIZEDVALUE, 3, 3)); 00067 BOOST_CHECK_EQUAL(src->GetQuid("blue", 4), Impala::MakeQuid(0, TableDataSource::TYPE_NORMALIZEDVALUE, 4, 4)); 00068 00069 for(int i=0; i < 100; i++) 00070 BOOST_CHECK_EQUAL((long) src->GetQuid("id", i), i); 00071 00072 /* store->AddTableDataSource("test", src); 00073 00074 BOOST_CHECK_EQUAL(Impala::QuidClass(src->GetQuid("id", 1)), 1); 00075 BOOST_CHECK_EQUAL(src->GetQuid("id", 1), Impala::MakeQuid(1, TableDataSource::TYPE_INT, 1, 1)); 00076 BOOST_CHECK_EQUAL(src->GetQuid("red", 2), Impala::MakeQuid(1, TableDataSource::TYPE_NORMALIZEDVALUE, 2, 2)); 00077 BOOST_CHECK_EQUAL(src->GetQuid("green", 3), Impala::MakeQuid(1, TableDataSource::TYPE_NORMALIZEDVALUE, 3, 3)); 00078 BOOST_CHECK_EQUAL(src->GetQuid("blue", 4), Impala::MakeQuid(1, TableDataSource::TYPE_NORMALIZEDVALUE, 4, 4)); 00079 00080 TableDataView* view = store->GetTableDataView("test", "test"); 00081 00082 BOOST_CHECK_EQUAL(Impala::QuidClass(view->GetSortedQuid("id", 1)), 1); 00083 BOOST_CHECK_EQUAL(Impala::QuidSet(view->GetSortedQuid("id", 1)), TableDataSource::TYPE_INT); 00084 BOOST_CHECK_EQUAL(Impala::QuidObject(view->GetSortedQuid("id", 1)), 1); 00085 BOOST_CHECK_EQUAL(Impala::QuidId(view->GetSortedQuid("id", 1)), 1); 00086 BOOST_CHECK_EQUAL(view->GetSortedQuid("id", 1), Impala::MakeQuid(1, TableDataSource::TYPE_INT, 1, 1));*/ 00087 }
Here is the call graph for this function:
|