Parse a list of test commands.
(&mut self)
| 1024 | |
| 1025 | /// Parse a list of test commands. |
| 1026 | pub fn parse_test_commands(&mut self) -> Vec<TestCommand<'a>> { |
| 1027 | let mut list = Vec::new(); |
| 1028 | while self.token() == Some(Token::Identifier("test")) { |
| 1029 | list.push(TestCommand::new(self.consume_line())); |
| 1030 | } |
| 1031 | list |
| 1032 | } |
| 1033 | |
| 1034 | /// Parse a target spec. |
| 1035 | /// |
no test coverage detected