Jelajahi Sumber

Improve io test namespace

Patrick-Christopher Mattulat 2 tahun lalu
induk
melakukan
8dba9d3df7

+ 2 - 2
test/cases/io/xml/XmlDocumentTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-30
- * Changed:         2023-02-04
+ * Changed:         2023-02-05
  *
  * */
 
@@ -15,7 +15,7 @@
 using namespace ls::std::core;
 using namespace ls::std::io;
 using namespace ::std;
-using namespace ls_std_io_test;
+using namespace test::io;
 
 namespace
 {

+ 2 - 2
test/cases/io/xml/XmlNodeTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-25
- * Changed:         2023-02-04
+ * Changed:         2023-02-05
  *
  * */
 
@@ -15,7 +15,7 @@
 using namespace ls::std::core;
 using namespace ls::std::io;
 using namespace ::std;
-using namespace ls_std_io_test;
+using namespace test::io;
 
 namespace
 {

+ 2 - 2
test/cases/io/xml/XmlParserTestWrapperTest.cpp

@@ -3,14 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-10-18
- * Changed:         2023-02-03
+ * Changed:         2023-02-05
  *
  * */
 
 #include <gtest/gtest.h>
 #include <ls-std-io-test.hpp>
 
-using namespace ls_std_io_test;
+using namespace test::io;
 using namespace ::std;
 
 namespace

+ 3 - 3
test/classes/io/xml/TestDataFactory.cpp

@@ -9,11 +9,11 @@
 
 #include "TestDataFactory.hpp"
 
-ls_std_io_test::TestDataFactory::TestDataFactory() = default;
+test::io::TestDataFactory::TestDataFactory() = default;
 
-ls_std_io_test::TestDataFactory::~TestDataFactory() = default;
+test::io::TestDataFactory::~TestDataFactory() = default;
 
-::std::shared_ptr<ls::std::io::XmlNode> ls_std_io_test::TestDataFactory::createXmlContent()
+::std::shared_ptr<ls::std::io::XmlNode> test::io::TestDataFactory::createXmlContent()
 {
   ::std::shared_ptr<ls::std::io::XmlNode> root = ::std::make_shared<ls::std::io::XmlNode>("dialog");
   ::std::shared_ptr<ls::std::io::XmlAttribute> attribute{};

+ 1 - 1
test/classes/io/xml/TestDataFactory.hpp

@@ -13,7 +13,7 @@
 #include <ls-std/ls-std-io.hpp>
 #include <memory>
 
-namespace ls_std_io_test
+namespace test::io
 {
   class TestDataFactory
   {

+ 4 - 4
test/classes/io/xml/XmlParserTestWrapper.cpp

@@ -9,17 +9,17 @@
 
 #include "XmlParserTestWrapper.hpp"
 
-ls_std_io_test::XmlParserTestWrapper::XmlParserTestWrapper() : ls::std::io::XmlParser(nullptr)
+test::io::XmlParserTestWrapper::XmlParserTestWrapper() : ls::std::io::XmlParser(nullptr)
 {}
 
-ls_std_io_test::XmlParserTestWrapper::~XmlParserTestWrapper() = default;
+test::io::XmlParserTestWrapper::~XmlParserTestWrapper() = default;
 
-::std::pair<::std::string, ::std::string> ls_std_io_test::XmlParserTestWrapper::readAttribute(const ls::std::core::type::byte_field &_data)
+::std::pair<::std::string, ::std::string> test::io::XmlParserTestWrapper::readAttribute(const ls::std::core::type::byte_field &_data)
 {
   return ls::std::io::XmlParser::_readAttribute_(_data);
 }
 
-::std::list<::std::pair<::std::string, ::std::string>> ls_std_io_test::XmlParserTestWrapper::readAttributes(ls::std::core::type::byte_field _data)
+::std::list<::std::pair<::std::string, ::std::string>> test::io::XmlParserTestWrapper::readAttributes(ls::std::core::type::byte_field _data)
 {
   return ls::std::io::XmlParser::_readAttributes_(::std::move(_data));
 }

+ 1 - 1
test/classes/io/xml/XmlParserTestWrapper.hpp

@@ -12,7 +12,7 @@
 
 #include <ls-std/ls-std-io.hpp>
 
-namespace ls_std_io_test
+namespace test::io
 {
   class XmlParserTestWrapper : public ls::std::io::XmlParser
   {