diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-11-02 06:14:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-03 00:12:06 +0900 |
commit | 4c7bb45269ccd1fdb15347a675ff16e8a8534f68 (patch) | |
tree | ecdca23b0ab6899d88ab6c11e391becfc8092491 /Documentation/technical/api-sigchain.txt | |
parent | commit-reach: implement get_reachable_subset (diff) | |
download | tgif-4c7bb45269ccd1fdb15347a675ff16e8a8534f68.tar.xz |
test-reach: test get_reachable_subset
The get_reachable_subset() method returns the list of commits in
the 'to' array that are reachable from at least one commit in the
'from' array. Add tests that check this method works in a few
cases:
1. All commits in the 'to' list are reachable. This exercises the
early-termination condition.
2. Some commits in the 'to' list are reachable. This exercises the
loop-termination condition.
3. No commits in the 'to' list are reachable. This exercises the
NULL return condition.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-sigchain.txt')
0 files changed, 0 insertions, 0 deletions