]>
git.ipfire.org Git - thirdparty/git.git/blob - t/t0016-oidmap.sh
3 test_description
='test oidmap'
6 # This purposefully is very similar to t0011-hashmap.sh
9 echo "$1" | test-tool oidmap
$3 >actual
&&
11 test_cmp expect actual
15 test_expect_success
'setup' '
24 test_expect_success
'put' '
26 test_oidmap "put one 1
31 Unknown oid: invalidOid
36 test_expect_success
'replace' '
38 test_oidmap "put one 1
46 Unknown oid: invalidOid
52 test_expect_success
'get' '
54 test_oidmap "put one 1
65 Unknown oid: invalidOid
70 test_expect_success
'remove' '
72 test_oidmap "put one 1
83 Unknown oid: invalidOid
88 test_expect_success
'iterate' '
90 test_oidmap "put one 1
96 $(git rev-parse two) 2
97 $(git rev-parse one) 1
98 $(git rev-parse three) 3"