minor test-hashmap fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | test-hashmap: use ALLOC_ARRAY rather than bare malloct/ | +2 | 1 reply | |
| 2/6 | test-hashmap: check allocation computation for overflowt/ | +1 | 0 replies | |
| 3/6 | test-hashmap: use xsnprintf rather than snprintft/ | +1 | 0 replies | |
| 4/6 | test-hashmap: use strbuf_getline rather than fgetst/ | +5 | 0 replies | |
| 5/6 | test-hashmap: simplify alloc_test_entryt/ | +17 | 1 reply | |
| 6/6 | test-hashmap: use "unsigned int" for hash storaget/ | +3 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Stefan Beller |
|---|---|
| Series | R-b |
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] minor test-hashmap fixes
This series started with me fixing the sizeof() mismatch discussed in
https://public-inbox.org/git/[email protected]/
but I found a number of minor irritations. Most of them are cosmetic in practice, but I think it's important for test-helper code like this to model best practices, since people are likely to use it as a reference.
[1/6]: test-hashmap: use ALLOC_ARRAY rather than bare malloc [2/6]: test-hashmap: check allocation computation for overflow [3/6]: test-hashmap: use xsnprintf rather than snprintf [4/6]: test-hashmap: use strbuf_getline rather than fgets [5/6]: test-hashmap: simplify alloc_test_entry [6/6]: test-hashmap: use "unsigned int" for hash storage
t/helper/test-hashmap.c | 53 +++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 26 deletions(-)
-Peff