mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:20:05 +00:00 
			
		
		
		
	Boost.Log -> spdlog - test
This commit is contained in:
		
							parent
							
								
									c6281d799f
								
							
						
					
					
						commit
						7734fcabab
					
				
					 6 changed files with 10 additions and 21 deletions
				
			
		|  | @ -2,14 +2,12 @@ | ||||||
| 
 | 
 | ||||||
| #include <gtest/gtest.h> | #include <gtest/gtest.h> | ||||||
| 
 | 
 | ||||||
| #include <boost/log/trivial.hpp> |  | ||||||
| 
 |  | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
| namespace awips | namespace awips | ||||||
| { | { | ||||||
| 
 | 
 | ||||||
| static const std::string logPrefix_ = "[scwx::awips::coded_location.test] "; | static const std::string logPrefix_ = "scwx::awips::coded_location.test"; | ||||||
| 
 | 
 | ||||||
| TEST(CodedLocation, WFO100W) | TEST(CodedLocation, WFO100W) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -2,15 +2,13 @@ | ||||||
| 
 | 
 | ||||||
| #include <gtest/gtest.h> | #include <gtest/gtest.h> | ||||||
| 
 | 
 | ||||||
| #include <boost/log/trivial.hpp> |  | ||||||
| 
 |  | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
| namespace awips | namespace awips | ||||||
| { | { | ||||||
| 
 | 
 | ||||||
| static const std::string logPrefix_ = | static const std::string logPrefix_ = | ||||||
|    "[scwx::awips::coded_time_motion_location.test] "; |    "scwx::awips::coded_time_motion_location.test"; | ||||||
| 
 | 
 | ||||||
| TEST(CodedTimeMotionLocation, LeadingZeroes) | TEST(CodedTimeMotionLocation, LeadingZeroes) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| 
 | 
 | ||||||
| #include <gtest/gtest.h> | #include <gtest/gtest.h> | ||||||
| 
 | 
 | ||||||
| #include <boost/log/trivial.hpp> |  | ||||||
| 
 |  | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
| namespace awips | namespace awips | ||||||
| { | { | ||||||
| 
 | 
 | ||||||
| static const std::string logPrefix_ = "[scwx::awips::pvtec.test] "; | static const std::string logPrefix_ = "scwx::awips::pvtec.test"; | ||||||
| 
 | 
 | ||||||
| std::pair<std::chrono::year_month_day, | std::pair<std::chrono::year_month_day, | ||||||
|           std::chrono::hh_mm_ss<std::chrono::minutes>> |           std::chrono::hh_mm_ss<std::chrono::minutes>> | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| 
 | 
 | ||||||
| #include <gtest/gtest.h> | #include <gtest/gtest.h> | ||||||
| 
 | 
 | ||||||
| #include <boost/log/trivial.hpp> |  | ||||||
| 
 |  | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
| namespace awips | namespace awips | ||||||
| { | { | ||||||
| 
 | 
 | ||||||
| static const std::string logPrefix_ = "[scwx::awips::text_product_file.test] "; | static const std::string logPrefix_ = "scwx::awips::text_product_file.test"; | ||||||
| 
 | 
 | ||||||
| class TextProductValidFileTest : public testing::TestWithParam<std::string> | class TextProductValidFileTest : public testing::TestWithParam<std::string> | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -4,15 +4,12 @@ | ||||||
| 
 | 
 | ||||||
| #include <gtest/gtest.h> | #include <gtest/gtest.h> | ||||||
| 
 | 
 | ||||||
| #include <boost/log/trivial.hpp> |  | ||||||
| 
 |  | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
| namespace wsr88d | namespace wsr88d | ||||||
| { | { | ||||||
| 
 | 
 | ||||||
| static const std::string logPrefix_ = | static const std::string logPrefix_ = "scwx::wsr88d::nexrad_file_factory.test"; | ||||||
|    "[scwx::wsr88d::nexrad_file_factory.test] "; |  | ||||||
| 
 | 
 | ||||||
| TEST(NexradFileFactory, Level2V06) | TEST(NexradFileFactory, Level2V06) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -1,12 +1,12 @@ | ||||||
| #include <gtest/gtest.h> | #include <scwx/util/logger.hpp> | ||||||
| 
 | 
 | ||||||
| #include <boost/log/expressions.hpp> | #include <gtest/gtest.h> | ||||||
| #include <boost/log/trivial.hpp> | #include <spdlog/spdlog.h> | ||||||
| 
 | 
 | ||||||
| int main(int argc, char** argv) | int main(int argc, char** argv) | ||||||
| { | { | ||||||
|    boost::log::core::get()->set_filter(boost::log::trivial::severity >= |    scwx::util::Logger::Initialize(); | ||||||
|                                        boost::log::trivial::debug); |    spdlog::set_level(spdlog::level::debug); | ||||||
| 
 | 
 | ||||||
|    ::testing::InitGoogleTest(&argc, argv); |    ::testing::InitGoogleTest(&argc, argv); | ||||||
|    return RUN_ALL_TESTS(); |    return RUN_ALL_TESTS(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat