Skip to content
Snippets Groups Projects
  1. Jun 24, 2014
  2. May 13, 2014
  3. Apr 26, 2014
  4. Apr 15, 2014
    • dana koch's avatar
      Uplift status.c unit test coverage with new test cases and macros. · 3ce39847
      dana koch authored and Nick Mathewson's avatar Nick Mathewson committed
      A new set of unit test cases are provided, as well as introducing
      an alternative paradigm and macros to support it. Primarily, each test
      case is given its own namespace, in order to isolate tests from each
      other. We do this by in the usual fashion, by appending module and
      submodule names to our symbols. New macros assist by reducing friction
      for this and other tasks, like overriding a function in the global
      namespace with one in the current namespace, or declaring integer
      variables to assist tracking how many times a mock has been called.
      
      A set of tests for a small-scale module has been included in this
      commit, in order to highlight how the paradigm can be used. This
      suite gives 100% coverage to status.c in test execution.
      3ce39847
  5. Apr 08, 2014
  6. Apr 02, 2014
  7. Mar 20, 2014
  8. Mar 13, 2014
  9. Feb 28, 2014
  10. Feb 12, 2014
  11. Feb 11, 2014
  12. Feb 06, 2014
  13. Jan 30, 2014
  14. Jan 17, 2014
  15. Nov 22, 2013
  16. Nov 18, 2013
  17. Sep 08, 2013
  18. Sep 05, 2013
  19. Aug 15, 2013
  20. Jul 19, 2013
  21. Jul 18, 2013
  22. Jul 10, 2013
    • Nick Mathewson's avatar
      Add some basic unit tests for the circuit map data structure. · ec6c155f
      Nick Mathewson authored
      These show off the new mocking code by mocking the circuitmux code
      so that we can test the circuit map code in isolation.
      ec6c155f
    • Nick Mathewson's avatar
      Completely refactor how FILENAME_PRIVATE works · a3e0a87d
      Nick Mathewson authored
      We previously used FILENAME_PRIVATE identifiers mostly for
      identifiers exposed only to the unit tests... but also for
      identifiers exposed to the benchmarker, and sometimes for
      identifiers exposed to a similar module, and occasionally for no
      really good reason at all.
      
      Now, we use FILENAME_PRIVATE identifiers for identifiers shared by
      Tor and the unit tests.  They should be defined static when we
      aren't building the unit test, and globally visible otherwise. (The
      STATIC macro will keep us honest here.)
      
      For identifiers used only by the unit tests and never by Tor at all,
      on the other hand, we wrap them in #ifdef TOR_UNIT_TESTS.
      
      This is not the motivating use case for the split test/non-test
      build system; it's just a test example to see how it works, and to
      take a chance to clean up the code a little.
      a3e0a87d
  23. Jun 12, 2013
Loading