]> git.ipfire.org Git - thirdparty/git.git/commit
trailer: add unit tests for trailer iterator
authorLinus Arver <linus@ucla.edu>
Thu, 2 May 2024 04:54:19 +0000 (04:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 May 2024 16:57:03 +0000 (09:57 -0700)
commit56b04883f04944240368f28a056d5aae59f3f52f
tree3a4261a1dfa093be36891f0c0cb5c48f1e1a7545
parent704b59099e4d3f47d547b452d10979b328533cca
trailer: add unit tests for trailer iterator

Test the number of trailers found by the iterator (to be more precise,
the parsing mechanism which the iterator just walks over) when given
some arbitrary log message.

We test the iterator because it is a public interface function exposed
by the trailer API (we generally don't want to test internal
implementation details which are, unlike the API, subject to drastic
changes).

Signed-off-by: Linus Arver <linus@ucla.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/unit-tests/t-trailer.c [new file with mode: 0644]