• Show log

    Commit

  • Hash : 5d108c9a
    Author : Patrick Steinhardt
    Date : 2018-10-03T15:39:40

    tests: verify parsing logic for smart packets
    
    The commits following this commit are about to introduce quite a lot of
    refactoring and tightening of the smart packet parser. Unfortunately, we
    do not yet have any tests despite our online tests that verify that our
    parser does not regress upon changes. This is doubly unfortunate as our
    online tests aren't executed by default.
    
    Add new tests that exercise the smart parsing logic directly by
    executing `git_pkt_parse_line`.
    
    (cherry picked from commit 365d2720c1a5fc89f03fd85265c8b45195c7e4a8)
    

  • README.md

  • 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.