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

Function foreach

src/tests/http_tests.cpp:1697–1706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695 };
1696
1697 foreach (const string& accept, headers) {
1698 http::Request request;
1699 request.headers["Accept"] = accept;
1700
1701 EXPECT_FALSE(request.acceptsMediaType("text/*"))
1702 << "Not expecting " << accept << " to match 'text/*'";
1703
1704 EXPECT_FALSE(request.acceptsMediaType("text/html"))
1705 << "Not expecting " << accept << " to match 'text/html'";
1706 }
1707
1708 // Create requests that accept 'text/html' media type.
1709 headers = {

Callers

nothing calls this directly

Calls 1

acceptsMediaTypeMethod · 0.80

Tested by

no test coverage detected