Files
libgit2/tests-clar
Carlos Martín Nieto bb45c57f94 refs: explicitly catch leading slashes
It's somewhat common to try to write "/refs/tags/something". There is
no easy way to catch it during the main body of the function, as there
is no way to distinguish whether it's a leading slash or a double
slash somewhere in the middle.

Catch this at the beginning so we don't trigger the assert in
is_all_caps_and_underscore().
2013-03-07 16:38:44 +01:00
..
2012-10-25 17:42:35 +02:00
2013-01-21 13:39:53 -08:00
2013-02-20 17:03:18 +01:00
2013-01-29 12:16:59 -08:00
2013-02-20 15:09:41 -08:00
2013-03-04 00:21:56 +01:00
2013-03-04 18:10:57 -06:00
2013-01-04 17:47:52 +01:00
2013-03-05 22:45:26 -06:00
2013-01-03 19:17:07 +01:00
2013-03-03 15:19:21 +01:00
2013-02-20 17:03:18 +01:00
2013-03-04 00:21:56 +01:00
2013-02-15 16:02:45 -08:00
2013-01-21 13:39:53 -08:00
2013-01-21 13:39:53 -08:00
2013-02-20 18:49:00 +01:00
2013-01-04 20:02:01 +01:00
2012-10-19 14:05:55 -07:00

Writing Clar tests for libgit2

For information on the Clar testing framework and a detailed introduction please visit:

https://github.com/vmg/clar

  • Write your modules and tests. Use good, meaningful names.

  • Make sure you actually build the tests by setting:

      cmake -DBUILD_CLAR=ON build/
    
  • Test:

      ./build/libgit2_clar
    
  • Make sure everything is fine.

  • Send your pull request. That's it.