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

Function validate_content_length_rejects_negative_length

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

Source from the content-addressed store, hash-verified

1344
1345 #[test]
1346 fn validate_content_length_rejects_negative_length() {
1347 let err = validate_content_length(Some(-1), 4096, "bucket", "ws/key").unwrap_err();
1348 assert!(err.to_string().contains("invalid content-length"));
1349 }
1350
1351 #[test]
1352 fn services_s3_factory_disables_exec_search_and_git_by_default() {

Callers

nothing calls this directly

Calls 1

validate_content_lengthFunction · 0.85

Tested by

no test coverage detected