dep-curl/tests/tunit
Viktor Szakats e1450d8fda
tidy-up: use more static, sizeof(), char[], double-const
- make `const` data `static`, where missing and possible.
- replace `strlen()` on literal or const strings with `sizeof()`.
  While the latter is optimized by popular C compiler, e.g. MSVC only
  does it with `/O2`.
- replace magic numbers with `sizeof()`, where missing.
- introduce `CURL_CSTRLEN()` macro for `sizeof(char[]) - 1`.
- use `CURL_CSTRLEN()` macro.
- move `const` before integer types, where missing.
- replace `char *var` with `var[]`, where missing and possible.
- use double const, where missing.
  `static const char *` -> `static const char * const`.
- lib1514: constify pointers.
- unit3205: drop redundant cast, avoid another one.
- unit1666: map `OID()` macro to identical `STRCONST()`.

Closes #22406
2026-07-28 13:53:11 +02:00
..
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: rename testbins target to tt, restore internal option 2026-03-01 00:24:47 +01:00
Makefile.am autotools: limit checksrc target to ignore non-repo test sources 2026-03-12 01:45:24 +01:00
Makefile.inc tool_dirhie: fix to create drive-relative directory 2026-04-27 12:09:09 +02:00
README.md tests/tunit: make a separate directory for tool-based unit tests 2025-04-08 08:08:05 +02:00
tool1394.c tidy-up: miscellaneous 2026-06-09 11:07:55 +02:00
tool1604.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
tool1621.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
tool1622.c tool1622: assert width and exact format boundaries 2026-05-07 08:00:03 +02:00
tool1623.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
tool1720.c tidy-up: use more static, sizeof(), char[], double-const 2026-07-28 13:53:11 +02:00

Tool unit tests

This directory is for unit testing of tool functions. They are separate from libcurl unit tests, because how these live/work outside of the library and the libcurl unit tests live/work inside.