test: add property-based tests for new proxy features

Add proptest-based tests covering content_type_for, cache_control_for,
backend_addr, UUID v4 request IDs, rewrite rule compilation, body
rewriting, config TOML deserialization, path traversal prevention,
metrics label validation, and static file serving.

Signed-off-by: Sienna Meridian Satterwhite <sienna@sunbeam.pt>
This commit is contained in:
2026-03-10 23:38:20 +00:00
parent 0f31c7645c
commit 39fe5f9f5f
3 changed files with 994 additions and 3 deletions

View File

@@ -73,6 +73,8 @@ libc = "0.2"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
proptest = "1"
tempfile = "3"
[[bench]]
name = "scanner_bench"