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 1313#include < boost/algorithm/string.hpp>
1414#include < boost/test/unit_test.hpp>
1515
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)
1726
18- static void ResetArgs(const std::string& strArg)
27+ void LocalTestingSetup :: ResetArgs(const std::string& strArg)
1928{
2029 std::vector<std::string> vecArg;
2130 if (strArg.size ())
@@ -33,7 +42,7 @@ static void ResetArgs(const std::string& strArg)
3342 BOOST_CHECK (gArgs .ParseParameters (vecChar.size (), vecChar.data (), error));
3443}
3544
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)
3746{
3847 gArgs .ClearArgs ();
3948 for (const auto & arg : args) {
You can’t perform that action at this time.
0 commit comments