MCPcopy Create free account
hub / github.com/comaps/comaps / GetTmpFileName

Function GetTmpFileName

libs/platform/http_client_curl.cpp:107–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107std::string GetTmpFileName()
108{
109 boost::uuids::random_generator gen;
110 boost::uuids::uuid u = gen();
111
112 std::stringstream ss;
113 ss << u;
114
115 ASSERT(!ss.str().empty(), ());
116
117 return GetPlatform().TmpPathForFile(ss.str());
118}
119
120using HeadersVector = std::vector<std::pair<std::string, std::string>>;
121

Callers 1

RunHttpRequestMethod · 0.85

Calls 3

ASSERTFunction · 0.85
emptyMethod · 0.45
TmpPathForFileMethod · 0.45

Tested by

no test coverage detected