Commit d8558bef authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2430] Add generateAtEnd unittest

parent a96232b3
......@@ -398,6 +398,23 @@ TEST_F(MasterLoaderTest, generateInMiddle) {
checkRR("", RRType::TXT(), "This is 10 pomegranate");
TEST_F(MasterLoaderTest, generateAtEnd) {
// $ is at the end
const string input =
"$GENERATE 9-10 num$-host 3600 TXT Pomegranate$\n";
stringstream ss(input);
setLoader(ss, Name(""), RRClass::IN(),
checkRR("", RRType::TXT(), "Pomegranate9");
checkRR("", RRType::TXT(), "Pomegranate10");
TEST_F(MasterLoaderTest, generateStripsQuotes) {
const string input =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment