Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,179 in github.com/buger/jsonparser
⨍
Functions
1,179
◇
Types & classes
46
Function
TestSetCreatesMissingEntryInExistingArray
Verifies: SYS-REQ-009 [boundary] MCDC SYS-REQ-009: set_creates_missing_path=T, set_path_is_provided=T, set_returns_not_found_error=F, set_returns_upda
set_spec_test.go:38
Function
TestSetDoesNotMutateInputBackingArrayWhenGrowing
Verifies: SYS-REQ-009 [regression, issues #209 and #141]
v131_regression_test.go:30
Function
TestSetEmptyKeyPathComponent
============================================================================= Set — empty key component produces a defined document, no panic (SYS-REQ
empty_key_path_test.go:179
Function
TestSetIdempotency
Verifies: SYS-REQ-100 MCDC SYS-REQ-100: set_applied_twice_with_same_args=T, set_second_call_produces_same_result=T => TRUE
obligation_property_test.go:252
Function
TestSetNestedMutation
Verifies: SYS-REQ-069 [boundary] Set with multi-level path where intermediate levels exist but leaf does not.
deep_spec_test.go:363
Function
TestSetNoPath
Verifies: SYS-REQ-070 [boundary] Set without any path shall return KeyPathNotFoundError.
deep_spec_test.go:381
Function
TestSetPathBeyondEOF
Verifies: SYS-REQ-068 [boundary] Set with path pointing beyond EOF shall return error, not panic.
deep_spec_test.go:348
Function
TestSetString
Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:443
Function
TestSetStringRoundTrip
Verifies: SYS-REQ-002 (GetString) Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not
escape_test.go:460
Function
TestSetStringSpecialChars
Verifies: SYS-REQ-002 (GetString) Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not
escape_test.go:480
Function
TestSetSupplementalArrayInsertionCoverage
Verifies: SYS-REQ-009 [boundary] MCDC SYS-REQ-009: N/A
mcdc_supplement_test.go:339
Function
TestSetTopLevelArrayAppend_KI4
Verifies: SYS-REQ-110
parser_test.go:2455
Function
TestSetTruncatedInput
============================================================================= Set truncation and edge cases (SYS-REQ-051, SYS-REQ-068, SYS-REQ-069, SY
deep_spec_test.go:319
Function
TestSetWildcard
Verifies: SYS-REQ-113 (wildcard path support) reqproof:proptest:skip targeted witness/regression test; not a property-test subject SYS-REQ-113:nominal
wildcard_test.go:153
Function
TestStress_ArrayEach_NestedEmpty
============================================================================= STRESS: Ensure no infinite loops or panics on pathological inputs ======
dead_code_audit_test.go:610
Function
TestStress_Delete_TokenEndBoundary
Verifies: SYS-REQ-010 [boundary]
dead_code_audit_test.go:642
Function
TestStress_EachKey_LargeNestedSkip
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:620
Function
TestStress_Get_BareTruncatedValue
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:656
Function
TestStringEndSentinel
Verifies: SYS-REQ-045 [boundary] stringEnd returns -1 when no closing quote found. Callers must handle.
deep_spec_test.go:137
Function
TestStringEnd_FastPathEquivalence_Cases
Verifies: SYS-REQ-045
optimization_equiv_test.go:53
Function
TestStringEnd_FastPathEquivalence_Random
Verifies: SYS-REQ-045
optimization_equiv_test.go:82
Function
TestStringEnd_FastPath_LongInputs
Directly exercise the fast-path branches with long inputs that would be expensive under per-byte scanning. Verifies: SYS-REQ-045
optimization_equiv_test.go:111
Function
TestTokenEndSentinel
============================================================================= Sentinel-value tests (SYS-REQ-044, SYS-REQ-045, SYS-REQ-046) ===========
deep_spec_test.go:112
Function
TestTokenStart
Verifies: STK-REQ-001 [boundary] MCDC STK-REQ-001: N/A
parser_test.go:2292
Function
TestTraversalDeepNesting
Verifies: SYS-REQ-099 MCDC SYS-REQ-099: traversal_input_is_deeply_nested=T, traversal_handles_deep_nesting_safely=T => TRUE
obligation_property_test.go:716
Function
TestTraversalDeterminism
Verifies: SYS-REQ-097 MCDC SYS-REQ-097: traversal_called_twice_with_same_input=T, traversal_returns_identical_results=T => TRUE
obligation_property_test.go:113
Function
TestTraversalNilSafety
Verifies: SYS-REQ-098 MCDC SYS-REQ-098: traversal_input_is_nil=T, traversal_returns_safe_result_for_nil=T => TRUE
obligation_property_test.go:339
Function
TestTruncatedAtValueBoundary
============================================================================= Truncated-input tests (SYS-REQ-041, SYS-REQ-042, SYS-REQ-043) ==========
deep_spec_test.go:16
Function
TestTruncatedEscapeSequences
Verifies: SYS-REQ-060 [malformed] Truncated escape sequences in ParseString shall return MalformedValueError.
deep_spec_test.go:598
Function
TestTruncatedMidKey
Verifies: SYS-REQ-043 [malformed] When JSON input is truncated mid-key (e.g. '{"a'), Get shall return a parse-related error and shall not panic.
deep_spec_test.go:78
Function
TestTruncatedMidStructure
Verifies: SYS-REQ-042 [malformed] When JSON input is truncated mid-structure (e.g. '{"a":[1,2'), Get shall return a parse-related error and shall not
deep_spec_test.go:47
Function
TestTypedGetEmptyKeyPathComponent
Verifies: SYS-REQ-016 [boundary] Typed Get accessors must propagate KeyPathNotFoundError for an empty key component instead of panicking on the underl
empty_key_path_test.go:82
Function
TestTypedGetterDeterminism
Verifies: SYS-REQ-094 MCDC SYS-REQ-094: typed_getter_called_twice_with_same_input=T, typed_getter_returns_identical_results=T => TRUE
obligation_property_test.go:86
Function
TestTypedGetterEdgeErrors
Verifies: SYS-REQ-003 [boundary] MCDC SYS-REQ-003: N/A Verifies: SYS-REQ-004 [boundary] MCDC SYS-REQ-004: N/A Verifies: SYS-REQ-005 [boundary] MCDC SY
mcdc_supplement_test.go:98
Function
TestTypedGetterNilSafety
Verifies: SYS-REQ-095 MCDC SYS-REQ-095: typed_getter_input_is_nil=T, typed_getter_returns_safe_result_for_nil=T => TRUE
obligation_property_test.go:314
Function
TestUnescape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:172
Function
TestUnescapeHighSurrogateThenNonSurrogate
Verifies: SYS-REQ-014 [boundary] — high surrogate followed by a "\u" escape that is NOT a low surrogate (here a BMP codepoint U+0041 'A') → U+FFFD + '
escape_test.go:269
Function
TestUnescapeLoneHighSurrogate
Verifies: SYS-REQ-014 [boundary] — lone high surrogate → U+FFFD, no following bytes consumed.
escape_test.go:234
Function
TestUnescapeLoneHighSurrogateFollowedByNonEscape
Verifies: SYS-REQ-014 [boundary] — the bug: high surrogate followed by non-escape bytes was synthesizing U+DC271; must be U+FFFD + literal "A7FA".
escape_test.go:246
Function
TestUnescapeLoneLowSurrogate
Verifies: SYS-REQ-014 [boundary] — lone low surrogate → U+FFFD.
escape_test.go:257
Function
TestUnescapeValidSurrogatePairStillWorks
Verifies: SYS-REQ-014 [happy-path] — a valid UTF-16 surrogate pair must still combine into the supplementary-plane code point (regression guard).
escape_test.go:281
Function
TestValueTypeString
Verifies: STK-REQ-001 [boundary] MCDC STK-REQ-001: N/A
parser_test.go:2267
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:100
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:183
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:237
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:371
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:463
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:509
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:555
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:630
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:676
Method
UnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:786
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:55
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:248
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:469
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:710
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:951
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1236
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1506
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1790
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2025
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2332
Method
UnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2690
Function
byteflipAtStructuralByte
byteflipAtStructuralByte flips a byte at a structural position ({, }, [, ], :, ,, "). This corrupts the document skeleton, exercising the parser's mal
json_fuzz_test.go:764
Function
bytesToString
A hack until issue golang/go#2632 is fixed. See: https://github.com/golang/go/issues/2632
bytes_unsafe.go:32
Function
duplicateKey
duplicateKey injects a duplicate object key, turning {"k":1} into {"k":1,"k":1}. This exercises duplicate-key handling: the parser should return the f
json_fuzz_test.go:701
Function
equalStr
The reason for using *[]byte rather than []byte in parameters is an optimization. As of Go 1.6, the compiler cannot perfectly inline the function whe
bytes_unsafe.go:22
Function
init
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:36
Function
injectInvalidUTF8
injectInvalidUTF8 inserts a raw invalid-UTF-8 byte sequence inside a JSON string value. Targets the parser's UTF-8 validation path: the parser must re
json_fuzz_test.go:804
Function
injectLoneSurrogate
injectLoneSurrogate corrupts a string by replacing a `\uXXXX` escape with a lone surrogate escape (\uD800 / \uDC00 alone, or a high-high pair). Target
json_fuzz_test.go:835
Function
injectMismatchedCloser
injectMismatchedCloser swaps a closing '}' for ']' (or vice versa). The grammar generator always pairs '{' with '}' and '[' with ']'; this operator pr
json_fuzz_test.go:911
Function
injectUnbalancedOpen
injectUnbalancedOpen inserts unmatched '{' or '[' opens at a random position. This produces structures the grammar generator CANNOT emit: every genera
json_fuzz_test.go:886
Function
parseFloat
(b *[]byte)
bytes_unsafe.go:26
Function
toArray
Test helper for SYS-REQ-006.
parser_test.go:15
Function
truncateAtValueBoundary
truncateAtValueBoundary cuts the document right after a ':' (before the value starts). This is the OSS-Fuzz 4649128545288192 / sentinel_value_boundary
json_fuzz_test.go:571
Function
truncateMidElement
truncateMidElement cuts inside an array element, after a '[' or ','. The truncated_mid_element class: the parser must not read past the cut when scann
json_fuzz_test.go:681
Function
truncateMidEscape
truncateMidEscape cuts inside a \uXXXX escape sequence. This is the truncated_escape_sequence class: the parser's Unescape routine must detect the tru
json_fuzz_test.go:649
Function
truncateMidKey
truncateMidKey cuts inside a string key. The cut is placed between the opening '"' of a key and its closing '"'. This is the truncated_mid_key class:
json_fuzz_test.go:588
Function
truncateMidStructure
truncateMidStructure cuts after an unclosed '{' or '['. This is the truncated_mid_structure class: the parser must detect the missing closing token an
json_fuzz_test.go:631
← previous
1,101–1,179 of 1,179, ranked by callers