MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,014 in github.com/buger/jsonparser

↓ 2 callersFunctionrunPathOp
runPathOp runs a single parser operation with crash-capture recovery. On panic, the crash is recorded to disk and the counter is incremented; the test
path_fuzz_test.go:143
↓ 2 callersFunctionrunStructureAwareGates
============================================================================= Gate runner (the assertions that catch each bug class) =================
json_fuzz_test.go:1242
↓ 2 callersFunctionsameTree
SYS-REQ-008
parser.go:512
↓ 2 callersFunctionstringInsertionPoints
stringInsertionPoints returns the byte positions of all unescaped closing '"' chars that terminate a string body in data. Used by mutation operators t
json_fuzz_test.go:782
↓ 2 callersFunctionunescapeToUTF8
unescapeToUTF8 unescapes the single escape sequence starting at 'in' into 'out' and returns how many characters were consumed from 'in' and emitted in
escape.go:172
↓ 1 callersFunctionFuzzTokenStart
SYS-REQ-001
fuzz.go:83
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:30
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:223
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:420
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:878
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1205
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1451
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1765
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1958
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2285
↓ 1 callersMethodMarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2617
↓ 1 callersMethodString
Test helper for SYS-REQ-007.
parser_test.go:1760
↓ 1 callersFunctionStringToBytes
(s string)
bytes_safe.go:24
↓ 1 callersMethodUnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:254
↓ 1 callersMethodUnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:475
↓ 1 callersMethodUnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:957
↓ 1 callersMethodUnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1512
↓ 1 callersMethodUnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2031
↓ 1 callersMethodUnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2338
↓ 1 callersMethodUnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2696
↓ 1 callersFunctionapplySequenceStep
============================================================================= SEQUENCE fuzzer (closes Dimension 2: interaction / sequence coverage) ==
path_fuzz_test.go:495
↓ 1 callersFunctionassertAfterStep
assertAfterStep runs the post-step invariants: no panic (caught above), json.Valid (when input was valid + shape matches), and the per-step sequence a
path_fuzz_test.go:522
↓ 1 callersFunctionbytesEqualStrSafe
Test helper for SYS-REQ-001 and SYS-REQ-008.
bytes_unsafe_test.go:21
↓ 1 callersFunctionbytesEqualStrUnsafeSlower
Test helper for SYS-REQ-001 and SYS-REQ-008.
bytes_unsafe_test.go:26
↓ 1 callersFunctioncanonicalizeJSON
--------------------------------------------------------------------------- Comparison helpers — canonicalize both sides and compare bytes / values. -
reference_oracle_test.go:336
↓ 1 callersFunctioncheckDeterminismGate
checkDeterminismGate (Gate 6: DETERMINISM) asserts that two Get calls on the same input+path return byte-identical (value, type, offset) and the same
json_fuzz_test.go:1106
↓ 1 callersFunctioncheckNumericOracle
checkNumericOracle cross-checks jsonparser's ParseInt/ParseFloat against the strconv reference (the NUMERIC-ORACLE gate). strconv is the reference imp
json_fuzz_test.go:1436
↓ 1 callersFunctioncheckOffsetBoundsGate
checkOffsetBoundsGate (Gate 5: OFFSET-BOUNDS) asserts that Get's offset return is within the documented range [-1, len(data)]. Per SYS-REQ-016 / SYS-R
json_fuzz_test.go:1088
↓ 1 callersFunctioncheckParseBooleanGate
checkParseBooleanGate (Gate 9: PARSEBOOLEAN) cross-checks ParseBoolean against strconv.ParseBool on Boolean-typed values. Closes the API-coverage blin
json_fuzz_test.go:1211
↓ 1 callersFunctioncheckParseStringGate
checkParseStringGate (Gate 8: PARSESTRING) extracts a String-typed value via Get and calls ParseString on the raw escaped content. Closes the API- cov
json_fuzz_test.go:1159
↓ 1 callersFunctioncheckSliceAliasingGate
checkSliceAliasingGate (Gate 7: ALIASING) asserts that the value bytes Get returns appear as a sub-slice of the input data. Per Get's documentation, t
json_fuzz_test.go:1133
↓ 1 callersFunctioncloseEnough
closeEnough reports whether two floats agree to within a relative tolerance suitable for decimal round-trip comparisons.
property_test.go:980
↓ 1 callersFunctioncloseEnoughFloat
closeEnoughFloat reports whether two float64 values agree to within a relative tolerance of ~4 ULP — used only for adversarial inputs where rounding m
reference_oracle_test.go:929
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:395
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:687
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:854
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1013
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1177
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1452
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1717
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1906
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2095
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2311
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2545
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:314
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:654
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:818
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:980
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1144
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1389
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1669
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1873
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2056
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2269
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2497
↓ 1 callersFunctioncombineUTF16Surrogates
NOTE: combineUTF16Surrogates is blocked by an unsupported `<<` shift op in the translator (Phase T.* gap, beyond #1/#2/#5). Even though Fix #6 resolve
escape.go:22
↓ 1 callersFunctioncompareNumberParsing
compareNumberParsing cross-checks jsonparser.ParseInt/ParseFloat against encoding/json's json.Number (the canonical reference).
encoding_json_fuzz_test.go:582
↓ 1 callersFunctioncrashSignature
(panicMsg string, stack []byte)
fuzz_native_test.go:67
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:635
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBGithub
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:514
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBGravatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:560
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBName
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:468
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBPerson
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:376
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_DSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:188
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_DSTopicsList
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:105
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_DSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:242
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_LargePayload
suppress unused package warning Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:12
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_MediumPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:288
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_SmallPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:681
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:657
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBGithub
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:536
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBGravatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:600
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBName
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:490
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBPerson
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:420
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_DSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:212
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_DSTopicsList
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:147
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_DSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:264
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_LargePayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:60
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_MediumPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:332
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_SmallPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:719
↓ 1 callersMethodencSlicePtrtoCBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2610
↓ 1 callersMethodencSlicePtrtoDSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2712
↓ 1 callersMethodencSlicePtrtoDSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2814
↓ 1 callersFunctiongenArray
genArray emits an array with 0–5 elements (including the empty array []).
json_fuzz_test.go:220
↓ 1 callersFunctiongenKey
genKey emits a JSON object key (a double-quoted string). The key content is drawn from a weighted distribution that includes the cases most likely to
json_fuzz_test.go:239
↓ 1 callersFunctiongenNumber
genNumber emits a JSON number. The distribution is weighted toward the fast-path (small ints) but includes overflow boundaries, floats, and intentiona
json_fuzz_test.go:401
↓ 1 callersFunctiongenObject
genObject emits an object with 0–5 entries. Keys are drawn from a set that includes the dangerous cases: empty-string "", unicode (\uXXXX), long, and
json_fuzz_test.go:205
↓ 1 callersFunctiongenPathComponent
genPathComponent returns a single adversarial path component.
json_fuzz_test.go:945
↓ 1 callersFunctiongenString
genString emits a JSON string value. Includes empty "", ASCII, strings with escape sequences, unicode escapes, and long strings.
json_fuzz_test.go:299
↓ 1 callersFunctiongetTestCheckFoundAndNoError
checkFoundAndNoError checks the dataType and error return from Get*() against the test case expectations. Returns true the test should proceed to chec
parser_test.go:1209
↓ 1 callersFunctioninjectPathHazard
injectPathHazard randomly injects an adversarial path component into an existing path. This implements the injectEmptyKeyComponent and injectOobArrayI
json_fuzz_test.go:977
↓ 1 callersFunctionisJSONWhitespace
isJSONWhitespace reports whether b is one of the four JSON whitespace bytes (space 0x20, tab 0x09, LF 0x0A, CR 0x0D) per RFC 8259 §2. Used by Delete's
parser.go:72
↓ 1 callersFunctionisSameMemory
isSameMemory checks if two slices contain the same memory pointer (meaning one is a subslice of the other, with possibly differing lengths/capacities)
escape_test.go:156
↓ 1 callersFunctionisUTF16EncodedRune
isUTF16EncodedRune checks if a rune is in the range for non-BMP characters, which is used to describe UTF16 chars. Source: https://en.wikipedia.org/wi
escape.go:111
↓ 1 callersFunctionoracleRandKey
oracleRandKey generates a short object key. Includes "" (empty) to exercise the 8th-panic-site hazard. Bracket-style strings like "[0]" are NOT emitte
reference_oracle_test.go:239
← previousnext →101–200 of 1,014, ranked by callers