30 #include <gtest/gtest.h>
33 #include <geometry_msgs/Vector3.h>
35 TEST(DatabaseLoader, LoadSQLite)
41 ASSERT_TRUE(
static_cast<bool>(
d));
42 d->setParams(
":memory:", 0);
44 ASSERT_TRUE(
d->connect());
46 using V = geometry_msgs::Vector3;
47 auto coll =
d->openCollection<
V>(
"main",
"coll");
48 auto meta1 = coll.createMetadata();
49 meta1->append(
"x", 3);
51 coll.insert(
V(), meta1);
53 EXPECT_EQ(coll.count(), 1U);
56 int main(
int argc,
char** argv)
58 testing::InitGoogleTest(&argc, argv);
60 return RUN_ALL_TESTS();