copilot review: test function name

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2026-03-29 16:31:41 +08:00
parent a965e8cf8f
commit 91ebbbd31d

View File

@@ -2874,7 +2874,7 @@ mod tests {
}
#[test]
fn test_parse_simple_header_overrides_content_type_with_json() {
fn test_parse_simple_header_ignores_custom_content_type() {
let headers = parse_simple_header("Content-Type: text/plain");
assert_eq!(
@@ -2923,7 +2923,7 @@ mod tests {
}
#[test]
fn test_tcp_proxy_log_target_redacts_path_and_query() {
fn test_tcp_proxy_log_target_redacts_query_only() {
assert_eq!(
tcp_proxy_log_target("https://example.com/api/heartbeat?token=secret"),
"https://example.com/api/heartbeat"