[tor-bugs] #15236 [Tor]: Identify functions most in need of testing, and hardest to test

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Mar 15 20:59:19 UTC 2015


#15236: Identify functions most in need of testing, and hardest to test
------------------------+--------------------------------
     Reporter:  nickm   |      Owner:
         Type:  task    |     Status:  new
     Priority:  normal  |  Milestone:  Tor: 0.2.7.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:  SponsorS
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------

Comment (by nickm):

 And here's a pure-volatility measure.   Use Git and Perl to find out which
 functions have been changed the most:
 {{{
 git log -p |perl -ne 'if (/\@\@[^\@]*\@\@ .* ([A-Za-z0-9_]+)\(/) { print
 "$1\n";}' | sort |uniq -c >change_counts
 }}}

 The top 25 offenders are:
 {{{
   60 router_rebuild_descriptor
   61 onion_extend_cpath
   62 directory_handle_command
   63 dns_resolve
   65 assert_connection_ok
   66 connection_handle_write
   68 connection_handle_listener_read
   71 dns_found_answer
   73 circuit_extend
   73 main
   79 connection_edge_process_inbuf
   83 connection_ap_handshake_attach_circuit
   86 config_assign
   88 init_keys
   94 circuit_send_next_onion_skin
   94 connection_dir_process_inbuf
   94 prepare_for_poll
   95 connection_exit_begin_conn
  124 connection_ap_handshake_process_socks
  124 router_dump_router_to_string
  142 fetch_from_buf_socks
  144 getconfig
  149 run_scheduled_events
  158 connection_edge_process_relay_cell
  178 do_main_loop
 }}}

 Complete list at
 https://people.torproject.org/~nickm/volatile/sorted_change_counts.bz2

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15236#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list