]> git.ipfire.org Git - thirdparty/git.git/commit
trailer unit tests: inspect iterator contents
authorLinus Arver <linus@ucla.edu>
Thu, 2 May 2024 04:54:27 +0000 (04:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 May 2024 16:57:08 +0000 (09:57 -0700)
commitdc88e5279a0bc68dc7b0337b0da34d50984bb38b
treec73f4318cc42c91432e5b11ab7e600605ca417c1
parent5f800603a9fa0cbcca83b3eb56dff893582d0ca7
trailer unit tests: inspect iterator contents

Previously we only checked whether we would iterate a certain (expected)
number of times.

Also check the parsed "raw", "key" and "val" fields during each
iteration.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Linus Arver <linus@ucla.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/t-trailer.c