MCPcopy Create free account
hub / github.com/colmap/colmap / TEST

Function TEST

src/colmap/scene/database_cache_test.cc:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117TEST(DatabaseCache, Empty) {
118 DatabaseCache cache;
119 EXPECT_EQ(cache.NumRigs(), 0);
120 EXPECT_EQ(cache.NumCameras(), 0);
121 EXPECT_EQ(cache.NumFrames(), 0);
122 EXPECT_EQ(cache.NumImages(), 0);
123 EXPECT_EQ(cache.NumPosePriors(), 0);
124}
125
126TEST(DatabaseCache, ConstructFromDatabase) {
127 auto database = CreateTestDatabase();

Callers

nothing calls this directly

Calls 15

CreateLegacyTestDatabaseFunction · 0.85
PairIdToImagePairFunction · 0.85
Rigid3dNearFunction · 0.85
ImageIdMethod · 0.80
NumPoints2DMethod · 0.80
SetImageIdMethod · 0.80
SetNameMethod · 0.80
SetCameraIdMethod · 0.80
AddPosePriorMethod · 0.80
ImagePairsMethod · 0.80

Tested by

no test coverage detected