MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / expectToken

Function expectToken

test/DefBlockSyntaxParser.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20inline void expectToken(const parser::DefSyntaxToken& token, parser::DefSyntaxToken::Type type, const std::string& value)
21{
22 EXPECT_EQ(token.type, type) << "Expected token type " << (int)type;
23 EXPECT_EQ(token.value, value) << "Expected token value " << value;
24}
25
26inline parser::DefBlockSyntaxParser<const std::string>::Tokeniser createTokeniser(const std::string& source)
27{

Callers 2

expectSingleTokenFunction · 0.85
expectTokenSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected