MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,095 in github.com/buger/jsonparser

↓ 2 callersFunctionWriteToBuffer
SYS-REQ-009
parser.go:1112
↓ 2 callersFunctionappendUnicodeEscape
appendUnicodeEscape appends a `\uXXXX` escape sequence for the given code point to buf. Does NOT validate cp — callers use it for both valid BMP code
json_fuzz_test.go:500
↓ 2 callersFunctionarrayEachErr
arrayEachErr also returns ArrayEach's closing-bracket offset for use by EachKeyErr while traversing array-index paths. SYS-REQ-004
parser.go:1640
↓ 2 callersFunctionassertBackingArrayUnchanged
(t *testing.T, input, snapshot []byte)
v131_regression_test.go:21
↓ 2 callersFunctioncompareGetToOracle
compareGetToOracle compares jsonparser.Get's output to the expected Go value (the reference oracle's prediction). Returns true iff they agree.
reference_oracle_test.go:346
↓ 2 callersFunctioncontainerIs
============================================================================= Enhanced path-shape checker (catches nested D6 divergences) ============
json_fuzz_test.go:1000
↓ 2 callersFunctioncontainerStart
SYS-REQ-112
parser.go:2047
↓ 2 callersMethoddecSlicePtrtoCBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2627
↓ 2 callersMethoddecSlicePtrtoDSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2729
↓ 2 callersMethoddecSlicePtrtoDSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2831
↓ 2 callersFunctiongenKeyPath
============================================================================= Adversarial key-path generator =========================================
json_fuzz_test.go:935
↓ 2 callersFunctionh2I
reqproof:lemma h2I_range func(c byte) bool { r := h2I(c) return r == -1 || (r >= 0 && r <= 15) } reqproof:lemma h2I_decimal_digit func(c byte) bool {
escape.go:60
↓ 2 callersFunctionhexDigit
hexDigit returns a single lowercase hexadecimal digit byte.
json_fuzz_test.go:485
↓ 2 callersFunctioninputWithSpareCapacity
(data string)
v131_regression_test.go:8
↓ 2 callersFunctionisContainerWhitespace
SYS-REQ-112
parser.go:2280
↓ 2 callersFunctionlooksLikeJSON
============================================================================= The fuzzer (testing.F, native go-fuzz) =================================
json_fuzz_test.go:1480
↓ 2 callersFunctionoracleRandomJSONValue
oracleRandomJSONValue builds a random nested Go value suitable for json.Marshal. It is intentionally richer than property_test.go's generator: it emit
reference_oracle_test.go:163
↓ 2 callersFunctionparseFloat
(b *[]byte)
bytes_safe.go:16
↓ 2 callersFunctionpathShapeMatchesData
pathShapeMatchesData is a stricter version of pathShapeMatchesRoot that also verifies container-type compatibility at EVERY nesting level, not just th
json_fuzz_test.go:1023
↓ 2 callersFunctionpickAdversarialPath
pickAdversarialPath produces a path that may NOT exist in v, including out-of-range indices and empty components — exactly the inputs that exposed PR
reference_oracle_test.go:305
↓ 2 callersFunctionrunEncodingJSONGates
============================================================================= Gate runner (runs Gates A–G on a single input) =========================
encoding_json_fuzz_test.go:627
↓ 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 callersFunctionscanContainerLen
SYS-REQ-112
parser.go:2069
↓ 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 callersFunctiontestEachKeyPathDepth
(t *testing.T, depth int)
issues_56_107_229_test.go:101
↓ 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 callersMethodArrayEach
ArrayEach iterates over the array at the compiled path. SYS-REQ-114
path_compiler.go:209
↓ 1 callersFunctionArrayEachWildcard
ArrayEachWildcard iterates over an array addressed by keys. A terminal [*] component is accepted as an explicit request for all elements; without it,
wildcard.go:72
↓ 1 callersMethodDelete
Delete removes the value at the compiled path. SYS-REQ-114
path_compiler.go:203
↓ 1 callersMethodEachKey
EachKey resolves the compiled path using EachKey. SYS-REQ-114
path_compiler.go:215
↓ 1 callersFunctionEachKeyErr
EachKeyErr finds the requested paths and allows the callback to stop iteration by returning an error. io.EOF stops iteration gracefully. SYS-REQ-008
parser.go:747
↓ 1 callersFunctionFuzzTokenStart
SYS-REQ-001
fuzz.go:83
↓ 1 callersMethodGetInt
GetInt resolves the compiled path and returns its integer value. SYS-REQ-114
path_compiler.go:190
↓ 1 callersFunctionGetUint64
GetUint64 returns the value retrieved by internalGet, cast to a uint64 if possible. Negative values and malformed integers return MalformedValueError;
parser.go:2014
↓ 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 callersMethodParts
Parts returns a copy of the compiled path components. SYS-REQ-114
path_compiler.go:222
↓ 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:489
↓ 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:516
↓ 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:1101
↓ 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:935
↓ 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 callersFunctioncreateInsertComponentBuffered
(keys []string, setValue []byte, comma, object bool)
issues_56_107_229_test.go:237
↓ 1 callersFunctioneachKeyWildcard
SYS-REQ-113
wildcard.go:21
↓ 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
← previousnext →101–200 of 1,095, ranked by callers