15 const size_t query_size = fuzzed_data_provider.
ConsumeIntegral<
size_t>();
16 const std::string query = fuzzed_data_provider.
ConsumeBytesAsString(std::min<size_t>(query_size, 1024 * 1024));
23 mut_span = const_span;
26 mut_span = const_span;
30 mut_span = const_span;
std::string ConsumeBytesAsString(size_t num_bytes)
std::string ConsumeRemainingBytesAsString()
A Span is an object that can refer to a contiguous sequence of objects.
CONSTEXPR_IF_NOT_DEBUG C & front() const noexcept
bool Const(const std::string &str, Span< const char > &sp)
Parse a constant.
Span< const char > Expr(Span< const char > &sp)
Extract the expression that sp begins with.
bool Func(const std::string &str, Span< const char > &sp)
Parse a function call.
std::vector< T > Split(const Span< const char > &sp, std::string_view separators)
Split a string on any char found in separators, returning a vector.
FUZZ_TARGET(script_parsing)