MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / CheckStr

Function CheckStr

src/common/classes/misc/string_test.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52#ifdef DEV_BUILD
53void CheckStr(const AbstractString& check, const char* want, int line)
54{
55 if (strlen(check.c_str()) != check.length()) {
56 printf("Length error at %d\n\n", line);
57 }
58 if (strcmp(check.c_str(), want)) {
59 printf("Wanted >%s<,\n got >%s< at %d\n\n", want, check.c_str(), line);
60 }
61}
62#define validate(a, b) CheckStr(a, b, __LINE__)
63#else
64#define validate(a, b)

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected