-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[config] Implementation of new configuration management #1505
Changes from 1 commit
382d9ef
0e9c039
49e8ade
70366d5
00b2ec1
eb31c72
548037f
5b07971
9cd3594
9e1be9a
c5ab1dc
05ec616
a861b01
e35df5a
4a0ce13
153ee9e
94f91ae
b196ab4
afe2332
4887b02
c768ba9
6306d99
b4690a0
4694927
388f5bc
9303795
848c572
2370814
e20d510
7cafa3e
a6936d1
ca428d1
5a5fe2c
0370d47
ae7e608
6530bec
3f95473
a435621
832c811
673a4b0
ca14568
e05f398
a8da1ce
2dc3cbc
b2af134
71cc7e5
3c7b05d
3db1f9d
f3bbc96
c19c4ff
e0a1656
063b484
ceb4419
3a811a4
4893564
32dfc18
9395da5
482ae05
284f873
a18e9de
8da505e
2e8b9d4
e7a9642
ddbbc99
10a3835
d19e55e
733d4c6
a7072fc
c946cc6
19512cf
8df8937
4e049db
0667980
0511bed
da0a991
543949e
eb1a4ee
a362f26
521d70b
ba0a6c1
51308c0
aca5d69
557637a
d910ef2
676facf
5476f04
1435ee8
602212f
0dc7398
e454368
d72adbc
82d8d11
b7e0bed
287c24f
e3bb375
ac9dbe9
fed863b
31b0c6e
295f998
915a7f7
a2aca3e
cf2148c
80ef2a0
cafb419
25116ea
f7b8470
f6f3dd5
913fee0
fd80bad
e126b12
f876c26
25dd3e0
7be0dd9
aa1d1ca
db16ff6
9613db0
11044f1
a9a4a41
d1c606d
23ac095
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -237,7 +237,7 @@ TEST(core_cpp_config, config_cmd_parser) | |||||
|
||||||
eCAL::Config::CmdParser parser; | ||||||
Peguen marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
std::vector<const char*> arguments; | ||||||
std::vector<std::string> arguments; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: variable 'arguments' is not initialized [cppcoreguidelines-init-variables]
Suggested change
|
||||||
|
||||||
const std::string set_config_key = "--ecal-set-config-key "; | ||||||
const std::string sep_slash = "/"; | ||||||
|
@@ -257,18 +257,14 @@ TEST(core_cpp_config, config_cmd_parser) | |||||
|
||||||
arguments.push_back("test_config_cmd_parser"); | ||||||
arguments.push_back("--ecal-ini-file customIni.ini"); | ||||||
std::string host_group_string = set_config_key + network + sep_slash + host_group_name + sep_col + config_test_machine; | ||||||
arguments.push_back(host_group_string.data()); | ||||||
std::string network_enabled_string = set_config_key + network + sep_slash + network_enabled + sep_col + is_network_enabled; | ||||||
arguments.push_back(network_enabled_string.data()); | ||||||
std::string registration_to_string = set_config_key + common + sep_slash + registration_timeout + sep_col + reg_to_value; | ||||||
arguments.push_back(registration_to_string.data()); | ||||||
std::string registration_rf_string = set_config_key + common + sep_slash + registration_refresh + sep_col + reg_rf_value; | ||||||
arguments.push_back(registration_rf_string.data()); | ||||||
arguments.push_back(set_config_key + network + sep_slash + host_group_name + sep_col + config_test_machine); | ||||||
arguments.push_back(set_config_key + network + sep_slash + network_enabled + sep_col + is_network_enabled); | ||||||
arguments.push_back(set_config_key + common + sep_slash + registration_timeout + sep_col + reg_to_value); | ||||||
arguments.push_back(set_config_key + common + sep_slash + registration_refresh + sep_col + reg_rf_value); | ||||||
|
||||||
try | ||||||
{ | ||||||
parser.parseArguments(static_cast<int>(arguments.size()), const_cast<char**>(arguments.data())); | ||||||
parser.parseArguments(arguments); | ||||||
} | ||||||
catch(const std::runtime_error& e) | ||||||
{ | ||||||
|
@@ -291,13 +287,13 @@ TEST(CmdParserDeathTest, config_cmd_parser_death_test) | |||||
{ | ||||||
eCAL::Config::CmdParser parser; | ||||||
Peguen marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
std::vector<const char*> arguments; | ||||||
std::vector<std::string> arguments; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: variable 'arguments' is not initialized [cppcoreguidelines-init-variables]
Suggested change
|
||||||
|
||||||
arguments.push_back("test_config_cmd_parser_death_test"); | ||||||
arguments.push_back("--ecal-ini-file someNotValidFileName.ini"); | ||||||
|
||||||
ASSERT_THROW( | ||||||
parser.parseArguments(static_cast<int>(arguments.size()), const_cast<char**>(arguments.data())), | ||||||
parser.parseArguments(arguments), | ||||||
std::runtime_error | ||||||
); | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'eCAL::Configuration::Init' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
Additional context
ecal/core/src/config/ecal_config_initializer.cpp:238: the definition seen here
ecal/core/include/ecal/config/configuration.h:77: differing parameters are named here: ('args_'), in definition: ('arguments_')