()
| 1327 | |
| 1328 | #[test] |
| 1329 | fn validate_content_length_rejects_over_cap() { |
| 1330 | let err = validate_content_length(Some(4097), 4096, "bucket", "ws/big.txt").unwrap_err(); |
| 1331 | let msg = err.to_string(); |
| 1332 | assert!( |
| 1333 | msg.contains("exceeds workspace max_read_bytes"), |
| 1334 | "msg: {msg}" |
| 1335 | ); |
| 1336 | assert!(msg.contains("s3://bucket/ws/big.txt"), "msg: {msg}"); |
| 1337 | } |
| 1338 | |
| 1339 | #[test] |
| 1340 | fn validate_content_length_rejects_missing_header() { |
nothing calls this directly
no test coverage detected