aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests
AgeCommit message (Expand)AuthorFilesLines
2025-08-01Merge branch 'sk/reftable-clarify-tests'Junio C Hamano11-1288/+1097
2025-07-28Merge branch 'rs/pop-recent-commit-with-prio-queue'Junio C Hamano1-0/+23
2025-07-24t/unit-tests: finalize migration of reftable-related testsSeyi Kuforiji12-154/+35
2025-07-24t/unit-tests: convert reftable stack test to use clarSeyi Kuforiji1-450/+330
2025-07-24t/unit-tests: convert reftable record test to use clarSeyi Kuforiji1-120/+130
2025-07-24t/unit-tests: convert reftable readwrite test to use clarSeyi Kuforiji1-228/+177
2025-07-24t/unit-tests: convert reftable table test to use clarSeyi Kuforiji1-40/+35
2025-07-24t/unit-tests: convert reftable pq test to use clarSeyi Kuforiji1-32/+27
2025-07-24t/unit-tests: convert reftable merged test to use clarSeyi Kuforiji1-92/+70
2025-07-24t/unit-tests: convert reftable block test to use clarSeyi Kuforiji1-86/+78
2025-07-24t/unit-tests: convert reftable basics test to use clar test frameworkSeyi Kuforiji2-219/+227
2025-07-24t/unit-tests: implement clar specific reftable test helper functionsSeyi Kuforiji2-0/+121
2025-07-22prio-queue: add prio_queue_replace()René Scharfe1-0/+23
2025-07-07u-string-list: move "remove duplicates" test to "u-string-list.c"shejialuo1-0/+62
2025-07-07u-string-list: move "filter string" test to "u-string-list.c"shejialuo1-0/+73
2025-07-07u-string-list: move "test_split_in_place" to "u-string-list.c"shejialuo1-0/+37
2025-07-07u-string-list: move "test_split" into "u-string-list.c"shejialuo1-0/+55
2025-05-19Merge branch 'ps/reftable-read-block-perffix'Junio C Hamano1-5/+10
2025-05-12oidmap: rename oidmap_free() to oidmap_clear()Jeff King1-1/+1
2025-05-12reftable: fix perf regression when reading blocks of unwanted typePatrick Steinhardt1-5/+10
2025-04-29Merge branch 'ps/reftable-api-revamp'Junio C Hamano8-318/+506
2025-04-16Merge branch 'sk/clar-trailer-urlmatch-norm-test'Junio C Hamano3-359/+338
2025-04-15Merge branch 'js/comma-semicolon-confusion'Junio C Hamano1-2/+8
2025-04-08Merge branch 'ps/reftable-sans-compat-util'Junio C Hamano3-25/+67
2025-04-07reftable/constants: make block types part of the public interfacePatrick Steinhardt5-48/+48
2025-04-07reftable/table: introduce iterator for table blocksPatrick Steinhardt1-0/+110
2025-04-07reftable/block: expose a generic iterator over reftable recordsPatrick Steinhardt1-0/+78
2025-04-07reftable/block: make block iterators reseekablePatrick Steinhardt1-15/+11
2025-04-07reftable/block: rename `block_reader` to `reftable_block`Patrick Steinhardt1-51/+51
2025-04-07reftable/block: rename `block` to `block_data`Patrick Steinhardt1-5/+5
2025-04-07reftable/table: move reading block into block readerPatrick Steinhardt1-36/+40
2025-04-07reftable/blocksource: consolidate code into a single filePatrick Steinhardt2-6/+6
2025-04-07reftable/reader: rename data structure to "table"Patrick Steinhardt4-131/+131
2025-04-01Merge branch 'ps/reftable-sans-compat-util' into ps/reftable-api-revampJunio C Hamano3-25/+67
2025-03-28clar: avoid using the comma operator unnecessarilyJohannes Schindelin1-2/+8
2025-03-04t/unit-tests: convert urlmatch-normalization test to clarSeyi Kuforiji1-42/+18
2025-03-04t/unit-tests: convert trailer test to use clarSeyi Kuforiji2-317/+320
2025-02-25t/unit-tests: convert oidtree test to use clar test frameworkSeyi Kuforiji2-122/+107
2025-02-25t/unit-tests: convert oidmap test to use clar test frameworkSeyi Kuforiji2-181/+136
2025-02-25t/unit-tests: convert oid-array test to use clar test frameworkSeyi Kuforiji2-126/+129
2025-02-25t/unit-tests: implement clar specific oid helper functionsSeyi Kuforiji3-24/+19
2025-02-18reftable/basics: provide wrappers for big endian conversionPatrick Steinhardt1-5/+23
2025-02-18reftable/record: don't `BUG()` in `reftable_record_cmp()`Patrick Steinhardt2-16/+40
2025-02-18reftable/record: stop using `BUG()` in `reftable_record_init()`Patrick Steinhardt2-4/+4
2025-02-14Merge branch 'kn/reflog-migration-fix-followup'Junio C Hamano1-3/+51
2025-02-10Merge branch 'sk/unit-tests-0130'Junio C Hamano7-345/+340
2025-01-31t/unit-tests: convert strcmp-offset test to use clar test frameworkSeyi Kuforiji2-35/+45
2025-01-31t/unit-tests: convert strbuf test to use clar test frameworkSeyi Kuforiji2-122/+119
2025-01-31t/unit-tests: adapt example decorate test to use clar test frameworkSeyi Kuforiji2-74/+64
2025-01-31t/unit-tests: convert hashmap test to use clar test frameworkSeyi Kuforiji1-114/+112
2025-01-31global: adapt callers to use generic hash context helpersPatrick Steinhardt1-2/+2
2025-01-31hash: stop typedeffing the hash contextPatrick Steinhardt1-1/+1
2025-01-28Merge branch 'ps/reftable-sign-compare'Junio C Hamano3-3/+20
2025-01-28Merge branch 'sk/unit-tests'Junio C Hamano6-141/+131
2025-01-22reftable: prevent 'update_index' changes after adding recordsKarthik Nayak1-3/+51
2025-01-21reftable/block: adapt header and footer size to return a `size_t`Patrick Steinhardt1-1/+1
2025-01-21reftable/basics: adjust `hash_size()` to return `uint32_t`Patrick Steinhardt1-1/+1
2025-01-21reftable/basics: adjust `common_prefix_size()` to return `size_t`Patrick Steinhardt1-1/+1
2025-01-21reftable/record: handle overflows when decoding varintsPatrick Steinhardt1-0/+17
2025-01-21Merge branch 'sk/unit-test-hash'Junio C Hamano1-23/+48
2025-01-21Merge branch 'ps/reftable-get-random-fix'Junio C Hamano1-3/+3
2025-01-17t/unit-tests: convert reftable tree test to use clar test frameworkSeyi Kuforiji1-19/+11
2025-01-17t/unit-tests: adapt priority queue test to use clar test frameworkSeyi Kuforiji2-91/+94
2025-01-17t/unit-tests: convert mem-pool test to use clar test frameworkSeyi Kuforiji2-31/+25
2025-01-17t/unit-tests: handle dashes in test suite filenamesSeyi Kuforiji1-0/+1
2025-01-09t/unit-tests: convert hash to use clar test frameworkSeyi Kuforiji1-23/+48
2025-01-08t-reftable-basics: allow for `malloc` to be `#define`dJohannes Schindelin1-4/+4
2025-01-07wrapper: allow generating insecure random bytesPatrick Steinhardt1-3/+3
2024-12-28t-reftable-merged: handle realloc errorsRené Scharfe1-2/+2
2024-12-28reftable: fix allocation count on realloc errorRené Scharfe1-0/+26
2024-12-28reftable: avoid leaks on realloc errorRené Scharfe1-0/+30
2024-12-23Merge branch 'ps/ci-meson'Junio C Hamano4-2/+22
2024-12-23Merge branch 'ps/build-sign-compare'Junio C Hamano7-3/+13
2024-12-23Merge branch 'kn/reftable-writer-log-write-verify'Junio C Hamano2-4/+51
2024-12-15Merge branch 'rj/strvec-splice-fix'Junio C Hamano1-0/+10
2024-12-13t: introduce compatibility options to clar-based testsPatrick Steinhardt1-1/+18
2024-12-13t/unit-tests: rename clar-based unit tests to have a common prefixPatrick Steinhardt3-1/+4
2024-12-10Merge branch 'ps/reftable-iterator-reuse'Junio C Hamano1-0/+73
2024-12-10Merge branch 'ps/reftable-detach'Junio C Hamano9-105/+113
2024-12-10strvec: `strvec_splice()` to a statically initialized vectorRubén Justo1-0/+10
2024-12-07reftable/writer: ensure valid range for log's update_indexKarthik Nayak2-4/+51
2024-12-06global: trivial conversions to fix `-Wsign-compare` warningsPatrick Steinhardt2-6/+3
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt7-0/+13
2024-12-04Merge branch 'ps/leakfixes-part-10'Junio C Hamano1-0/+65
2024-11-26reftable/merged: drain priority queue on reseekPatrick Steinhardt1-0/+73
2024-11-21strvec: introduce new `strvec_splice()` functionPatrick Steinhardt1-0/+65
2024-11-19Merge branch 'ps/reftable-detach' into ps/reftable-iterator-reuseJunio C Hamano9-105/+113
2024-11-19reftable/system: provide thin wrapper for lockfile subsystemPatrick Steinhardt5-0/+6
2024-11-19reftable/system: stop depending on "hash.h"Patrick Steinhardt9-105/+106
2024-11-19reftable/system: move "dir.h" to its only userPatrick Steinhardt1-0/+1
2024-11-18t/unit-tests: convert "clar-generate.awk" into a shell scriptPatrick Steinhardt2-50/+63
2024-11-08Merge branch 'ps/upgrade-clar'Junio C Hamano12-124/+205
2024-10-30Merge branch 'ps/reftable-strbuf'Taylor Blau9-210/+218
2024-10-25Merge branch 'ak/typofixes'Taylor Blau2-2/+2
2024-10-21Makefile: extract script to generate clar declarationsPatrick Steinhardt1-0/+16
2024-10-21t/unit-tests: update clar to 206accbPatrick Steinhardt11-124/+189
2024-10-17t/unit-tests: check for `reftable_buf` allocation errorsPatrick Steinhardt5-44/+44
2024-10-17reftable/blocksource: adapt interface namePatrick Steinhardt4-21/+21
2024-10-17reftable: convert from `strbuf` to `reftable_buf`Patrick Steinhardt9-179/+180
2024-10-17reftable: stop using `strbuf_addf()`Patrick Steinhardt3-31/+38
2024-10-10Merge branch 'ps/reftable-alloc-failures'Junio C Hamano7-51/+89
2024-10-10t/unit-tests: fix typosAndrew Kreimer2-2/+2
2024-10-02reftable: introduce `REFTABLE_FREE_AND_NULL()`Patrick Steinhardt1-1/+1
2024-10-02reftable: fix calls to free(3P)Patrick Steinhardt1-2/+2
2024-10-02reftable: handle trivial allocation failuresPatrick Steinhardt3-11/+24
2024-10-02reftable/tree: handle allocation failuresPatrick Steinhardt1-4/+6
2024-10-02reftable/block: handle allocation failuresPatrick Steinhardt1-8/+12
2024-10-02reftable/reader: handle allocation failures in `reader_init_iter()`Patrick Steinhardt1-12/+22
2024-10-02reftable/merged: handle allocation failures in `merged_table_init_iter()`Patrick Steinhardt2-5/+11
2024-10-02reftable/writer: handle allocation failures in `reftable_new_writer()`Patrick Steinhardt1-3/+5
2024-10-02reftable/basics: handle allocation failures in `parse_names()`Patrick Steinhardt1-5/+6
2024-09-30Merge branch 'ps/reftable-concurrent-writes'Junio C Hamano1-2/+65
2024-09-25Merge branch 'ps/reftable-exclude'Junio C Hamano6-179/+348
2024-09-24reftable/stack: allow locking of outdated stacksPatrick Steinhardt1-2/+65
2024-09-18Merge branch 'ps/clar-unit-test'Junio C Hamano25-221/+3357
2024-09-16Merge branch 'cp/unit-test-reftable-stack'Junio C Hamano1-0/+1324
2024-09-16Merge branch 'ps/reftable-exclude' into ps/reftable-alloc-failuresJunio C Hamano6-179/+348
2024-09-16Merge branch 'cp/unit-test-reftable-stack' into ps/reftable-alloc-failuresJunio C Hamano1-0/+1324
2024-09-16reftable/reader: make table iterator reseekablePatrick Steinhardt2-0/+172
2024-09-16t/unit-tests: introduce reftable libraryPatrick Steinhardt5-179/+176
2024-09-12Merge branch 'gt/unit-test-oid-array'Junio C Hamano3-1/+135
2024-09-09Merge branch 'cp/unit-test-reftable-stack' into ps/reftable-excludeJunio C Hamano1-0/+1324
2024-09-09t-reftable-stack: add test for stack iteratorsChandra Pratap1-0/+83
2024-09-09t-reftable-stack: add test for non-default compaction factorChandra Pratap1-4/+37
2024-09-09t-reftable-stack: use reftable_ref_record_equal() to compare ref recordsChandra Pratap1-2/+2
2024-09-08t-reftable-stack: use Git's tempfile API instead of mkstemp()Chandra Pratap1-1/+3
2024-09-08t: harmonize t-reftable-stack.c with coding guidelinesChandra Pratap1-57/+53
2024-09-08t: move reftable/stack_test.c to the unit testing frameworkChandra Pratap1-0/+1210
2024-09-06Merge branch 'jk/unused-parameters'Junio C Hamano1-1/+1
2024-09-04t/unit-tests: convert ctype tests to use clarPatrick Steinhardt2-10/+68
2024-09-04t/unit-tests: convert strvec tests to use clarPatrick Steinhardt2-211/+241
2024-09-04t/unit-tests: implement test driverPatrick Steinhardt1-2/+43
2024-09-04Makefile: wire up the clar unit testing frameworkPatrick Steinhardt4-0/+61
2024-09-04clar: stop including `shellapi.h` unnecessarilyJohannes Schindelin1-1/+1
2024-09-04clar(win32): avoid compile error due to unused `fs_copy()`Johannes Schindelin1-0/+2
2024-09-04clar: avoid compile error with mingw-w64Johannes Schindelin1-1/+1
2024-09-04t/clar: fix compatibility with NonStopPatrick Steinhardt1-0/+6
2024-09-04t: import the clar unit testing frameworkPatrick Steinhardt18-0/+2938
2024-09-03Merge branch 'ps/reftable-concurrent-compaction'Junio C Hamano3-51/+54
2024-09-01t: port helper/test-oid-array.c to unit-tests/t-oid-array.cGhanshyam Thakkar3-1/+135
2024-08-29Merge branch 'cp/unit-test-reftable-block'Junio C Hamano1-0/+370
2024-08-29Merge branch 'ps/reftable-drop-generic'Junio C Hamano1-13/+4
2024-08-28Merge branch 'gt/unit-test-urlmatch-normalization'Junio C Hamano1-0/+271
2024-08-28t-reftable-block: mark unused argv/argcJeff King1-1/+1
2024-08-28t-reftable-readwrite: mark unused parameter in callback functionJeff King1-1/+1
2024-08-26Merge branch 'jk/mark-unused-parameters'Junio C Hamano15-17/+17
2024-08-23Merge branch 'cp/unit-test-reftable-readwrite'Junio C Hamano1-0/+974
2024-08-23reftable/reader: introduce refcountingPatrick Steinhardt1-2/+2
2024-08-23reftable/reader: rename `reftable_new_reader()`Patrick Steinhardt1-3/+3
2024-08-22reftable/generic: drop interfacePatrick Steinhardt1-1/+0
2024-08-22reftable/merged: stop using generic tables in the merged tablePatrick Steinhardt1-12/+4
2024-08-22reftable/merged: rename `reftable_new_merged_table()`Patrick Steinhardt1-4/+4
2024-08-21t-reftable-block: add tests for index blocksChandra Pratap1-0/+88
2024-08-21t-reftable-block: add tests for obj blocksChandra Pratap1-0/+82
2024-08-21t-reftable-block: add tests for log blocksChandra Pratap1-2/+91
2024-08-21t-reftable-block: remove unnecessary variable 'j'Chandra Pratap1-4/+2
2024-08-21t-reftable-block: use xstrfmt() instead of xstrdup()Chandra Pratap1-4/+1
2024-08-21t-reftable-block: use block_iter_reset() instead of block_iter_close()Chandra Pratap1-6/+2
2024-08-21t-reftable-block: use reftable_record_key() instead of strbuf_addstr()Chandra Pratap1-2/+1
2024-08-21t-reftable-block: use reftable_record_equal() instead of check_str()Chandra Pratap1-9/+9
2024-08-21t-reftable-block: release used block readerChandra Pratap1-0/+1
2024-08-21t: harmonize t-reftable-block.c with coding guidelinesChandra Pratap1-26/+26
2024-08-21t: move reftable/block_test.c to the unit testing frameworkChandra Pratap1-0/+120
2024-08-20t: migrate t0110-urlmatch-normalization to the new frameworkGhanshyam Thakkar1-0/+271
2024-08-20t-hashmap: stop calling setup() for t_intern() testJeff King1-3/+2
2024-08-19Merge branch 'rs/unit-tests-test-run'Junio C Hamano5-356/+348
2024-08-17t-hashmap: mark unused parameters in callback functionJeff King1-1/+2
2024-08-17reftable: mark unused parameters in virtual functionsJeff King1-1/+1
2024-08-17unit-tests: ignore unused argc/argvJeff King13-13/+13
2024-08-15Merge branch 'gt/unit-test-hashmap'Junio C Hamano1-0/+361
2024-08-15Merge branch 'rs/t-example-simplify'Junio C Hamano1-16/+8
2024-08-14Merge branch 'cp/unit-test-reftable-tree'Junio C Hamano1-0/+84
2024-08-14Merge branch 'cp/unit-test-reftable-pq'Junio C Hamano1-0/+152
2024-08-13t-reftable-readwrite: add test for known errorChandra Pratap1-0/+5
2024-08-13t-reftable-readwrite: use 'for' in place of infinite 'while' loopsChandra Pratap1-9/+3
2024-08-13t-reftable-readwrite: use free_names() instead of a for loopChandra Pratap1-7/+3
2024-08-13t: move reftable/readwrite_test.c to the unit testing frameworkChandra Pratap1-0/+979
2024-08-08Merge branch 'ks/unit-test-comment-typofix'Junio C Hamano1-2/+3
2024-08-06t: port helper/test-hashmap.c to unit-tests/t-hashmap.cGhanshyam Thakkar1-0/+361
2024-08-04t-reftable-tree: improve the test for infix_walk()Chandra Pratap1-7/+15
2024-08-04t-reftable-tree: add test for non-existent keyChandra Pratap1-0/+1
2024-08-04t-reftable-tree: split test_tree() into two sub-test functionsChandra Pratap1-4/+19
2024-08-04t: move reftable/tree_test.c to the unit testing frameworkChandra Pratap1-0/+60
2024-08-01t-reftable-pq: add tests for merged_iter_pqueue_top()Chandra Pratap1-0/+49
2024-08-01t-reftable-pq: add test for index based comparisonChandra Pratap1-6/+42
2024-08-01t-reftable-pq: make merged_iter_pqueue_check() callable by referenceChandra Pratap1-5/+5
2024-08-01t-reftable-pq: make merged_iter_pqueue_check() staticChandra Pratap1-1/+1
2024-08-01t: move reftable/pq_test.c to the unit testing frameworkChandra Pratap1-0/+67
2024-07-31Merge branch 'cp/unit-test-reftable-merged'Junio C Hamano1-0/+463
2024-07-31Merge branch 'rs/t-strvec-use-test-msg'Junio C Hamano1-32/+15
2024-07-30t-strvec: use if_testRené Scharfe1-200/+156
2024-07-30t-reftable-basics: use if_testRené Scharfe1-122/+106
2024-07-30t-ctype: use if_testRené Scharfe1-3/+1
2024-07-30unit-tests: add if_testRené Scharfe2-0/+49
2024-07-30unit-tests: show location of checks outside of testsRené Scharfe1-1/+6
2024-07-30t-example-decorate: remove test messagesRené Scharfe1-16/+8
2024-07-29unit-tests/test-lib: fix typo in check_pointer_eq() descriptionKousik Sanagavarapu1-2/+3
2024-07-16t-strvec: fix type mismatch in check_strvecRené Scharfe1-1/+2
2024-07-15Merge branch 'cp/unit-test-reftable-record'Junio C Hamano1-0/+551
2024-07-15Merge branch 'gt/unit-test-oidmap'Junio C Hamano1-0/+181