Browse Source

Replace namespace usages by dedicated using in boxing test module

Patrick-Christopher Mattulat 1 năm trước cách đây
mục cha
commit
c6c7dc6e39

+ 4 - 4
test/cases/boxing/BooleanTest.cpp

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

+ 4 - 5
test/cases/boxing/DoubleTest.cpp

@@ -11,10 +11,10 @@
 #include <ls-std/ls-std-boxing.hpp>
 #include <ls-std/ls-std-core.hpp>
 
-using namespace ls::std::boxing;
-using namespace ls::std::core;
-using namespace ::std;
-using namespace ::testing;
+using ls::std::boxing::Double;
+using ls::std::core::IllegalArgumentException;
+using std::string;
+using testing::Test;
 
 namespace
 {
@@ -23,7 +23,6 @@ namespace
     protected:
 
       DoubleTest() = default;
-
       ~DoubleTest() override = default;
 
       void SetUp() override

+ 4 - 4
test/cases/boxing/FloatTest.cpp

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

+ 3 - 3
test/cases/boxing/IntegerTest.cpp

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

+ 4 - 5
test/cases/boxing/LongTest.cpp

@@ -11,10 +11,10 @@
 #include <ls-std/ls-std-boxing.hpp>
 #include <ls-std/ls-std-core.hpp>
 
-using namespace ls::std::boxing;
-using namespace ls::std::core;
-using namespace ls::std::core::type;
-using namespace ::testing;
+using ls::std::boxing::Long;
+using ls::std::core::IllegalArithmeticOperationException;
+using ls::std::core::type::long_type;
+using testing::Test;
 
 namespace
 {
@@ -23,7 +23,6 @@ namespace
     protected:
 
       LongTest() = default;
-
       ~LongTest() override = default;
 
       void SetUp() override

+ 3 - 3
test/cases/boxing/StringTest.cpp

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