testing only with ok documents.
This commit is contained in:
parent
04e8710cf5
commit
8a91cecf41
|
@ -101,11 +101,13 @@ bool validate(const char *dirname) {
|
||||||
printf("size of file in bytes: %zu \n", json.size());
|
printf("size of file in bytes: %zu \n", json.size());
|
||||||
everything_fine = false;
|
everything_fine = false;
|
||||||
}
|
}
|
||||||
// issue 570, we just want to check for segfault
|
if(!error) {
|
||||||
simdjson::document::parser parser;
|
// issue 570, we just want to check for segfault
|
||||||
for (const simdjson::document &doc : parser.load_many(fullpath)) {
|
simdjson::document::parser parser;
|
||||||
auto iter = simdjson::document::iterator(doc);
|
for (const simdjson::document &doc : parser.load_many(fullpath)) {
|
||||||
//do something
|
auto iter = simdjson::document::iterator(doc);
|
||||||
|
//do something
|
||||||
|
}
|
||||||
}
|
}
|
||||||
free(fullpath);
|
free(fullpath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue