From: Mukund Sivaraman Date: Mon, 24 Sep 2012 06:02:05 +0000 (+0530) Subject: [2218] Document NSEC3 test data structure X-Git-Tag: trac2351_base~37^2~1^2~3^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1d08475aec2b0f3c45fa35db5ad629ab14dfb26;p=thirdparty%2Fkea.git [2218] Document NSEC3 test data structure --- diff --git a/src/lib/datasrc/memory/tests/zone_finder_unittest.cc b/src/lib/datasrc/memory/tests/zone_finder_unittest.cc index 6319dea517..cf54157318 100644 --- a/src/lib/datasrc/memory/tests/zone_finder_unittest.cc +++ b/src/lib/datasrc/memory/tests/zone_finder_unittest.cc @@ -1481,8 +1481,16 @@ TEST_F(InMemoryZoneFinderNSEC3Test, findNSEC3) { } struct TestData { + // String for the name passed to findNSEC3() (concatenated with + // "example.org.") const char* const name; + // Should recursive findNSEC3() be performed? const bool recursive; + // The following are members of the FindNSEC3Result returned by + // findNSEC3(). The proofs are given as char*, which are converted + // to Name objects and checked against getName() on the returned + // ConstRRsetPtr. If any of these is NULL, then it's expected that + // ConstRRsetPtr() will be returned. const bool matched; const uint8_t closest_labels; const char* const closest_proof;