MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / randomJSONNumber

Function randomJSONNumber

pkg/util/json/random.go:49–51  ·  view source on GitHub ↗
(rng *rand.Rand)

Source from the content-addressed store, hash-verified

47}
48
49func randomJSONNumber(rng *rand.Rand) interface{} {
50 return json.Number(fmt.Sprintf("%v", rng.ExpFloat64()))
51}
52
53func doRandomJSON(complexity int, rng *rand.Rand) interface{} {
54 if complexity <= 0 || rng.Intn(10) == 0 {

Callers 1

doRandomJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…