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

Function validate_content_length_rejects_missing_header

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

Source from the content-addressed store, hash-verified

1338
1339 #[test]
1340 fn validate_content_length_rejects_missing_header() {
1341 let err = validate_content_length(None, 4096, "bucket", "ws/key").unwrap_err();
1342 assert!(err.to_string().contains("did not report Content-Length"));
1343 }
1344
1345 #[test]
1346 fn validate_content_length_rejects_negative_length() {

Callers

nothing calls this directly

Calls 1

validate_content_lengthFunction · 0.85

Tested by

no test coverage detected