MCPcopy Create free account
hub / github.com/Kitware/CMake / is_invalid

Function is_invalid

Tests/CMakeLib/testUTF8.cxx:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static bool is_invalid(test_utf8_char s)
146{
147 bool valid = cm_utf8_is_valid(s.data()) != 0;
148 if (valid) {
149 report_invalid(false, s);
150 printf("expected invalid, reported as valid\n");
151 return false;
152 }
153 report_invalid(true, s);
154 printf("invalid as expected\n");
155 return true;
156}
157
158int testUTF8(int /*unused*/, char* /*unused*/[])
159{

Callers 1

testUTF8Function · 0.85

Calls 3

cm_utf8_is_validFunction · 0.85
report_invalidFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…