]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2905] clarify the case we pass NULL to ZoneWriter::load() in comments.
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 22 May 2013 20:08:21 +0000 (13:08 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 22 May 2013 20:08:21 +0000 (13:08 -0700)
src/lib/datasrc/tests/memory/zone_writer_unittest.cc

index dd9321e877763c4dbb97f6de66936c2aa29383a2..1838fa9da17c90d87d1264c909f167aa79bed1f5 100644 (file)
@@ -267,7 +267,9 @@ TEST_F(ZoneWriterTest, loadLoaderException) {
     EXPECT_EQ("", error_msg);
 
     // If we specify allowing load error, load() will succeed and install()
-    // adds an empty zone.
+    // adds an empty zone.  Note that we implicitly pass NULL to load()
+    // as it's the default parameter, so the following also confirms it doesn't
+    // cause disruption.
     writer_.reset(new ZoneWriter(*segment_,
                                  bind(&ZoneWriterTest::loadAction, this, _1),
                                  Name("example.org"), RRClass::IN(), true));