| 9 | using namespace ftg; |
| 10 | |
| 11 | TEST(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 | |
| 20 | TEST(TestBuildDB, TestLoadWithInvalidFormatN) { |
| 21 | auto DataDirPath = getProjectBaseDirPath("test_builddb"); |
nothing calls this directly
no test coverage detected