]> git.ipfire.org Git - thirdparty/git.git/commit
t/test-lib-functions.sh: implement `test_trace2_data` helper
authorTaylor Blau <me@ttaylorr.com>
Thu, 14 Dec 2023 22:24:39 +0000 (17:24 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Dec 2023 22:38:09 +0000 (14:38 -0800)
commit3bea0c0611f1539b552c8255cffbe27932d0582f
tree3a96556714028ab8ecde1814748ff067dbadd2bb
parent54393e4e68f2b4cf1ebaab8a934e83c9384595af
t/test-lib-functions.sh: implement `test_trace2_data` helper

Introduce a helper function which looks for a specific (category, key,
value) tuple in the output of a trace2 event stream.

We will use this function in a future patch to ensure that the expected
number of objects are reused from an expected number of packs.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh