• Show log

    Commit

  • Hash : 8c74d22e
    Author : Russell Belfer
    Date : 2011-11-27T21:47:58

    Extend git_buf with new utility functions and unit tests. Add new functions to git_buf for: * initializing a buffer from a string * joining one or more strings onto a buffer with separators * swapping two buffers in place * extracting data from a git_buf (leaving it empty) Also, make git_buf_free leave a git_buf back in its initted state, and slightly tweak buffer allocation sizes and thresholds. Finally, port unit tests to clay and extend with lots of new tests for the various git_buf functions.

  • README.md

  • Writing Clay tests for libgit2

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

    https://github.com/tanoku/clay

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

    • Mix the tests:

        ./clay -vtap .
    • Make sure you actually build the tests by setting:

        BUILD_CLAY=ON
    • Test:

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

    • Send your pull request. That’s it.