Browse Source

[2218] Document NSEC3 test data structure

Mukund Sivaraman 12 years ago
parent
commit
d1d08475ae
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/lib/datasrc/memory/tests/zone_finder_unittest.cc

+ 8 - 0
src/lib/datasrc/memory/tests/zone_finder_unittest.cc

@@ -1481,8 +1481,16 @@ TEST_F(InMemoryZoneFinderNSEC3Test, findNSEC3) {
 }
 }
 
 
 struct TestData {
 struct TestData {
+     // String for the name passed to findNSEC3() (concatenated with
+     // "example.org.")
      const char* const name;
      const char* const name;
+     // Should recursive findNSEC3() be performed?
      const bool recursive;
      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 bool matched;
      const uint8_t closest_labels;
      const uint8_t closest_labels;
      const char* const closest_proof;
      const char* const closest_proof;