Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
72383e89
Commit
72383e89
authored
Jan 28, 2013
by
JINMEI Tatuya
Committed by
Mukund Sivaraman
Jan 28, 2013
Browse files
[2435] Check result of find() in test
parent
79b78d65
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/database_unittest.cc
View file @
72383e89
...
...
@@ -4390,11 +4390,13 @@ TYPED_TEST(RRsetCollectionAndUpdaterTest, updateThrows) {
this
->
updater_
.
reset
();
this
->
updater_
=
this
->
client_
->
getUpdater
(
this
->
zname_
,
false
);
// Just call getRRsetCollection() here. The .find() is unnecessary,
// but we have it to use the result of getRRsetCollection().
this
->
updater_
->
getRRsetCollection
().
find
(
Name
(
"www.example.org"
),
RRClass
::
IN
(),
RRType
::
MX
());
// Just call getRRsetCollection() here. The test using .find() is
// unnecessary for the purpose of this test case, but we have it to
// use the result of getRRsetCollection() and silence some compiler
// complaining about ignoring the return value of
// getRRsetCollection().
EXPECT_FALSE
(
this
->
updater_
->
getRRsetCollection
().
find
(
Name
(
"www.example.org"
),
RRClass
::
IN
(),
RRType
::
MX
()));
// addRRset() must throw isc::InvalidOperation here.
EXPECT_THROW
(
this
->
updater_
->
addRRset
(
*
this
->
rrset_
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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