MCPcopy Create free account
hub / github.com/Samsung/UTopia / TEST

Function TEST

tests/sourceloader/TestBuildDB.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace ftg;
10
11TEST(TestBuildDB, TestLoadP) {
12 auto DataDirPath = getProjectBaseDirPath("test_builddb");
13 auto BuildDBPath = (fs::path(DataDirPath) / ("builddb.json")).string();
14 auto DB = BuildDB::fromJson(BuildDBPath);
15 ASSERT_EQ(DB->getBCPath(), "bc_file_path");
16 ASSERT_EQ(DB->getProjectDir(), "project_dir_path");
17 ASSERT_EQ(DB->getASTPaths().size(), 2);
18}
19
20TEST(TestBuildDB, TestLoadWithInvalidFormatN) {
21 auto DataDirPath = getProjectBaseDirPath("test_builddb");

Callers

nothing calls this directly

Calls 5

getProjectBaseDirPathFunction · 0.85
getBCPathMethod · 0.80
getProjectDirMethod · 0.80
sizeMethod · 0.80
getASTPathsMethod · 0.80

Tested by

no test coverage detected