Skip to content

refactor: fold single-function modules into their callers#111

Merged
EdmondDantes merged 1 commit into
mainfrom
refactor/fold-single-fn-modules
Jul 9, 2026
Merged

refactor: fold single-function modules into their callers#111
EdmondDantes merged 1 commit into
mainfrom
refactor/fold-single-fn-modules

Conversation

@EdmondDantes

Copy link
Copy Markdown
Contributor

Removes 3 .c + 2 .h and 3 translation units, no behaviour change.

  • fs_slurp_fd + http_conditional_checksend_file.c (both were shared only between send_file.c and static/http_static.c, which already include send_file.h)
  • http_server_exceptions_register + its class-entry globals → http_server.c

Build clean; 28/28 sendfile+static phpt pass.

fs_slurp_fd + http_conditional_check → send_file.c (both were shared only
between send_file.c and static/http_static.c, which already include
send_file.h). http_server_exceptions_register + its class-entry globals →
http_server.c. Removes 3 .c + 2 .h and 3 translation units; no behaviour
change. 28/28 sendfile+static phpt pass.
@EdmondDantes EdmondDantes merged commit c6d1288 into main Jul 9, 2026
5 checks passed
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Coverage

Total lines: 80.84% → 80.84% (+0.00 pp)

File Baseline Current Δ Touched
src/fs_util.c 63.16% 0.00% -63.16 pp
src/http_conditional.c 100.00% 0.00% -100.00 pp
src/http_server.c 94.74% 95.12% +0.39 pp
src/http_server_exceptions.c 100.00% 0.00% -100.00 pp
src/send_file.c 87.13% 86.11% -1.01 pp
src/static/http_static.c 88.75% 88.75% +0.00 pp

❌ Regression in touched files (> 1.0 pp drop)

  • src/fs_util.c dropped -63.16 pp
  • src/http_conditional.c dropped -100.00 pp
  • src/http_server_exceptions.c dropped -100.00 pp
  • src/send_file.c dropped -1.01 pp

Add [coverage-drop-ok] to a commit message in this PR to override.

@EdmondDantes EdmondDantes deleted the refactor/fold-single-fn-modules branch July 9, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant