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

Function expectSingleToken

test/DefBlockSyntaxParser.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35inline void expectSingleToken(const std::string& source, parser::DefSyntaxToken::Type type, const std::string& value)
36{
37 auto tokeniser = createTokeniser(source);
38
39 auto it = tokeniser.getIterator();
40 expectToken(*it++, type, value);
41}
42
43}
44

Callers 1

TESTFunction · 0.85

Calls 3

createTokeniserFunction · 0.85
expectTokenFunction · 0.85
getIteratorMethod · 0.80

Tested by

no test coverage detected