()
| 3318 | |
| 3319 | #[test] |
| 3320 | fn duplicate_sig() { |
| 3321 | let ParseError { |
| 3322 | location, |
| 3323 | message, |
| 3324 | is_warning, |
| 3325 | } = Parser::new( |
| 3326 | "function %blocks() system_v { |
| 3327 | sig0 = () |
| 3328 | sig0 = ()", |
| 3329 | ) |
| 3330 | .parse_function() |
| 3331 | .unwrap_err(); |
| 3332 | |
| 3333 | assert_eq!(location.line_number, 3); |
| 3334 | assert_eq!(message, "duplicate entity: sig0"); |
| 3335 | assert!(!is_warning); |
| 3336 | } |
| 3337 | |
| 3338 | #[test] |
| 3339 | fn duplicate_fn() { |
nothing calls this directly
no test coverage detected