(ctx: &mut ValidationContext, field_name: &str, source: &str)
| 653 | } |
| 654 | |
| 655 | pub fn check_script_source(ctx: &mut ValidationContext, field_name: &str, source: &str) { |
| 656 | if source.len() > 100_000 { |
| 657 | ctx.push_field_error(field_name, "source can be max 100KiB".to_string()); |
| 658 | } |
| 659 | } |
no test coverage detected