(bytes: &[u8])
| 128 | } |
| 129 | |
| 130 | fn bounded(bytes: &[u8]) -> Result<(), ExportError> { |
| 131 | if bytes.len() > MAX_EXPORT_BYTES { |
| 132 | return Err(ExportError::Profile("export exceeds 8 MiB limit")); |
| 133 | } |
| 134 | Ok(()) |
| 135 | } |
| 136 | |
| 137 | fn validate_profile(payload: &ExportPayload) -> Result<(), ExportError> { |
| 138 | if payload.schema != SCHEMA || payload.coverage != COVERAGE { |
no test coverage detected