()
| 3262 | |
| 3263 | #[test] |
| 3264 | fn number_of_blocks() { |
| 3265 | let ParseError { |
| 3266 | location, |
| 3267 | message, |
| 3268 | is_warning, |
| 3269 | } = Parser::new( |
| 3270 | "function %a() { |
| 3271 | block100000:", |
| 3272 | ) |
| 3273 | .parse_function() |
| 3274 | .unwrap_err(); |
| 3275 | |
| 3276 | assert_eq!(location.line_number, 2); |
| 3277 | assert_eq!(message, "too many blocks"); |
| 3278 | assert!(!is_warning); |
| 3279 | } |
| 3280 | |
| 3281 | #[test] |
| 3282 | fn duplicate_ss() { |
nothing calls this directly
no test coverage detected