mirror of
https://github.com/rtk-ai/rtk.git
synced 2026-04-02 02:47:40 +00:00
Add check-test-presence.sh script and CI job that fails if any *_cmd.rs file added or modified in a PR is missing a #[cfg(test)] block. - New CI job runs with no dependencies (parallel to all other jobs, <10s) - Uses --diff-filter=AM to catch both added files and test deletions - --self-test mode for local verification - Add missing tests to wget_cmd.rs (17 tests) and env_cmd.rs (12 tests) covering pure functions: compact_url, format_size, parse_error, extract_filename, mask_value, is_lang_var, is_cloud_var, etc. Fixes the enforcement gap: CONTRIBUTING.md required tests but CI did not check. Now 34/34 *_cmd.rs modules have #[cfg(test)]. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Florian BRUNIAUX <florian@bruniaux.com>