Directory listing

This commit is contained in:
Dan Paulat 2022-11-02 21:59:16 -05:00
parent b9fc22d63e
commit d5d9285736
6 changed files with 337 additions and 0 deletions

View file

@ -0,0 +1,28 @@
#include <scwx/network/dir_list.hpp>
#include <gtest/gtest.h>
namespace scwx
{
namespace network
{
static const std::string& kDefaultUrl {"https://warnings.allisonhouse.com"};
static const std::string& kAlternateUrl {"http://warnings.cod.edu"};
TEST(DirList, GetDefaultUrl)
{
auto records = DirList(kDefaultUrl);
EXPECT_GT(records.size(), 0);
}
TEST(DirList, GetAlternateUrl)
{
auto records = DirList(kAlternateUrl);
EXPECT_GT(records.size(), 0);
}
} // namespace network
} // namespace scwx