MCPcopy Create free account
hub / github.com/boostorg/beast / testEmpty

Method testEmpty

test/beast/http/fields.cpp:1137–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135 }
1136
1137 void
1138 testEmpty()
1139 {
1140 beast::http::fields req;
1141 req.insert("abc", "");
1142 req.set("cba", "");
1143 auto itr = req.find("abc");
1144 BEAST_EXPECT(itr != req.end());
1145 BEAST_EXPECT(itr->value().empty());
1146 itr = req.find("cba");
1147 BEAST_EXPECT(itr != req.end());
1148 BEAST_EXPECT(itr->value().empty());
1149 }
1150
1151 void
1152 run() override

Callers

nothing calls this directly

Calls 4

insertMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected