MCPcopy Create free account
hub / github.com/simplejson/simplejson / reader

Function reader

tsan_stress_simplejson.py:393–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391 target = {"base": 0, "a": 1, "b": 2, "c": 3, "d": [1, 2, 3]}
392
393 def reader():
394 deadline = time.monotonic() + DURATION
395 for _ in range(ITERATIONS):
396 try:
397 encoder(target, 0)
398 except Exception:
399 pass
400 if time.monotonic() > deadline:
401 break
402
403 def mutator():
404 deadline = time.monotonic() + DURATION

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…