mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 20:00:05 +00:00 
			
		
		
		
	Archive warnings clang-tidy fixes
This commit is contained in:
		
							parent
							
								
									8cdd8526eb
								
							
						
					
					
						commit
						81f09e07f0
					
				
					 14 changed files with 43 additions and 46 deletions
				
			
		|  | @ -2,9 +2,7 @@ | |||
| 
 | ||||
| #include <gtest/gtest.h> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace provider | ||||
| namespace scwx::provider | ||||
| { | ||||
| 
 | ||||
| TEST(IemApiProviderTest, ListTextProducts) | ||||
|  | @ -12,11 +10,9 @@ TEST(IemApiProviderTest, ListTextProducts) | |||
|    using namespace std::chrono; | ||||
|    using sys_days = time_point<system_clock, days>; | ||||
| 
 | ||||
|    IemApiProvider provider {}; | ||||
| 
 | ||||
|    auto date = sys_days {2023y / March / 25d}; | ||||
| 
 | ||||
|    auto torProducts = provider.ListTextProducts(date, {}, "TOR"); | ||||
|    auto torProducts = IemApiProvider::ListTextProducts(date, {}, "TOR"); | ||||
| 
 | ||||
|    ASSERT_EQ(torProducts.has_value(), true); | ||||
|    EXPECT_EQ(torProducts.value().size(), 35); | ||||
|  | @ -40,9 +36,7 @@ TEST(IemApiProviderTest, LoadTextProducts) | |||
|       "202303252015-KFFC-WFUS52-TORFFC", | ||||
|       "202303311942-KLZK-WWUS54-SVSLZK"}; | ||||
| 
 | ||||
|    IemApiProvider provider {}; | ||||
| 
 | ||||
|    auto textProducts = provider.LoadTextProducts(productIds); | ||||
|    auto textProducts = IemApiProvider::LoadTextProducts(productIds); | ||||
| 
 | ||||
|    EXPECT_EQ(textProducts.size(), 3); | ||||
| 
 | ||||
|  | @ -60,5 +54,4 @@ TEST(IemApiProviderTest, LoadTextProducts) | |||
|    } | ||||
| } | ||||
| 
 | ||||
| } // namespace provider
 | ||||
| } // namespace scwx
 | ||||
| } // namespace scwx::provider
 | ||||
|  |  | |||
|  | @ -18,9 +18,9 @@ TEST_P(WarningsProviderTest, LoadUpdatedFiles) | |||
| { | ||||
|    WarningsProvider provider(GetParam()); | ||||
| 
 | ||||
|    std::chrono::sys_time<std::chrono::hours> now = | ||||
|    const std::chrono::sys_time<std::chrono::hours> now = | ||||
|       std::chrono::floor<std::chrono::hours>(std::chrono::system_clock::now()); | ||||
|    std::chrono::sys_time<std::chrono::hours> startTime = | ||||
|    const std::chrono::sys_time<std::chrono::hours> startTime = | ||||
|       now - std::chrono::days {3}; | ||||
| 
 | ||||
|    auto updatedFiles = provider.LoadUpdatedFiles(startTime); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat