| 90 | }; |
| 91 | |
| 92 | static size_t curl_write_to_string(char* ptr, size_t size, size_t nmemb, void* userdata) { |
| 93 | if (!userdata) return 0; |
| 94 | std::string* out = static_cast<std::string*>(userdata); |
| 95 | out->append(ptr, size * nmemb); |
| 96 | return size * nmemb; |
| 97 | } |
| 98 | |
| 99 | static bool curl_supports_protocol(const char* name) { |
| 100 | #if !CACTUS_TEST_HAS_CURL |
nothing calls this directly
no outgoing calls
no test coverage detected