MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,168 in github.com/buger/jsonparser

FunctionFuzzPathMutation
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
FunctionFuzzSequence
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
FunctionFuzzSetNative
Verifies: SYS-REQ-009
fuzz_native_test.go:137
FunctionFuzzTokenStartNative
Verifies: SYS-REQ-001
fuzz_native_test.go:177
MethodGet
Get resolves the compiled path in data. Verifies: SYS-REQ-001 (Get) SYS-REQ-114
path_compiler.go:178
MethodGetString
GetString resolves the compiled path and returns its string value. SYS-REQ-114
path_compiler.go:184
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:95
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:178
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:232
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:366
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:458
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:504
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:550
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:625
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:671
MethodMarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:781
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:16
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:209
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:406
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:671
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:864
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1191
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1437
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1751
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1944
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2271
MethodMarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2603
MethodRead
(p []byte)
reader_parser_test.go:234
MethodSet
Set writes value at the compiled path. Verifies: SYS-REQ-009 (Set) SYS-REQ-114
path_compiler.go:197
FunctionStringToBytes
(s string)
bytes_unsafe.go:36
FunctionTestAdditionalFuzzHarnessCoverage
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
FunctionTestApiConsistencyEachKeyMatchesGet
Verifies: SYS-REQ-008 reqproof:proptest parser.EachKey, parser.Get
property_test.go:470
FunctionTestArrayEach
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
FunctionTestArrayEachCallbackErrorNotSwallowed
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
FunctionTestArrayEachCallbackReceivesElementError
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
FunctionTestArrayEachEmpty
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
FunctionTestArrayEachErr
Verifies: SYS-REQ-004 (ArrayEach) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
array_each_err_test.go:12
FunctionTestArrayEachErrorPropagation
============================================================================= ArrayEach error propagation and truncation (SYS-REQ-052, SYS-REQ-053, SY
deep_spec_test.go:394
FunctionTestArrayEachMalformedDelimiter
Verifies: SYS-REQ-055 [malformed] ArrayEach with malformed delimiter between elements shall return MalformedArrayError.
deep_spec_test.go:432
FunctionTestArrayEachNonArrayRootNoCallback_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
FunctionTestArrayEachSupplementalErrors
Verifies: SYS-REQ-006 [malformed] MCDC SYS-REQ-006: N/A
mcdc_supplement_test.go:241
FunctionTestArrayEachTruncatedAtValueBoundary
============================================================================= ArrayEach truncated at value boundary (SYS-REQ-083) ====================
deep_spec_test.go:840
FunctionTestArrayEachTruncatedMidElement
Verifies: SYS-REQ-053 [malformed] ArrayEach on truncated mid-element shall return error, not panic.
deep_spec_test.go:404
FunctionTestArrayEachWildcard
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
FunctionTestArrayEachWithWhiteSpace
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
FunctionTestArrayEach_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
FunctionTestArrayOutOfBounds
Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:194
FunctionTestBackslashAtEnd
Verifies: SYS-REQ-063 [malformed] Backslash at end of string shall return MalformedValueError.
deep_spec_test.go:659
FunctionTestBlockEndSentinel
Verifies: SYS-REQ-046 [boundary] blockEnd returns -1 when no matching closing bracket/brace found.
deep_spec_test.go:159
FunctionTestBytesParseInt
Verifies: SYS-REQ-015 [boundary] MCDC SYS-REQ-015: N/A
bytes_test.go:109
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_CalcAllocateSpaceEmptyKey
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:140
FunctionTestCodeMCDC_CreateInsertComponentEmptyKey
----------------------------------------------------------------------------- createInsertComponent / calcAllocateSpace — direct call to drive the `le
mcdc_code_supplement_test.go:129
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_DeleteConjunctionFullMCDC
============================================================================= Code MC/DC gap closure tests — round 2 (100% target) ===================
mcdc_supplement_test.go:780
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_DeleteTrailingCommaRemoval
============================================================================= Code MC/DC gap closure tests ===========================================
mcdc_supplement_test.go:499
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_LastTokenCarriageReturn
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:70
FunctionTestCodeMCDC_LastTokenNewline
----------------------------------------------------------------------------- lastToken / tokenStart / tokenEnd — drive each whitespace branch. `lastT
mcdc_code_supplement_test.go:61
FunctionTestCodeMCDC_LastTokenSpace
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:84
FunctionTestCodeMCDC_LastTokenTab
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:77
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_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
FunctionTestCodeMCDC_TokenEndDirect
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:45
FunctionTestCodeMCDC_TokenEndTab
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:115
FunctionTestCodeMCDC_TokenStartCarriageReturn
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:101
FunctionTestCodeMCDC_TokenStartDirect
============================================================================= Code-level MC/DC supplement tests. =====================================
mcdc_code_supplement_test.go:24
FunctionTestCodeMCDC_TokenStartNewline
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:92
FunctionTestCodeMCDC_TokenStartTab
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:108
FunctionTestCodeMCDC_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
FunctionTestCompilePathGet
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
FunctionTestCompilePathRoundTrip
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
FunctionTestCompilePathSet
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
FunctionTestCompiledPathMethods
Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
path_compiler_test.go:205
FunctionTestCompiledPathPartsReturnsCopy
Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
path_compiler_test.go:274
FunctionTestConfigAllowUnknownEscapes
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
FunctionTestConfigBackwardCompat
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
FunctionTestConfigGet
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
FunctionTestConfigGetString
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
FunctionTestConfigRoundTrip
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
FunctionTestConfigSet
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
FunctionTestConfigStrictStillWorks
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
FunctionTestConfigTraversalAndDelete
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
FunctionTestCreateInsertComponentUsesCalculatedCapacity
Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:143
FunctionTestDecodeSingleUnicodeEscape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:76
FunctionTestDecodeUnicodeEscape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:93
FunctionTestDelete
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
FunctionTestDeleteDoesNotAliasInputBackingArray
Verifies: SYS-REQ-010 [regression, issues #209 and #141]
v131_regression_test.go:74
FunctionTestDeleteEmptyKeyPathComponent
============================================================================= Delete — empty key component leaves the payload unchanged, no panic (SYS
empty_key_path_test.go:219
FunctionTestDeleteErrorPropagation
Verifies: SYS-REQ-049 [malformed] Delete where internalGet returns an error shall return original input unchanged.
deep_spec_test.go:230
FunctionTestDeleteFound
Verifies: SYS-REQ-010 (Delete) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:12
← previousnext →401–500 of 1,168, ranked by callers