parent
d56fdc3d04
commit
d996ffc494
|
@ -875,7 +875,7 @@ namespace document_stream_tests {
|
||||||
total_count++;
|
total_count++;
|
||||||
bool_count += doc.is_bool();
|
bool_count += doc.is_bool();
|
||||||
}
|
}
|
||||||
return (bool_count == 0) && (bool_count == 0);
|
return (bool_count == 0) && (total_count == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool baby_fuzzer() {
|
bool baby_fuzzer() {
|
||||||
|
|
|
@ -524,12 +524,19 @@ namespace document_stream_tests {
|
||||||
total_count++;
|
total_count++;
|
||||||
bool b;
|
bool b;
|
||||||
if(doc.get_bool().get(b) == SUCCESS) { bool_count +=b; }
|
if(doc.get_bool().get(b) == SUCCESS) { bool_count +=b; }
|
||||||
|
// If we don't access the document at all, other than get_bool(),
|
||||||
|
// then some simdjson kernels will allow you to iterate through
|
||||||
|
// 3 'documents'. By asking for the type, we make the iteration
|
||||||
|
// terminate after the first 'document'.
|
||||||
|
ondemand::json_type t;
|
||||||
|
if(doc.type().get(t) != SUCCESS) { break; }
|
||||||
}
|
}
|
||||||
return (bool_count == 0) && (bool_count == 0);
|
return (bool_count == 0) && (total_count == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool run() {
|
bool run() {
|
||||||
return
|
return
|
||||||
|
fuzzaccess() &&
|
||||||
issue1683() &&
|
issue1683() &&
|
||||||
issue1668() &&
|
issue1668() &&
|
||||||
issue1668_long() &&
|
issue1668_long() &&
|
||||||
|
|
Loading…
Reference in New Issue