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

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 11 18:54:07 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:
 Keywords:  SponsorS  |  Actual Points:
Parent ID:            |         Points:
----------------------+------------------------------------
 In addition to our opportunistic write-tests-as-you-go approach, we should
 also direct our testing efforts on the functions that most *need* to be
 tested.  This includes (possibly)

   * Big functions
   * Volatile functions (ones that have changed many times)
   * Functions that have had lots of bugs in them in the past
   * Functions nobody understands
   * Functions with high complexity
   * Functions with high complexity-to-line ratio
   * Functions with high code-to-comments ratio

 We should also look at what's ''hardest'' to test, including possibly

   * Anything that hits the OS directly
   * Anything that's windows only.
   * Anything that calls many other functions
   * Anything that calls many other modules
   * Anything that indirectly calls most of the rest of Tor.

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


More information about the tor-bugs mailing list