34 std::vector<StructuredHeaderItem>
v;
39 EXPECT_EQ(v[1].tag, StructuredHeaderItem::Type::DOUBLE);
40 EXPECT_EQ(v[2].tag, StructuredHeaderItem::Type::INT64);
51 std::vector<StructuredHeaderItem>
v;
56 EXPECT_EQ(v[1].tag, StructuredHeaderItem::Type::INT64);
66 std::vector<StructuredHeaderItem>
v;
71 EXPECT_EQ(v[1].tag, StructuredHeaderItem::Type::INT64);
81 std::vector<StructuredHeaderItem>
v;
86 EXPECT_EQ(v[1].tag, StructuredHeaderItem::Type::INT64);
96 std::vector<StructuredHeaderItem>
v;
100 EXPECT_EQ(v[0].
tag, StructuredHeaderItem::Type::BINARYCONTENT);
106 std::string input =
"age=87 , weight=150.8 , name=\"John Doe\"";
109 std::unordered_map<std::string, StructuredHeaderItem>
m;
113 EXPECT_EQ(m[
"age"].
tag, StructuredHeaderItem::Type::INT64);
114 EXPECT_EQ(m[
"weight"].tag, StructuredHeaderItem::Type::DOUBLE);
126 std::unordered_map<std::string, StructuredHeaderItem>
m;
130 EXPECT_EQ(m[
"bagel"].
tag, StructuredHeaderItem::Type::BINARYCONTENT);
148 std::string input =
"a_13;a=1;b=2; c_4, ghi;q=\"9\";r=*bWF4IGlzIGF3ZXNvbWU=*";
157 EXPECT_EQ(pl[0].parameterMap[
"a"].
tag, StructuredHeaderItem::Type::INT64);
158 EXPECT_EQ(pl[0].parameterMap[
"b"].tag, StructuredHeaderItem::Type::INT64);
159 EXPECT_EQ(pl[0].parameterMap[
"c_4"].tag, StructuredHeaderItem::Type::NONE);
167 StructuredHeaderItem::Type::BINARYCONTENT);
199 EXPECT_EQ(pl[0].parameterMap[
"abc"].
tag, StructuredHeaderItem::Type::DOUBLE);
200 EXPECT_EQ(pl[0].parameterMap[
"abc"], 11.8);
207 std::string input =
"beverages;water;juice, food;pizza;burger";
214 EXPECT_EQ(pl[0].identifier,
"beverages");
216 EXPECT_EQ(pl[0].parameterMap[
"water"].
tag, StructuredHeaderItem::Type::NONE);
217 EXPECT_EQ(pl[0].parameterMap[
"juice"].tag, StructuredHeaderItem::Type::NONE);
221 EXPECT_EQ(pl[1].parameterMap[
"pizza"].tag, StructuredHeaderItem::Type::NONE);
222 EXPECT_EQ(pl[1].parameterMap[
"burger"].tag, StructuredHeaderItem::Type::NONE);
#define EXPECT_EQ(val1, val2)
static map< string, int > m
TEST_F(HeaderTableTests, IndexTranslation)