Sfoglia il codice sorgente

Replace namespace usages by dedicated using in core test module

Patrick-Christopher Mattulat 1 anno fa
parent
commit
60add68877

+ 6 - 4
test/cases/core/ClassTest.cpp

@@ -11,10 +11,12 @@
 #include <ls-std-core-test.hpp>
 #include <ls-std/ls-std-core.hpp>
 
-using namespace ls::std::core;
-using namespace ::std;
-using namespace test::core;
-using namespace ::testing;
+using ls::std::core::Class;
+using ls::std::core::IllegalArgumentException;
+using std::make_shared;
+using std::shared_ptr;
+using test::core::ClassWrapper;
+using testing::Test;
 
 namespace
 {

+ 5 - 4
test/cases/core/ConditionalFunctionExecutorTest.cpp

@@ -11,10 +11,11 @@
 #include <ls-std-core-test.hpp>
 #include <ls-std/ls-std-core.hpp>
 
-using namespace ls::std::core;
-using namespace test::core;
-using namespace ::std;
-using namespace ::testing;
+using ls::std::core::ConditionalFunctionExecutor;
+using std::make_shared;
+using std::shared_ptr;
+using test::core::MathOddValidator;
+using testing::Test;
 
 namespace
 {

+ 2 - 2
test/cases/core/LibraryVersionTest.cpp

@@ -10,8 +10,8 @@
 #include <gtest/gtest.h>
 #include <ls-std/ls-std-core.hpp>
 
-using namespace ls::std::core;
-using namespace ::testing;
+using ls::std::core::LibraryVersion;
+using testing::Test;
 
 namespace
 {

+ 2 - 2
test/cases/core/VersionTest.cpp

@@ -10,8 +10,8 @@
 #include <gtest/gtest.h>
 #include <ls-std/ls-std-core.hpp>
 
-using namespace ls::std::core;
-using namespace ::testing;
+using ls::std::core::Version;
+using testing::Test;
 
 namespace
 {

+ 4 - 3
test/cases/core/evaluator/EmptyStringArgumentEvaluatorTest.cpp

@@ -11,9 +11,10 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::std;
-using namespace ::testing;
+using ls::std::core::EmptyStringArgumentEvaluator;
+using ls::std::core::IllegalArgumentException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 4 - 3
test/cases/core/evaluator/IndexOutOfBoundsEvaluatorTest.cpp

@@ -11,9 +11,10 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::std;
-using namespace ::testing;
+using ls::std::core::IndexOutOfBoundsEvaluator;
+using ls::std::core::IndexOutOfBoundsException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 4 - 3
test/cases/core/evaluator/NullPointerArgumentEvaluatorTest.cpp

@@ -11,9 +11,10 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::std;
-using namespace ::testing;
+using ls::std::core::IllegalArgumentException;
+using ls::std::core::NullPointerArgumentEvaluator;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 4 - 3
test/cases/core/evaluator/NullPointerEvaluatorTest.cpp

@@ -11,9 +11,10 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::std;
-using namespace ::testing;
+using ls::std::core::NullPointerEvaluator;
+using ls::std::core::NullPointerException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/EventNotHandledExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::EventNotHandledException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/EventNotSubscribedExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::EventNotSubscribedException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/ExceptionMessageTest.cpp

@@ -10,9 +10,9 @@
 #include <gtest/gtest.h>
 #include <ls-std/ls-std-core.hpp>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::ExceptionMessage;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/FileNotFoundExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::FileNotFoundException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/FileOperationExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::FileOperationException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/IllegalArgumentExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::IllegalArgumentException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/IllegalArithmeticOperationExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::IllegalArithmeticOperationException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/IncompleteJsonExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::IncompleteJsonException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/IndexOutOfBoundsExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::IndexOutOfBoundsException;
+using std::string;
+using testing::Test;
 
 namespace
 {

+ 3 - 3
test/cases/core/exception/NullPointerExceptionTest.cpp

@@ -11,9 +11,9 @@
 #include <ls-std/ls-std-core.hpp>
 #include <string>
 
-using namespace ls::std::core;
-using namespace ::testing;
-using namespace ::std;
+using ls::std::core::NullPointerException;
+using std::string;
+using testing::Test;
 
 namespace
 {