MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse_test_commands

Method parse_test_commands

cranelift/reader/src/parser.rs:1026–1032  ·  view source on GitHub ↗

Parse a list of test commands.

(&mut self)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

parse_testFunction · 0.80

Calls 4

tokenMethod · 0.80
consume_lineMethod · 0.80
newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected