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
Adam Osuchowski
Kea
Commits
393c70b7
Commit
393c70b7
authored
Dec 18, 2012
by
Marcin Siodelski
Browse files
[2544] Added missing description of function.
parent
c980c37c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/tests/config_parser_unittest.cc
View file @
393c70b7
...
...
@@ -88,6 +88,8 @@ public:
/// injected into the configuration string.
/// @param parameter name of the parameter to be configured with
/// param value.
/// @return configuration string containing custom values of parameters
/// describing an option.
std
::
string
createConfigWithOption
(
const
std
::
string
&
param_value
,
const
std
::
string
&
parameter
)
{
std
::
map
<
std
::
string
,
std
::
string
>
params
;
...
...
@@ -107,6 +109,14 @@ public:
return
(
createConfigWithOption
(
params
));
}
/// @brief Create simple configuration with single option.
///
/// This function creates a configuration for a single option with
/// custom values for all parameters that describe the option.
///
/// @params params map holding parameters and their values.
/// @return configuration string containing custom values of parameters
/// describing an option.
std
::
string
createConfigWithOption
(
const
std
::
map
<
std
::
string
,
std
::
string
>&
params
)
{
std
::
ostringstream
stream
;
stream
<<
"{
\"
interface
\"
: [
\"
all
\"
],"
...
...
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