list->add(json);
}
-// This test checks that all map entries are in the all-keys file.
+// This test checks that all map entries are in the example files.
TEST(ParserTest, mapEntries) {
// Type of keyword set.
typedef set<string> KeywordSet;
}
syntax_file.close();
- // Get keywords from the all-keys and reservations file
+ // Get keywords from the example files.
string sample_dir(CFG_EXAMPLES);
sample_dir += "/";
ElementPtr sample_json = Element::createList();
list->add(json);
}
-// This test checks that all map entries are in the all-keys file.
+// This test checks that all map entries are in the example files.
TEST(ParserTest, mapEntries) {
// Type of keyword set.
typedef set<string> KeywordSet;
loadFile(sample_dir + "duid.json", sample_json);
loadFile(sample_dir + "reservations.json", sample_json);
KeywordSet sample_keys = {
- "hosts-database",
+ "hosts-database"
};
// Recursively extract keywords.
static void (*extract)(ConstElementPtr, KeywordSet&) =