/***************************************************************************1* _ _ ____ _2* Project ___| | | | _ \| |3* / __| | | | |_) | |4* | (__| |_| | _ <| |___5* \___|\___/|_| \_\_____|6*7* Copyright (C) Daniel Stenberg, <[email protected]>, et al.8*9* This software is licensed as described in the file COPYING, which10* you should have received as part of this distribution. The terms11* are also available at https://curl.se/docs/copyright.html.12*13* You may opt to use, copy, modify, merge, publish, distribute and/or sell14* copies of the Software, and permit persons to whom the Software is15* furnished to do so, under the terms of the COPYING file.16*17* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY18* KIND, either express or implied.19*20* SPDX-License-Identifier: curl21*22***************************************************************************/23#include "test.h"2425#include "memdebug.h"2627CURLcode test(char *URL)28{29CURLcode res = CURLE_OK;30CURLcode easyret;31CURLMcode multiret;32CURLSHcode shareret;33CURLUcode urlret;34(void)URL;3536/* NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange) */37curl_easy_strerror((CURLcode)INT_MAX);38curl_multi_strerror((CURLMcode)INT_MAX);39curl_share_strerror((CURLSHcode)INT_MAX);40curl_url_strerror((CURLUcode)INT_MAX);41curl_easy_strerror((CURLcode)-INT_MAX);42curl_multi_strerror((CURLMcode)-INT_MAX);43curl_share_strerror((CURLSHcode)-INT_MAX);44curl_url_strerror((CURLUcode)-INT_MAX);45/* NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange) */46for(easyret = CURLE_OK; easyret <= CURL_LAST; easyret++) {47curl_mprintf("e%d: %s\n", (int)easyret, curl_easy_strerror(easyret));48}49for(multiret = CURLM_CALL_MULTI_PERFORM; multiret <= CURLM_LAST;50multiret++) {51curl_mprintf("m%d: %s\n", (int)multiret, curl_multi_strerror(multiret));52}53for(shareret = CURLSHE_OK; shareret <= CURLSHE_LAST; shareret++) {54curl_mprintf("s%d: %s\n", (int)shareret, curl_share_strerror(shareret));55}56for(urlret = CURLUE_OK; urlret <= CURLUE_LAST; urlret++) {57curl_mprintf("u%d: %s\n", (int)urlret, curl_url_strerror(urlret));58}5960return res;61}626364