Add IEM load text product API functionality

This commit is contained in:
Dan Paulat 2025-02-01 23:40:06 -06:00
parent f06191f290
commit 2720ad6a38
5 changed files with 90 additions and 20 deletions

View file

@ -7,7 +7,7 @@ namespace scwx
namespace provider
{
TEST(IemWarningsProviderTest, LoadUpdatedFiles)
TEST(IemWarningsProviderTest, ListTextProducts)
{
using namespace std::chrono;
using sys_days = time_point<system_clock, days>;
@ -30,5 +30,18 @@ TEST(IemWarningsProviderTest, LoadUpdatedFiles)
}
}
TEST(IemWarningsProviderTest, LoadTextProducts)
{
static const std::vector<std::string> productIds {
"202303250016-KMEG-WFUS54-TORMEG", //
"202303252015-KFFC-WFUS52-TORFFC"};
IemWarningsProvider provider {};
auto textProducts = provider.LoadTextProducts(productIds);
EXPECT_EQ(textProducts.size(), 2);
}
} // namespace provider
} // namespace scwx