blob: 8340340863b0b048b4b16a76e19f0d00a9bcdf5a [file] [log] [blame]
Ed Tanousc5ba4c22022-02-07 09:59:55 -08001#include "registries.hpp"
2
3#include "gmock/gmock.h"
4
5TEST(RedfishRegistries, fillMessageArgs)
6{
7 using redfish::message_registries::fillMessageArgs;
8 std::string toFill("%1");
9 fillMessageArgs({{"foo"}}, toFill);
10 EXPECT_EQ(toFill, "foo");
11
12 toFill = "";
13 fillMessageArgs({}, toFill);
14 EXPECT_EQ(toFill, "");
15
16 toFill = "%1, %2";
17 fillMessageArgs({{"foo", "bar"}}, toFill);
18 EXPECT_EQ(toFill, "foo, bar");
19}