mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:00:06 +00:00
Rename IEM warnings provider to IEM API provider
This commit is contained in:
parent
cf87cc9bf0
commit
f9e79b3e40
5 changed files with 25 additions and 25 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#include <scwx/provider/iem_warnings_provider.hpp>
|
||||
#include <scwx/provider/iem_api_provider.hpp>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
|
@ -7,12 +7,12 @@ namespace scwx
|
|||
namespace provider
|
||||
{
|
||||
|
||||
TEST(IemWarningsProviderTest, ListTextProducts)
|
||||
TEST(IemApiProviderTest, ListTextProducts)
|
||||
{
|
||||
using namespace std::chrono;
|
||||
using sys_days = time_point<system_clock, days>;
|
||||
|
||||
IemWarningsProvider provider {};
|
||||
IemApiProvider provider {};
|
||||
|
||||
auto date = sys_days {2023y / March / 25d};
|
||||
|
||||
|
|
@ -30,14 +30,14 @@ TEST(IemWarningsProviderTest, ListTextProducts)
|
|||
}
|
||||
}
|
||||
|
||||
TEST(IemWarningsProviderTest, LoadTextProducts)
|
||||
TEST(IemApiProviderTest, LoadTextProducts)
|
||||
{
|
||||
static const std::vector<std::string> productIds {
|
||||
"202303250016-KMEG-WFUS54-TORMEG",
|
||||
"202303252015-KFFC-WFUS52-TORFFC",
|
||||
"202303311942-KLZK-WWUS54-SVSLZK"};
|
||||
|
||||
IemWarningsProvider provider {};
|
||||
IemApiProvider provider {};
|
||||
|
||||
auto textProducts = provider.LoadTextProducts(productIds);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue