Commit ac473294 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2850] Add test for empty params argument to reset()

parent 3456e30b
......@@ -72,6 +72,12 @@ TEST_F(ZoneTableSegmentMappedTest, isWritableUninitialized) {
}
TEST_F(ZoneTableSegmentMappedTest, resetBadConfig) {
// NULL is passed in config params
EXPECT_THROW({
ztable_segment_->reset(ZoneTableSegment::CREATE,
ConstElementPtr());
}, isc::InvalidParameter);
// Not a map
EXPECT_THROW({
ztable_segment_->reset(ZoneTableSegment::CREATE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment