blob: b75883c3594261d5cf4ebfee5a82aa7e1e501793 [file] [log] [blame]
#include "registries.hpp"
#include "gmock/gmock.h"
TEST(RedfishRegistries, fillMessageArgs)
{
using redfish::registries::fillMessageArgs;
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");
}