mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:40:06 +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 <boost/log/trivial.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| 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) | ||||
| { | ||||
|  |  | |||
|  | @ -2,15 +2,13 @@ | |||
| 
 | ||||
| #include <gtest/gtest.h> | ||||
| 
 | ||||
| #include <boost/log/trivial.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace awips | ||||
| { | ||||
| 
 | ||||
| static const std::string logPrefix_ = | ||||
|    "[scwx::awips::coded_time_motion_location.test] "; | ||||
|    "scwx::awips::coded_time_motion_location.test"; | ||||
| 
 | ||||
| TEST(CodedTimeMotionLocation, LeadingZeroes) | ||||
| { | ||||
|  |  | |||
|  | @ -2,14 +2,12 @@ | |||
| 
 | ||||
| #include <gtest/gtest.h> | ||||
| 
 | ||||
| #include <boost/log/trivial.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| 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::chrono::hh_mm_ss<std::chrono::minutes>> | ||||
|  |  | |||
|  | @ -2,14 +2,12 @@ | |||
| 
 | ||||
| #include <gtest/gtest.h> | ||||
| 
 | ||||
| #include <boost/log/trivial.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| 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> | ||||
| { | ||||
|  |  | |||
|  | @ -4,15 +4,12 @@ | |||
| 
 | ||||
| #include <gtest/gtest.h> | ||||
| 
 | ||||
| #include <boost/log/trivial.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace wsr88d | ||||
| { | ||||
| 
 | ||||
| static const std::string logPrefix_ = | ||||
|    "[scwx::wsr88d::nexrad_file_factory.test] "; | ||||
| static const std::string logPrefix_ = "scwx::wsr88d::nexrad_file_factory.test"; | ||||
| 
 | ||||
| TEST(NexradFileFactory, Level2V06) | ||||
| { | ||||
|  |  | |||
|  | @ -1,12 +1,12 @@ | |||
| #include <gtest/gtest.h> | ||||
| #include <scwx/util/logger.hpp> | ||||
| 
 | ||||
| #include <boost/log/expressions.hpp> | ||||
| #include <boost/log/trivial.hpp> | ||||
| #include <gtest/gtest.h> | ||||
| #include <spdlog/spdlog.h> | ||||
| 
 | ||||
| int main(int argc, char** argv) | ||||
| { | ||||
|    boost::log::core::get()->set_filter(boost::log::trivial::severity >= | ||||
|                                        boost::log::trivial::debug); | ||||
|    scwx::util::Logger::Initialize(); | ||||
|    spdlog::set_level(spdlog::level::debug); | ||||
| 
 | ||||
|    ::testing::InitGoogleTest(&argc, argv); | ||||
|    return RUN_ALL_TESTS(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat