MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,014 in github.com/buger/jsonparser

↓ 1 callersFunctionoracleSetValue
--------------------------------------------------------------------------- Property 2: Set append/replace — Set then Get returns the set value. This
reference_oracle_test.go:499
↓ 1 callersFunctionparseIntOverflows
Test helper for SYS-REQ-015.
bytes_test.go:153
↓ 1 callersFunctionparseTestCheckNoError
parseTestCheckNoError checks the error return from Parse*() against the test case expectations. Returns true the test should proceed to checking the a
parser_test.go:2179
↓ 1 callersFunctionrandJSONString
(r *mathrand.Rand)
property_test.go:92
↓ 1 callersFunctionrecordCrash
(target string, panicVal interface{}, stack, input []byte)
fuzz_native_test.go:83
↓ 1 callersFunctionrecordPathCrash
recordPathCrash writes a JSON artifact capturing the data + path that triggered a panic, so the crash is reproducible outside the fuzzer. Deduplicated
path_fuzz_test.go:66
↓ 1 callersFunctionrunDeepNestingDepths
============================================================================= Gate D: Deep-nesting stack safety (CVE-2020-29652 class) ===============
encoding_json_fuzz_test.go:306
↓ 1 callersFunctionrunDeleteTests
Test helper for SYS-REQ-010.
parser_test.go:1316
↓ 1 callersFunctionrunDifferentialGate
============================================================================= Gate G: Differential — jsonparser vs encoding/json number parsing ======
encoding_json_fuzz_test.go:555
↓ 1 callersFunctionrunDoSCase
runDoSCase runs one op under the DoS budget. A panic or a timeout exceeds the budget — either is a finding.
json_fuzz_test.go:1687
↓ 1 callersFunctionrunMarshalDeterminismGate
============================================================================= Gate I: Marshal determinism on round-tripped values ====================
encoding_json_fuzz_test.go:509
↓ 1 callersFunctionrunOpNoPanic
runOpNoPanic runs fn and fails the test on panic (the NO-PANIC gate). The panic value and stack are included in the failure message so the fuzz engine
json_fuzz_test.go:1420
↓ 1 callersFunctionrunRoundTripGate
============================================================================= Gate C: Unmarshal → Marshal → Unmarshal round-trip equivalence =========
encoding_json_fuzz_test.go:229
↓ 1 callersFunctionrunSetTests
Test helper for SYS-REQ-009.
parser_test.go:1289
↓ 1 callersFunctionrunStreamingConsistencyGate
============================================================================= Gate E: Streaming Decoder vs one-shot Unmarshal consistency ============
encoding_json_fuzz_test.go:348
↓ 1 callersFunctionrunTransformDoSGate
runTransformDoSGate runs Compact/Indent/HTMLEscape on a deeply-nested input under a wall-clock budget. A panic OR a hang is a finding.
encoding_json_fuzz_test.go:450
↓ 1 callersFunctionrunTransformGate
============================================================================= Gate F: Compact / Indent / HTMLEscape must never panic =================
encoding_json_fuzz_test.go:409
↓ 1 callersFunctionrunValidConsistencyGate
============================================================================= Gate A: NO-PANIC (embedded in every gate via encodingJSONNoPanic) ======
encoding_json_fuzz_test.go:174
↓ 1 callersFunctionsafeCall
safeCall invokes a fuzz harness, recovering from any panic and returning the harness result or -1 on panic.
property_test.go:880
↓ 1 callersFunctionsetPathSemanticallyValid
setPathSemanticallyValid reports whether applying Set/Delete with `path` to a doc marshaled from `v` is well-defined: each array-index component must
reference_oracle_test.go:409
↓ 1 callersFunctionsetTestCheckFoundAndNoError
Test helper for SYS-REQ-009.
parser_test.go:1264
↓ 1 callersFunctionstrconvParseFloat
strconvParseFloat is a thin wrapper so the SEQUENCE closures don't have to import strconv (the package-level import set already lives in json_fuzz_tes
path_fuzz_test.go:717
↓ 1 callersFunctiontestIter
Test helper for SYS-REQ-008.
parser_error_test.go:17
↓ 1 callersFunctiontoStringArray
Test helper for SYS-REQ-006 and SYS-REQ-008.
parser_test.go:25
↓ 1 callersFunctiontruncateForName
truncateForName renders a byte slice for use as a subtest name, capping the length so deeply-nested seeds (100 KB) don't produce gigantic test IDs.
encoding_json_fuzz_test.go:767
FunctionBenchmarkBytesEqualStrSafe
Alternative implementation without using unsafe Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:67
FunctionBenchmarkBytesEqualStrUnsafeSlower
Alternative implementation using unsafe, but that is slower than the current implementation Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:76
FunctionBenchmarkDeleteLarge
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_delete_test.go:36
FunctionBenchmarkDeleteNested
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_delete_test.go:24
FunctionBenchmarkDeleteSmall
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_delete_test.go:12
FunctionBenchmarkDjsonLarge
* github.com/a8m/djson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-RE
benchmark/benchmark_large_payload_test.go:158
FunctionBenchmarkDjsonMedium
* github.com/a8m/djson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-RE
benchmark/benchmark_medium_payload_test.go:443
FunctionBenchmarkDjsonSmall
* github.com/a8m/djson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-RE
benchmark/benchmark_small_payload_test.go:440
FunctionBenchmarkEasyJsonLarge
* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_large_payload_test.go:132
FunctionBenchmarkEasyJsonMedium
* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_medium_payload_test.go:503
FunctionBenchmarkEasyJsonSmall
* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_small_payload_test.go:485
FunctionBenchmarkEncodingJsonInterfaceLarge
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A reqproof:proptest:
benchmark/benchmark_large_payload_test.go:78
FunctionBenchmarkEncodingJsonInterfaceMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:257
FunctionBenchmarkEncodingJsonInterfaceSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:261
FunctionBenchmarkEncodingJsonStructLarge
* encoding/json */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004:
benchmark/benchmark_large_payload_test.go:56
FunctionBenchmarkEncodingJsonStructMedium
* encoding/json */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004:
benchmark/benchmark_medium_payload_test.go:233
FunctionBenchmarkEncodingJsonStructSmall
* encoding/json */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004:
benchmark/benchmark_small_payload_test.go:241
FunctionBenchmarkEqualStr
Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:58
FunctionBenchmarkFFJsonLarge
* github.com/pquerna/ffjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC S
benchmark/benchmark_large_payload_test.go:107
FunctionBenchmarkFFJsonMedium
* github.com/pquerna/ffjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC S
benchmark/benchmark_medium_payload_test.go:352
FunctionBenchmarkFFJsonSmall
* github.com/pquerna/ffjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC S
benchmark/benchmark_small_payload_test.go:363
FunctionBenchmarkGabsMedium
* github.com/Jeffail/gabs */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK
benchmark/benchmark_medium_payload_test.go:291
FunctionBenchmarkGabsSmall
* github.com/Jeffail/gabs */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK
benchmark/benchmark_small_payload_test.go:285
FunctionBenchmarkGet_StringValue_NoEscape
--- end-to-end Get with a string value ------------------------------------- Verifies that stringEnd's fast path actually shows up in a realistic call
optimization_bench_test.go:86
FunctionBenchmarkGoSimpleJsonMedium
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_medium_payload_test.go:323
FunctionBenchmarkGoSimplejsonSetSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:336
FunctionBenchmarkGoSimplejsonSmall
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_small_payload_test.go:312
FunctionBenchmarkJasonMedium
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_medium_payload_test.go:379
FunctionBenchmarkJasonSmall
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_small_payload_test.go:386
FunctionBenchmarkJsonParserDelSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:213
FunctionBenchmarkJsonParserDeleteMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:63
FunctionBenchmarkJsonParserEachKeyManualMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:87
FunctionBenchmarkJsonParserEachKeyManualSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:66
FunctionBenchmarkJsonParserEachKeyStructMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:124
FunctionBenchmarkJsonParserEachKeyStructSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:101
FunctionBenchmarkJsonParserLarge
* github.com/buger/jsonparser */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_large_payload_test.go:31
FunctionBenchmarkJsonParserMedium
* github.com/buger/jsonparser */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_medium_payload_test.go:39
FunctionBenchmarkJsonParserObjectEachStructMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:173
FunctionBenchmarkJsonParserObjectEachStructSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:142
FunctionBenchmarkJsonParserSetSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:191
FunctionBenchmarkJsonParserSmall
* github.com/buger/jsonparser */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_small_payload_test.go:44
FunctionBenchmarkParseInt
Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:125
FunctionBenchmarkParseIntOverflows
Old implementation that did not check for overflows. Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:145
FunctionBenchmarkParseIntUnsafeSlower
Alternative implementation using unsafe and delegating to strconv.ParseInt Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:135
FunctionBenchmarkSetLarge
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_set_test.go:12
FunctionBenchmarkStringEnd_NoEscape_Long
(b *testing.B)
optimization_bench_test.go:30
FunctionBenchmarkStringEnd_NoEscape_Short
============================================================================= Micro-benchmarks for the fast-path optimizations modeled on PR #285. Ea
optimization_bench_test.go:21
FunctionBenchmarkStringEnd_WithEscape
(b *testing.B)
optimization_bench_test.go:40
FunctionBenchmarkTokenEnd_Boolean
(b *testing.B)
optimization_bench_test.go:74
FunctionBenchmarkTokenEnd_LongNumber
(b *testing.B)
optimization_bench_test.go:64
FunctionBenchmarkTokenEnd_Number
--- tokenEnd --------------------------------------------------------------- Common case: a bare scalar value (number, boolean, null) terminated by a
optimization_bench_test.go:54
FunctionBenchmarkUgirjiMedium
* github.com/ugorji/go/codec */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_medium_payload_test.go:474
FunctionBenchmarkUgirjiSmall
* github.com/ugorji/go/codec */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_small_payload_test.go:461
FunctionBenchmarkUjsonMedium
* github.com/mreiferson/go-ujson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_medium_payload_test.go:410
FunctionBenchmarkUjsonSmall
* github.com/mreiferson/go-ujson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_small_payload_test.go:413
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:282
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:622
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:786
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:948
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1357
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1637
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1841
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2024
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2237
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2465
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:47
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:563
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:727
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:897
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1217
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1542
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1782
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1946
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2151
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2370
← previousnext →201–300 of 1,014, ranked by callers