git/t/unit-tests
Chandra Pratap e4e384f68d t: harmonize t-reftable-stack.c with coding guidelines
Harmonize the newly ported test unit-tests/t-reftable-stack.c
with the following guidelines:
- Single line 'for' statements must omit curly braces.
- Structs must be 0-initialized with '= { 0 }' instead of '= { NULL }'.
- Array sizes and indices should preferably be of type 'size_t' and
  not 'int'.
- Function pointers should be passed as 'func' and not '&func'.

While at it, remove initialization for those variables that are
re-used multiple times, like loop variables.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-09-08 13:24:03 -07:00
..
.gitignore
lib-oid.c t/: migrate helper/test-oidtree.c to unit-tests/t-oidtree.c 2024-06-12 13:33:20 -07:00
lib-oid.h hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
t-ctype.c Merge branch 'jk/mark-unused-parameters' 2024-08-26 11:32:23 -07:00
t-example-decorate.c t-example-decorate: remove test messages 2024-07-30 13:31:46 -07:00
t-hash.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-hashmap.c t-hashmap: stop calling setup() for t_intern() test 2024-08-20 08:33:18 -07:00
t-mem-pool.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-oidmap.c t: migrate helper/test-oidmap.c to unit-tests/t-oidmap.c 2024-07-03 09:12:14 -07:00
t-oidtree.c t/: migrate helper/test-oidtree.c to unit-tests/t-oidtree.c 2024-06-12 13:33:20 -07:00
t-prio-queue.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-reftable-basics.c Merge branch 'jk/mark-unused-parameters' 2024-08-26 11:32:23 -07:00
t-reftable-block.c Merge branch 'ps/reftable-concurrent-compaction' 2024-09-03 09:15:03 -07:00
t-reftable-merged.c Merge branch 'ps/reftable-concurrent-compaction' 2024-09-03 09:15:03 -07:00
t-reftable-pq.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-reftable-readwrite.c Merge branch 'ps/reftable-concurrent-compaction' 2024-09-03 09:15:03 -07:00
t-reftable-record.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-reftable-stack.c t: harmonize t-reftable-stack.c with coding guidelines 2024-09-08 13:24:03 -07:00
t-reftable-tree.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-strbuf.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-strcmp-offset.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-strvec.c Merge branch 'jk/mark-unused-parameters' 2024-08-26 11:32:23 -07:00
t-trailer.c unit-tests: ignore unused argc/argv 2024-08-17 09:46:12 -07:00
t-urlmatch-normalization.c t: migrate t0110-urlmatch-normalization to the new framework 2024-08-20 10:08:28 -07:00
test-lib.c unit-tests: add if_test 2024-07-30 13:32:43 -07:00
test-lib.h Merge branch 'rs/unit-tests-test-run' 2024-08-19 11:07:36 -07:00