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

Method id_string

test/testutils.cpp:410–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408 }
409
410 void id_string() const
411 {
412 ASSERT_EQUALS("0", id_string_i(0));
413 ASSERT_EQUALS("f1", id_string_i(0xF1));
414 ASSERT_EQUALS("123", id_string_i(0x123));
415 ASSERT_EQUALS("1230", id_string_i(0x1230));
416 ASSERT_EQUALS(std::string(8,'f'), id_string_i(0xffffffffU));
417 if (sizeof(void*) == 8) {
418 ASSERT_EQUALS(std::string(16,'f'), id_string_i(~0ULL));
419 }
420 }
421
422 void startsWith() const
423 {

Callers

nothing calls this directly

Calls 1

id_string_iFunction · 0.85

Tested by

no test coverage detected