MCPcopy Create free account
hub / github.com/AI45Lab/Code / validate_content_length_rejects_over_cap

Function validate_content_length_rejects_over_cap

core/src/workspace/s3.rs:1329–1337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

validate_content_lengthFunction · 0.85

Tested by

no test coverage detected