MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / fuzzJSONKey

Function fuzzJSONKey

src/Storages/StorageFuzzJSON.cpp:300–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300String fuzzJSONKey(const StorageFuzzJSON::Configuration & config, pcg64 & rnd, const String & key)
301{
302 return fuzzString(config.min_key_length, config.max_key_length, rnd, key, generateRandomKeyCharacter);
303}
304
305// Randomly modify structural characters (e.g. '{', '}', '[', ']', ':', '"') to generate output that cannot be parsed as JSON.
306String fuzzJSONStructure(const StorageFuzzJSON::Configuration & config, pcg64 & rnd, const String & s)

Callers 1

Calls 1

fuzzStringFunction · 0.85

Tested by

no test coverage detected