curl/scripts
Daniel Stenberg 7fd35f4c34
unittests: cleanups
- make sure all UNITTEST prototypes mark in which unit test they are used,
  with "@unittest" markup

- make sure all UNITTEST functions do not use Curl_ prefix, as that is a
  prefix we use for global private functions and these functions are static
  and therefore not global and the prefix is wrong

- drop UNITTEST for functions not used in unit tests

- make the extract-unit-protos script highlight the above issues if found

- extract-unit-protos now also outputs the unit test number for all the
  generated protos in lib/unitprotos.h to aid readers. It also adds the source
  file and line number where the proto originates from.

- extract-unit-protos now exits with a non-zero value if any of the above
  warnings are triggered

- cf-dns: Curl_cf_dns_result => static cf_dns_result
- hostip: Curl_ipv6works => static ipv6works
- url: remove Curl_setup_conn() - not used anymore
- connect: Curl_timeleft_now_ms => UNITTEST timeleft_now_ms

Closes #21330
2026-04-15 23:32:38 +02:00
..
.checksrc REUSE: move copyright headers to .checksrc 2025-10-13 11:54:22 +02:00
badwords tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
badwords-all badwords-all: stop checking source code comments 2026-03-21 22:58:51 +01:00
badwords.txt include: drop 'will' from public headers 2026-03-19 12:02:10 +01:00
cd2cd scripts: drop redundant double-quotes: "$var" -> $var (Perl) 2026-03-21 13:21:06 +01:00
cd2nroff rtmp: drop support 2026-03-21 14:56:06 +01:00
cdall scripts: drop redundant double-quotes: "$var" -> $var (Perl) 2026-03-21 13:21:06 +01:00
checksrc-all.pl perl: harden external command invocations 2026-03-26 14:20:07 +01:00
checksrc.pl scripts: drop redundant double-quotes: "$var" -> $var (Perl) 2026-03-21 13:21:06 +01:00
cmakelint.sh cmake: improve clang-tidy test command-line reproduction 2026-03-06 04:56:33 +01:00
CMakeLists.txt cmake: replace deprecated PERL_FOUND with Perl_FOUND 2025-12-17 17:56:32 +01:00
completion.pl badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
contributors.sh tidy-up: miscellaneous 2026-01-15 13:06:13 +01:00
contrithanks.sh contrithanks.sh: adopt the stricter by: check from contributors.sh 2025-12-20 17:45:15 +01:00
coverage.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
delta tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
dmaketgz dmaketgz: use --no-cache when building docker image 2024-12-05 15:41:53 +01:00
extract-unit-protos unittests: cleanups 2026-04-15 23:32:38 +02:00
firefox-db2pem.sh tidy-up: miscellaneous 2025-12-12 04:18:48 +01:00
installcheck.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
Makefile.am badwords: only check comments and strings in source code 2026-03-13 08:54:35 +01:00
maketgz scripts: use end-of-options marker in find -exec commands 2025-11-10 18:52:29 +01:00
managen tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
mdlinkcheck scripts: drop redundant double-quotes: "$var" -> $var (Perl) 2026-03-21 13:21:06 +01:00
mk-ca-bundle.pl mk-ca-bundle.pl: tidy up more leftovers 2026-03-28 00:55:09 +01:00
mk-unity.pl cmake: add native clang-tidy support for tests, with concatenated sources 2026-02-25 17:28:35 +01:00
nroff2cd scripts: drop redundant double-quotes: "$var" -> $var (Perl) 2026-03-21 13:21:06 +01:00
perlcheck.sh cmake: match filename suffixes with file content 2025-12-20 11:34:27 +01:00
pythonlint.sh tests: make whitespace between functions and classes consistent 2026-04-08 10:28:05 -07:00
randdisable scripts: harden / tidy up more Perl system() calls 2026-03-19 14:26:56 +01:00
release-notes.pl badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
release-tools.sh badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
schemetable.c rtmp: drop support 2026-03-21 14:56:06 +01:00
singleuse.pl perl: harden external command invocations 2026-03-26 14:20:07 +01:00
spacecheck.pl spacecheck.pl: fix to check 3+ newlines in all files 2026-04-06 04:05:58 +02:00
top-complexity top-complexity: prevent filename-based shell injection risk 2026-03-18 10:24:53 +01:00
verify-release verify-release: update to avoid shellcheck warning SC2034 2025-11-10 16:06:48 +01:00
wcurl wcurl: import v2026.01.05 2026-01-06 10:12:31 +01:00