MCPcopy Create free account
hub / github.com/apache/mesos / foreach

Function foreach

3rdparty/libprocess/src/tests/http_tests.cpp:1798–1807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1796 };
1797
1798 foreach (const string& accept, headers) {
1799 http::Request request;
1800 request.headers["Accept"] = accept;
1801
1802 EXPECT_FALSE(request.acceptsMediaType("text/*"))
1803 << "Not expecting " << accept << " to match 'text/*'";
1804
1805 EXPECT_FALSE(request.acceptsMediaType("text/html"))
1806 << "Not expecting " << accept << " to match 'text/html'";
1807 }
1808
1809 // Create requests that accept 'text/html' media type.
1810 headers = {

Callers

nothing calls this directly

Calls 1

acceptsMediaTypeMethod · 0.80

Tested by

no test coverage detected