MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / untilHelperPartWay

Method untilHelperPartWay

test/testtokenrange.cpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 void untilHelperPartWay() const {
82 const char code[] = "void a(){} void main(){ if(true){a();} }";
83 const SimpleTokenList tokenList(code);
84 const Token* start = tokenList.front()->tokAt(4);
85 const Token* end = start->tokAt(8);
86 ASSERT_EQUALS("", testTokenRange(start->until(end), start, end));
87 }
88
89 void partialEnumeration() const {
90 const char code[] = "void a(){} void main(){ if(true){a();} }";

Callers

nothing calls this directly

Calls 3

frontMethod · 0.80
untilMethod · 0.80
tokAtMethod · 0.45

Tested by

no test coverage detected