BIND 10 trac2108_3, updated. 4da836d3f6d756fe91ae42fd5cb83ec282f3dc33 [2108] Add tests for getFileName()
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Sep 5 14:55:22 UTC 2012
The branch, trac2108_3 has been updated
via 4da836d3f6d756fe91ae42fd5cb83ec282f3dc33 (commit)
via e9d6cf4587af29f3120b7b41a8174a19334719c0 (commit)
from 92850a8f2cbcd9dd08882fc92c3db5fe11f8a32f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4da836d3f6d756fe91ae42fd5cb83ec282f3dc33
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Sep 5 20:25:10 2012 +0530
[2108] Add tests for getFileName()
commit e9d6cf4587af29f3120b7b41a8174a19334719c0
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Sep 5 20:25:00 2012 +0530
[2108] Add a small list of items to do
-----------------------------------------------------------------------
Summary of changes:
.../datasrc/memory/tests/memory_client_unittest.cc | 15 +++++++++++++++
1 file changed, 15 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
index aa51a4a..88e47b6 100644
--- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc
+++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
@@ -80,6 +80,17 @@ TEST_F(MemoryClientTest, getZoneCount) {
EXPECT_EQ(1, client_->getZoneCount());
}
+TEST_F(MemoryClientTest, getFileNameForNonExistentZone) {
+ // Zone "example.org." doesn't exist
+ EXPECT_TRUE(client_->getFileName(Name("example.org.")).empty());
+}
+
+TEST_F(MemoryClientTest, getFileName) {
+ client_->load(Name("example.org"), TEST_DATA_DIR "/example.org-empty.zone");
+ EXPECT_EQ(TEST_DATA_DIR "/example.org-empty.zone",
+ client_->getFileName(Name("example.org")));
+}
+
TEST_F(MemoryClientTest, getIteratorForNonExistentZone) {
// Zone "." doesn't exist
EXPECT_THROW(client_->getIterator(Name(".")), DataSourceError);
@@ -153,4 +164,8 @@ TEST_F(MemoryClientTest, getJournalReaderNotImplemented) {
EXPECT_THROW(client_->getJournalReader(Name("."), 0, 0),
isc::NotImplemented);
}
+
+// TODO:
+// Add test for add() with separate_rrs=true
+
}
More information about the bind10-changes
mailing list