File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 13
13
#include < boost/algorithm/string.hpp>
14
14
#include < boost/test/unit_test.hpp>
15
15
16
- BOOST_FIXTURE_TEST_SUITE (getarg_tests, BasicTestingSetup)
16
+ namespace getarg_tests {
17
+ class LocalTestingSetup : BasicTestingSetup {
18
+ protected:
19
+ void SetupArgs (const std::vector<std::pair<std::string, unsigned int >>& args);
20
+ void ResetArgs (const std::string& strArg);
21
+ ArgsManager m_args;
22
+ };
23
+ }
24
+
25
+ BOOST_FIXTURE_TEST_SUITE (getarg_tests, LocalTestingSetup)
17
26
18
- static void ResetArgs(const std::string& strArg)
27
+ void LocalTestingSetup :: ResetArgs(const std::string& strArg)
19
28
{
20
29
std::vector<std::string> vecArg;
21
30
if (strArg.size ())
@@ -33,7 +42,7 @@ static void ResetArgs(const std::string& strArg)
33
42
BOOST_CHECK (gArgs .ParseParameters (vecChar.size (), vecChar.data (), error));
34
43
}
35
44
36
- static void SetupArgs (const std::vector<std::pair<std::string, unsigned int >>& args)
45
+ void LocalTestingSetup :: SetupArgs(const std::vector<std::pair<std::string, unsigned int >>& args)
37
46
{
38
47
gArgs .ClearArgs ();
39
48
for (const auto & arg : args) {
You can’t perform that action at this time.
0 commit comments