MCPcopy Create free account
hub / github.com/3rdparty/libprocess / validatePost

Function validatePost

src/tests/http_tests.cpp:910–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908
909
910http::Response validatePost(const http::Request& request)
911{
912 EXPECT_EQ("POST", request.method);
913 EXPECT_THAT(request.url.path, EndsWith("post"));
914 EXPECT_EQ("This is the payload.", request.body);
915 EXPECT_NONE(request.url.fragment);
916 EXPECT_TRUE(request.url.query.empty());
917
918 return http::OK();
919}
920
921
922TEST_P(HTTPTest, Post)

Callers

nothing calls this directly

Calls 2

OKClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected