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

Method testIssue1828

test/beast/http/fields.cpp:990–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988 }
989
990 void
991 testIssue1828()
992 {
993 beast::http::fields req;
994 req.insert("abc", "1");
995 req.insert("abc", "2");
996 req.insert("abc", "3");
997 BEAST_EXPECT(req.count("abc") == 3);
998 auto iter = req.find("abc");
999 BEAST_EXPECT(iter->value() == "1");
1000 req.insert("abc", "4");
1001 req.erase(iter);
1002 BEAST_EXPECT(req.count("abc") == 3);
1003 }
1004
1005 template<class Arg1, class InArg>
1006 struct set_test

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected