Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
445
Issues
445
List
Boards
Labels
Service Desk
Milestones
Merge Requests
71
Merge Requests
71
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
Kea
Commits
35d02013
Commit
35d02013
authored
Jan 07, 2013
by
Mukund Sivaraman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2432] Minimize code
parent
00482386
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/lib/dns/tests/rrset_collection_unittest.cc
src/lib/dns/tests/rrset_collection_unittest.cc
+4
-7
No files found.
src/lib/dns/tests/rrset_collection_unittest.cc
View file @
35d02013
...
...
@@ -125,19 +125,16 @@ doAddAndRemove(RRsetCollection& collection, const RRClass& rrclass) {
},
isc
::
InvalidParameter
);
// Remove foo.example.org/A, which should pass
bool
exists
=
collection
.
removeRRset
(
Name
(
"foo.example.org"
),
rrclass
,
RRType
::
A
());
EXPECT_TRUE
(
exists
);
EXPECT_TRUE
(
collection
.
removeRRset
(
Name
(
"foo.example.org"
),
rrclass
,
RRType
::
A
()));
// foo.example.org/A should not exist now
rrset_found
=
collection
.
find
(
Name
(
"foo.example.org"
),
rrclass
,
RRType
::
A
());
EXPECT_FALSE
(
rrset_found
);
// Removing foo.example.org/A should fail now
exists
=
collection
.
removeRRset
(
Name
(
"foo.example.org"
),
rrclass
,
RRType
::
A
());
EXPECT_FALSE
(
exists
);
EXPECT_FALSE
(
collection
.
removeRRset
(
Name
(
"foo.example.org"
),
rrclass
,
RRType
::
A
()));
}
TEST_F
(
RRsetCollectionTest
,
addAndRemove
)
{
...
...
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