From d3f528389af1f3189e253f15896a5ef28c26811d Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 25 Oct 2026 03:29:29 +0100 Subject: Remove test for length only mode of the url escaper --- tests/t_scan_urlencoded_query.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tests') diff --git a/tests/t_scan_urlencoded_query.c b/tests/t_scan_urlencoded_query.c index 6fa34e0..f660ea3 100644 --- a/tests/t_scan_urlencoded_query.c +++ b/tests/t_scan_urlencoded_query.c @@ -295,14 +295,6 @@ static void case_fmt_hex_is_lower_case(void) { CHECK_STR(dest, "%00%ab%ff"); } -static void case_fmt_length_only(void) { - const uint8_t src[] = {'a', 0xff, 'b'}; - - test_case("a null destination reports the length without writing"); - CHECK_INT(fmt_urlencoded(NULL, src, sizeof(src)), 5); - CHECK_INT(fmt_urlencoded(NULL, src, 0), 0); -} - static void case_fmt_zero_length(void) { char dest[4]; @@ -374,7 +366,6 @@ void test_scan_urlencoded_query(void) { case_fmt_passes_safe_bytes(); case_fmt_escapes_the_rest(); case_fmt_hex_is_lower_case(); - case_fmt_length_only(); case_fmt_zero_length(); case_fmt_worst_case_fits(); case_fmt_decoder_disagrees_on_dollar(); -- cgit v1.3