Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
ac473294
Commit
ac473294
authored
May 03, 2013
by
Mukund Sivaraman
Browse files
[2850] Add test for empty params argument to reset()
parent
3456e30b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/memory/zone_table_segment_mapped_unittest.cc
View file @
ac473294
...
@@ -72,6 +72,12 @@ TEST_F(ZoneTableSegmentMappedTest, isWritableUninitialized) {
...
@@ -72,6 +72,12 @@ TEST_F(ZoneTableSegmentMappedTest, isWritableUninitialized) {
}
}
TEST_F
(
ZoneTableSegmentMappedTest
,
resetBadConfig
)
{
TEST_F
(
ZoneTableSegmentMappedTest
,
resetBadConfig
)
{
// NULL is passed in config params
EXPECT_THROW
({
ztable_segment_
->
reset
(
ZoneTableSegment
::
CREATE
,
ConstElementPtr
());
},
isc
::
InvalidParameter
);
// Not a map
// Not a map
EXPECT_THROW
({
EXPECT_THROW
({
ztable_segment_
->
reset
(
ZoneTableSegment
::
CREATE
,
ztable_segment_
->
reset
(
ZoneTableSegment
::
CREATE
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment