summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorGarima Singh <garima.singh@microsoft.com>2020-04-06 16:59:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-06 18:08:37 (GMT)
commita759bfa9eeb2a080d7c5c0a3c4096db5438c06bf (patch)
treefef4d313837c9eafab49b1c701d527689d48f261 /t/helper
parent42e50e78c6fd8978c2218bbd7b3483ae51d5e3f9 (diff)
downloadgit-a759bfa9eeb2a080d7c5c0a3c4096db5438c06bf.zip
git-a759bfa9eeb2a080d7c5c0a3c4096db5438c06bf.tar.gz
git-a759bfa9eeb2a080d7c5c0a3c4096db5438c06bf.tar.bz2
t4216: add end to end tests for git log with Bloom filters
These tests exercises writing commit graph with Bloom filters and exercises 'git log -- path' with all the applicable options. They check that the output is the same with and without Bloom filters, confirm Bloom filters were used by checking if trace2 statistics were logged correctly. Also confirms cases where Bloom filters are not used: 1. Multiple path specs, 2. --walk-reflogs (see patch titled 'revision.c: use Bloom filters...' for details, 3. If the latest commit graph does not have Bloom filters Signed-off-by: Garima Singh <garima.singh@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-read-graph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/helper/test-read-graph.c b/t/helper/test-read-graph.c
index f8a4617..4223ff3 100644
--- a/t/helper/test-read-graph.c
+++ b/t/helper/test-read-graph.c
@@ -45,6 +45,10 @@ int cmd__read_graph(int argc, const char **argv)
printf(" commit_metadata");
if (graph->chunk_extra_edges)
printf(" extra_edges");
+ if (graph->chunk_bloom_indexes)
+ printf(" bloom_indexes");
+ if (graph->chunk_bloom_data)
+ printf(" bloom_data");
printf("\n");
UNLEAK(graph);