<commit_before>#include "remote_logging_tests.hpp"
#include "xyz/openbmc_project/Common/error.hpp"

namespace phosphor
{
namespace logging
{
namespace test
{

using namespace sdbusplus::xyz::openbmc_project::Common::Error;

TEST_F(TestRemoteLogging, testGoodAddress)
{
    config->address("1.1.1.1");
    EXPECT_EQ(config->address(), "1.1.1.1");
}

TEST_F(TestRemoteLogging, testBadAddress)
{
    EXPECT_THROW(config->address("not_an_IP"), InvalidArgument);
}

} // namespace test
} // namespace logging
} // namespace phosphor<commit_msg>invalid-address: ensure bad path is invalid<commit_after>#include "remote_logging_tests.hpp"
#include "xyz/openbmc_project/Common/error.hpp"

namespace phosphor
{
namespace logging
{
namespace test
{

using namespace sdbusplus::xyz::openbmc_project::Common::Error;

TEST_F(TestRemoteLogging, testGoodAddress)
{
    config->address("1.1.1.1");
    EXPECT_EQ(config->address(), "1.1.1.1");
}

TEST_F(TestRemoteLogging, testBadAddress)
{
    EXPECT_THROW(config->address("this is not_an_IP!"), InvalidArgument);
}

} // namespace test
} // namespace logging
} // namespace phosphor
{'fraction_non_alphanumeric': 0.1423455684870188, 'fraction_numerical': 0.01432408236347359, 'mean_word_length': 5.858895705521473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5920299', 'n_tokens_mistral': 386, 'n_tokens_neox': 377, 'n_words': 62}