blob: 758d8b3567ca26563c025dc862a075fde35f98c3 [file] [log] [blame]
#include "registries.hpp"
#include "gmock/gmock.h"
namespace redfish::registries
{
namespace
{
TEST(FillMessageArgs, ArgsAreFilledCorrectly)
{
std::string toFill("%1");
fillMessageArgs({{"foo"}}, toFill);
EXPECT_EQ(toFill, "foo");
toFill = "";
fillMessageArgs({}, toFill);
EXPECT_EQ(toFill, "");
toFill = "%1, %2";
fillMessageArgs({{"foo", "bar"}}, toFill);
EXPECT_EQ(toFill, "foo, bar");
}
} // namespace
} // namespace redfish::registries