]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2218] Document NSEC3 test data structure
authorMukund Sivaraman <muks@isc.org>
Mon, 24 Sep 2012 06:02:05 +0000 (11:32 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 24 Sep 2012 06:02:05 +0000 (11:32 +0530)
src/lib/datasrc/memory/tests/zone_finder_unittest.cc

index 6319dea517dc3c19a6daa9dc4c074518a2ffd5ad..cf541573186efc56560f9df07f774219325a71fe 100644 (file)
@@ -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;