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

Method testaddtoken2

test/testtokenlist.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void testaddtoken2() const {
60 const std::string code = "0xF0000000";
61 const Settings settings1 = dinit(Settings, $.platform.int_bit = 32);
62 TokenList tokenlist(settings1, Standards::Language::CPP);
63 tokenlist.addtoken(code, 1, 1, false);
64 ASSERT_EQUALS("0xF0000000", tokenlist.front()->str());
65 }
66
67 void inc() const {
68 const char code[] = "a++1;1++b;";

Callers

nothing calls this directly

Calls 3

frontMethod · 0.80
addtokenMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected