]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2750] Add a comment describing the test
authorMukund Sivaraman <muks@isc.org>
Tue, 3 Sep 2013 04:33:33 +0000 (10:03 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 3 Sep 2013 04:33:33 +0000 (10:03 +0530)
src/lib/datasrc/tests/memory/domaintree_unittest.cc

index 76d8b30f535c98dbbc43a74259d321d271a88dc7..e1d0c385368ea4289b2068efd15ed991ff539ad7 100644 (file)
@@ -382,6 +382,11 @@ TEST_F(DomainTreeTest, insertNames) {
 }
 
 TEST_F(DomainTreeTest, remove) {
+    // This testcase checks that after node removal, the binary-search
+    // tree is valid and all nodes that are supposed to exist are
+    // present in the correct order. It mainly tests DomainTree as a
+    // BST, and not particularly as a red-black tree.
+
     // Delete single nodes and check if the rest of the nodes exist
     for (int j = 0; j < ordered_names_count; ++j) {
         TreeHolder holder(mem_sgmt_, TestDomainTree::create(mem_sgmt_, true));