MCPcopy Create free account
hub / github.com/boostorg/json / testUTF8Validation

Function testUTF8Validation

test/basic_parser.cpp:1239–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237 };
1238
1239 void
1240 testUTF8Validation()
1241 {
1242 TEST_GOOD("\"\xc2\x80----------\"");
1243 TEST_GOOD("\"\xc2\xbf----------\"");
1244 TEST_GOOD("\"\xdf\x80----------\"");
1245 TEST_GOOD("\"\xdf\xbf----------\"");
1246
1247 TEST_GOOD("\"\xcf\x90----------\"");
1248
1249 TEST_GOOD("\"\xe0\xa0\x80----------\"");
1250 TEST_GOOD("\"\xe0\xa0\xbf----------\"");
1251 TEST_GOOD("\"\xe0\xbf\x80----------\"");
1252 TEST_GOOD("\"\xe0\xbf\xbf----------\"");
1253
1254 TEST_GOOD("\"\xe0\xb0\x90----------\"");
1255
1256 TEST_GOOD("\"\xe1\x80\x80----------\"");
1257 TEST_GOOD("\"\xe1\xbf\x80----------\"");
1258 TEST_GOOD("\"\xec\x80\x80----------\"");
1259 TEST_GOOD("\"\xec\xbf\x80----------\"");
1260 TEST_GOOD("\"\xe1\x80\xbf----------\"");
1261 TEST_GOOD("\"\xe1\xbf\xbf----------\"");
1262 TEST_GOOD("\"\xec\x80\xbf----------\"");
1263 TEST_GOOD("\"\xec\xbf\xbf----------\"");
1264
1265 TEST_GOOD("\"\xe6\x90\x90----------\"");
1266
1267 TEST_GOOD("\"\xed\x80\x80----------\"");
1268 TEST_GOOD("\"\xed\x80\xbf----------\"");
1269 TEST_GOOD("\"\xed\x9f\x80----------\"");
1270 TEST_GOOD("\"\xed\x9f\xbf----------\"");
1271
1272 TEST_GOOD("\"\xed\x90\x90----------\"");
1273
1274 TEST_GOOD("\"\xee\x80\x80----------\"");
1275 TEST_GOOD("\"\xee\xbf\x80----------\"");
1276 TEST_GOOD("\"\xef\x80\x80----------\"");
1277 TEST_GOOD("\"\xef\xbf\x80----------\"");
1278 TEST_GOOD("\"\xee\x80\xbf----------\"");
1279 TEST_GOOD("\"\xee\xbf\xbf----------\"");
1280 TEST_GOOD("\"\xef\x80\xbf----------\"");
1281 TEST_GOOD("\"\xef\xbf\xbf----------\"");
1282
1283 TEST_GOOD("\"\xee\x90\x90----------\"");
1284 TEST_GOOD("\"\xef\x90\x90----------\"");
1285
1286 TEST_GOOD("\"\xf0\x90\x80\x80----------\"");
1287 TEST_GOOD("\"\xf0\x90\xbf\x80----------\"");
1288 TEST_GOOD("\"\xf0\x90\xbf\xbf----------\"");
1289 TEST_GOOD("\"\xf0\x90\x80\xbf----------\"");
1290 TEST_GOOD("\"\xf0\xbf\x80\x80----------\"");
1291 TEST_GOOD("\"\xf0\xbf\xbf\x80----------\"");
1292 TEST_GOOD("\"\xf0\xbf\xbf\xbf----------\"");
1293 TEST_GOOD("\"\xf0\xbf\x80\xbf----------\"");
1294
1295 TEST_GOOD("\"\xf0\xA0\x90\x90----------\"");
1296

Callers 1

runFunction · 0.85

Calls 5

checkFunction · 0.85
sizeMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45
capturedMethod · 0.45

Tested by

no test coverage detected