Back to Curl Homepage

Curl Cyclomatic Complexity Report

Report generated at: Mon Oct 13 11:12:53 CEST 2008

Resume

Total number of functions 755
Number of low risk functions 623
Number of moderate risk functions 70
Number of high risk functions 49
Number of untestable functions 13

Details for all functions

Used ranges:

  Cyclomatic Complexity Risk Evaluation
  0 - 10 Simple module, without much risk
  11 - 20 More complex module, moderate risk
  21 - 50 Complex module, high risk
  greater than 50 Untestable module, very high risk

Function Name Cyclomatic
Complexity
Number of
Statements
Number of
Lines
Source File
ssh_statemach_act 254 880 1582 lib/ssh.c
Curl_http 204 395 886 lib/http.c
readwrite_headers 129 269 709 lib/transfer.c
Curl_cookie_add 118 247 502 lib/cookie.c
FormAdd 105 210 421 lib/formdata.c
dprintf_formatf 92 233 395 lib/mprintf.c
multi_runsingle 94 251 606 lib/multi.c
Curl_proxyCONNECT 74 212 443 lib/http.c
readwrite_data 73 127 319 lib/transfer.c
ftp_state_use_port 60 195 387 lib/ftp.c
Curl_setopt 206 448 1350 lib/url.c
Curl_nss_connect 55 173 290 lib/nss.c
Curl_getFormData 52 141 293 lib/formdata.c
parsedate 48 94 176 lib/parsedate.c
Curl_ldap 47 175 286 lib/ldap.c
Curl_gtls_connect 47 170 368 lib/gtls.c
Curl_SOCKS5 47 160 331 lib/socks.c
ftp_statemach_act 78 169 368 lib/ftp.c
ConnectionExists 44 67 173 lib/url.c
http_output_auth 42 80 174 lib/http.c
create_conn 42 138 336 lib/url.c
Curl_socket_ready 42 115 162 lib/select.c
ftp_state_pasv_resp 45 110 264 lib/ftp.c
Curl_httpchunk_read 53 143 314 lib/http_chunks.c
ftp_done 49 76 191 lib/ftp.c
Curl_input_digest 40 88 155 lib/http_digest.c
ossl_connect_step1 41 91 233 lib/ssluse.c
telnet_do 41 153 285 lib/telnet.c
Curl_poll 38 101 133 lib/select.c
dict_do 36 84 158 lib/dict.c
Curl_output_ntlm 37 229 594 lib/http_ntlm.c
ftp_parse_url_path 36 94 177 lib/ftp.c
Curl_readwrite 34 62 162 lib/transfer.c
print_flags 33 64 67 lib/http_ntlm.c
  cert_stuff 9 17 28 lib/nss.c
ftp_readresp 34 108 219 lib/ftp.c
dprintf_Pass1 71 162 302 lib/mprintf.c
Curl_http_auth_act 29 35 66 lib/http.c
Curl_parsenetrc 30 79 153 lib/netrc.c
Curl_pgrsUpdate 28 83 208 lib/progress.c
inet_ntop6 28 53 103 lib/inet_ntop.c
Curl_output_digest 28 110 255 lib/http_digest.c
file_do 27 79 152 lib/file.c
readwrite_upload 27 69 165 lib/transfer.c
Curl_perform 27 66 144 lib/transfer.c
verifyhost 27 72 161 lib/ssluse.c
Curl_close 26 77 142