Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,168 in github.com/buger/jsonparser
⨍
Functions
1,168
◇
Types & classes
46
Function
FuzzPathMutation
FuzzPathMutation mutates BOTH the JSON bytes and the key-path bytes, then exercises the full parser surface. This is the harness that would have caugh
path_fuzz_test.go:165
Function
FuzzSequence
FuzzSequence runs multi-operation sequences against a single JSON document. Verifies: SYS-REQ-035 (no-panic on sequences of operations). reqproof:pro
path_fuzz_test.go:535
Function
FuzzSetNative
Verifies: SYS-REQ-009
fuzz_native_test.go:137
Function
FuzzTokenStartNative
Verifies: SYS-REQ-001
fuzz_native_test.go:177
Method
Get
Get resolves the compiled path in data. Verifies: SYS-REQ-001 (Get) SYS-REQ-114
path_compiler.go:178
Method
GetString
GetString resolves the compiled path and returns its string value. SYS-REQ-114
path_compiler.go:184
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:95
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:178
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:232
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:366
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:458
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:504
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:550
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:625
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:671
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:781
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:16
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:209
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:406
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:671
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:864
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1191
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1437
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1751
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1944
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2271
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2603
Method
Read
(p []byte)
reader_parser_test.go:234
Method
Set
Set writes value at the compiled path. Verifies: SYS-REQ-009 (Set) SYS-REQ-114
path_compiler.go:197
Function
StringToBytes
(s string)
bytes_unsafe.go:36
Function
TestAdditionalFuzzHarnessCoverage
Verifies: SYS-REQ-002 [fuzz] MCDC SYS-REQ-002: N/A Verifies: SYS-REQ-003 [fuzz] MCDC SYS-REQ-003: N/A Verifies: SYS-REQ-004 [fuzz] MCDC SYS-REQ-004: N
mcdc_supplement_test.go:439
Function
TestApiConsistencyEachKeyMatchesGet
Verifies: SYS-REQ-008 reqproof:proptest parser.EachKey, parser.Get
property_test.go:470
Function
TestArrayEach
Verifies: SYS-REQ-006 [example] STK-REQ-004:AC-1:acceptance MCDC SYS-REQ-006: addressed_array_is_empty=F, addressed_array_is_well_formed=T, array_call
parser_test.go:1633
Function
TestArrayEachCallbackErrorNotSwallowed
Verifies: SYS-REQ-052 [boundary] MCDC SYS-REQ-052: array_callback_returns_error=T, array_callback_error_is_propagated=F => FALSE
deep_spec_test.go:1165
Function
TestArrayEachCallbackReceivesElementError
Verifies: SYS-REQ-052 [malformed] MCDC SYS-REQ-052: array_callback_returns_error=T, array_callback_error_is_propagated=T => TRUE
deep_spec_test.go:1136
Function
TestArrayEachEmpty
Verifies: SYS-REQ-028 [boundary] MCDC SYS-REQ-028: addressed_array_is_empty=T, addressed_array_is_well_formed=T, empty_array_produces_no_callbacks=T =
parser_test.go:1717
Function
TestArrayEachErr
Verifies: SYS-REQ-004 (ArrayEach) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
array_each_err_test.go:12
Function
TestArrayEachErrorPropagation
============================================================================= ArrayEach error propagation and truncation (SYS-REQ-052, SYS-REQ-053, SY
deep_spec_test.go:394
Function
TestArrayEachMalformedDelimiter
Verifies: SYS-REQ-055 [malformed] ArrayEach with malformed delimiter between elements shall return MalformedArrayError.
deep_spec_test.go:432
Function
TestArrayEachNonArrayRootNoCallback_SYS029
Verifies: SYS-REQ-029 [malformed_input] SYS-REQ-029:malformed_input:negative SYS-REQ-029:non_array_root_no_callback:negative Negative witness: ArrayEa
parser_test.go:2538
Function
TestArrayEachSupplementalErrors
Verifies: SYS-REQ-006 [malformed] MCDC SYS-REQ-006: N/A
mcdc_supplement_test.go:241
Function
TestArrayEachTruncatedAtValueBoundary
============================================================================= ArrayEach truncated at value boundary (SYS-REQ-083) ====================
deep_spec_test.go:840
Function
TestArrayEachTruncatedMidElement
Verifies: SYS-REQ-053 [malformed] ArrayEach on truncated mid-element shall return error, not panic.
deep_spec_test.go:404
Function
TestArrayEachWildcard
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:115
Function
TestArrayEachWithWhiteSpace
Verifies: SYS-REQ-029 [boundary] MCDC SYS-REQ-029: addressed_array_is_well_formed=F, malformed_array_input_returns_error=T => TRUE
parser_test.go:1665
Function
TestArrayEach_OOB_MalformedElements
ArrayEach infinite loop guard: verify o==0 catches all no-progress cases Verifies: SYS-REQ-006 [boundary]
dead_code_audit_oob_test.go:88
Function
TestArrayOutOfBounds
Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:194
Function
TestBackslashAtEnd
Verifies: SYS-REQ-063 [malformed] Backslash at end of string shall return MalformedValueError.
deep_spec_test.go:659
Function
TestBlockEndSentinel
Verifies: SYS-REQ-046 [boundary] blockEnd returns -1 when no matching closing bracket/brace found.
deep_spec_test.go:159
Function
TestBytesParseInt
Verifies: SYS-REQ-015 [boundary] MCDC SYS-REQ-015: N/A
bytes_test.go:109
Function
TestCodeMCDC_ArrayEachNoError
Verifies: SYS-REQ-006 [boundary] Code MC/DC gap: parser.go:1081 ArrayEach e != nil (FALSE branch) Normal iteration where Get returns no error has e ==
mcdc_supplement_test.go:648
Function
TestCodeMCDC_ArrayEachNormalIteration
Verifies: SYS-REQ-006 [boundary] Code MC/DC gap: parser.go:1073 ArrayEach o == 0 (FALSE branch) and parser.go:1077 ArrayEach t != NotExist (TRUE branc
mcdc_supplement_test.go:629
Function
TestCodeMCDC_CalcAllocateSpaceEmptyKey
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:140
Function
TestCodeMCDC_CreateInsertComponentEmptyKey
----------------------------------------------------------------------------- createInsertComponent / calcAllocateSpace — direct call to drive the `le
mcdc_code_supplement_test.go:129
Function
TestCodeMCDC_DeleteArrayElifMCDC
Verifies: SYS-REQ-035 [boundary] Code MC/DC gap: parser.go:801 Delete data[endOffset+tokEnd] == ']' && data[tokStart] == ',' Full MC/DC for the array-
mcdc_supplement_test.go:877
Function
TestCodeMCDC_DeleteArrayFirstElement
Verifies: SYS-REQ-035 [boundary] Code MC/DC gap: parser.go:800 Delete data[endOffset+tokEnd] == ']' Drive data[endOffset+tokEnd] == ']' to FALSE in th
mcdc_supplement_test.go:681
Function
TestCodeMCDC_DeleteConjunctionFullMCDC
============================================================================= Code MC/DC gap closure tests — round 2 (100% target) ===================
mcdc_supplement_test.go:780
Function
TestCodeMCDC_DeleteSpaceBeforeComma
Verifies: SYS-REQ-035 [boundary] Code MC/DC gap: parser.go:778 Delete space-comma handling Drive the case where data[endOffset+tokEnd] == ' ' and len(
mcdc_supplement_test.go:740
Function
TestCodeMCDC_DeleteTrailingCommaRemoval
============================================================================= Code MC/DC gap closure tests ===========================================
mcdc_supplement_test.go:499
Function
TestCodeMCDC_EachKeyLoopBound
Verifies: SYS-REQ-008 [boundary] Code MC/DC gap: parser.go:497 EachKey i < ln Normal EachKey iteration has i < ln TRUE.
mcdc_supplement_test.go:758
Function
TestCodeMCDC_EachKeyNonObjectUnmatchedValue
Verifies: SYS-REQ-008 [boundary] Code MC/DC gap: parser.go:491 EachKey data[i] == '{' Drive data[i] == '{' to FALSE after an unmatched key. This happe
mcdc_supplement_test.go:570
Function
TestCodeMCDC_FindKeyStartArrayRoot
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:61 findKeyStart ln > 0 with data[i] == '[' Drive the branch where data starts with '[' (arr
mcdc_supplement_test.go:666
Function
TestCodeMCDC_GetTypeTokenEndNotNegative
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:945 getType end == -1 Drive end == -1 to FALSE. tokenEnd returns -1 only when the data is e
mcdc_supplement_test.go:599
Function
TestCodeMCDC_LastTokenCarriageReturn
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:70
Function
TestCodeMCDC_LastTokenNewline
----------------------------------------------------------------------------- lastToken / tokenStart / tokenEnd — drive each whitespace branch. `lastT
mcdc_code_supplement_test.go:61
Function
TestCodeMCDC_LastTokenSpace
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:84
Function
TestCodeMCDC_LastTokenTab
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:77
Function
TestCodeMCDC_ObjectEachLoopEntry
Verifies: SYS-REQ-007 [boundary] Code MC/DC gap: parser.go:1138 ObjectEach offset < len(data) Normal ObjectEach iteration has offset < len(data) TRUE.
mcdc_supplement_test.go:721
Function
TestCodeMCDC_SearchKeysArrayKeyNotBracket
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:327 searchKeys keys[level][0] != '[' Drive keys[level][0] != '[' to TRUE independently. Use
mcdc_supplement_test.go:840
Function
TestCodeMCDC_SearchKeysArrayKeyValidation
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:325 searchKeys Drive keyLen >= 3 so the second and third terms of the disjunction (keys[lev
mcdc_supplement_test.go:524
Function
TestCodeMCDC_SearchKeysKeyLevelMatch
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:287 searchKeys keyLevel == level-1 Drive keyLevel == level-1 to TRUE. This happens during n
mcdc_supplement_test.go:552
Function
TestCodeMCDC_SearchKeysKeyLevelMismatch
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:289 searchKeys keyLevel == level-1 Drive keyLevel != level-1 (FALSE branch). Use duplicate
mcdc_supplement_test.go:821
Function
TestCodeMCDC_TokenEndDirect
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:45
Function
TestCodeMCDC_TokenEndTab
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:115
Function
TestCodeMCDC_TokenStartCarriageReturn
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:101
Function
TestCodeMCDC_TokenStartDirect
============================================================================= Code-level MC/DC supplement tests. =====================================
mcdc_code_supplement_test.go:24
Function
TestCodeMCDC_TokenStartNewline
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:92
Function
TestCodeMCDC_TokenStartTab
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:108
Function
TestCodeMCDC_UnescapeLoopEntry
Verifies: SYS-REQ-014 [boundary] Code MC/DC gap: escape.go:149 Unescape for len(in) > 0 Drive the loop body. A string with an escape sequence enters t
mcdc_supplement_test.go:698
Function
TestCompilePathGet
Verifies: SYS-REQ-001 (Get) Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-te
path_compiler_test.go:121
Function
TestCompilePathRoundTrip
Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-test subject SYS-REQ-114:nomin
path_compiler_test.go:170
Function
TestCompilePathSet
Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-te
path_compiler_test.go:149
Function
TestCompiledPathMethods
Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
path_compiler_test.go:205
Function
TestCompiledPathPartsReturnsCopy
Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
path_compiler_test.go:274
Function
TestConfigAllowUnknownEscapes
Verifies: SYS-REQ-115 (unknown escapes are emitted literally) SYS-REQ-115:encoding_safety:nominal reqproof:proptest:skip targeted witness/regression t
config_test.go:68
Function
TestConfigBackwardCompat
Verifies: SYS-REQ-115 (package-level API remains strict) SYS-REQ-115:malformed_input:nominal reqproof:proptest:skip targeted witness/regression test;
config_test.go:105
Function
TestConfigGet
Verifies: SYS-REQ-115 (lenient Config parsing) SYS-REQ-115:nominal:nominal reqproof:proptest:skip targeted witness/regression test; not a property-tes
config_test.go:12
Function
TestConfigGetString
Verifies: SYS-REQ-115 (single-quoted string decoding) SYS-REQ-115:nominal:nominal reqproof:proptest:skip targeted witness/regression test; not a prope
config_test.go:38
Function
TestConfigRoundTrip
Verifies: SYS-REQ-115 (Get/Set round trip) SYS-REQ-115:nominal:nominal reqproof:proptest:skip targeted witness/regression test; not a property-test su
config_test.go:118
Function
TestConfigSet
Verifies: SYS-REQ-115 (mutation of lenient input) SYS-REQ-115:nominal:nominal reqproof:proptest:skip targeted witness/regression test; not a property-
config_test.go:53
Function
TestConfigStrictStillWorks
Verifies: SYS-REQ-115 (zero-value Config remains strict) SYS-REQ-115:malformed_input:nominal reqproof:proptest:skip targeted witness/regression test;
config_test.go:92
Function
TestConfigTraversalAndDelete
Verifies: SYS-REQ-115 (lenient traversal and deletion) SYS-REQ-115:nominal:nominal reqproof:proptest:skip targeted witness/regression test; not a prop
config_test.go:144
Function
TestCreateInsertComponentUsesCalculatedCapacity
Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:143
Function
TestDecodeSingleUnicodeEscape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:76
Function
TestDecodeUnicodeEscape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:93
Function
TestDelete
Verifies: SYS-REQ-010 [example] STK-REQ-005:AC-2:acceptance MCDC SYS-REQ-010: delete_path_is_provided=F, delete_returns_empty_document_without_path=T
parser_test.go:1357
Function
TestDeleteDoesNotAliasInputBackingArray
Verifies: SYS-REQ-010 [regression, issues #209 and #141]
v131_regression_test.go:74
Function
TestDeleteEmptyKeyPathComponent
============================================================================= Delete — empty key component leaves the payload unchanged, no panic (SYS
empty_key_path_test.go:219
Function
TestDeleteErrorPropagation
Verifies: SYS-REQ-049 [malformed] Delete where internalGet returns an error shall return original input unchanged.
deep_spec_test.go:230
Function
TestDeleteFound
Verifies: SYS-REQ-010 (Delete) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:12
← previous
next →
401–500 of 1,168, ranked by callers