MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,014 in github.com/buger/jsonparser

FunctionFuzzDeleteNative
Verifies: SYS-REQ-035
fuzz_native_test.go:113
FunctionFuzzEachKeyNative
Verifies: SYS-REQ-008
fuzz_native_test.go:129
FunctionFuzzEncodingJSON
============================================================================= The fuzzer (testing.F, native go-fuzz) =================================
encoding_json_fuzz_test.go:653
FunctionFuzzGetBooleanNative
Verifies: SYS-REQ-005
fuzz_native_test.go:209
FunctionFuzzGetFloatNative
Verifies: SYS-REQ-004
fuzz_native_test.go:193
FunctionFuzzGetIntNative
Verifies: SYS-REQ-003
fuzz_native_test.go:201
FunctionFuzzGetStringNative
Verifies: SYS-REQ-002
fuzz_native_test.go:185
FunctionFuzzGetUnsafeStringNative
Verifies: SYS-REQ-011
fuzz_native_test.go:217
FunctionFuzzJSONStructureAware
FuzzJSONStructureAware is the structure-aware fuzzer. It combines: - Grammar-based JSON generation (always emits valid structures). - JSON-aware mutat
json_fuzz_test.go:1509
FunctionFuzzObjectEachNative
Verifies: SYS-REQ-007
fuzz_native_test.go:145
FunctionFuzzParseBoolNative
Verifies: SYS-REQ-012
fuzz_native_test.go:169
FunctionFuzzParseFloatNative
Verifies: SYS-REQ-013
fuzz_native_test.go:153
FunctionFuzzParseIntNative
Verifies: SYS-REQ-015
fuzz_native_test.go:161
FunctionFuzzParseStringNative
Verifies: SYS-REQ-014
fuzz_native_test.go:121
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:541
FunctionFuzzSetNative
Verifies: SYS-REQ-009
fuzz_native_test.go:137
FunctionFuzzTokenStartNative
Verifies: SYS-REQ-001
fuzz_native_test.go:177
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
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
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:1634
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:1718
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:2539
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
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:1666
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
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:1358
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
FunctionTestDeleteMalformedJSONRegression_SYS_REQ_010
TestDeleteMalformedJSONRegression_SYS_REQ_010 is the Go-level witness for SYS-REQ-010's malformed_input obligation. The four FuzzPathMutation corpus s
set_spec_test.go:171
FunctionTestDeleteNoPath
============================================================================= Delete no-path edge case ===============================================
deep_spec_test.go:1126
FunctionTestDeleteSupplementalEdgeCases
Verifies: SYS-REQ-035 [boundary] MCDC SYS-REQ-035: delete_path_is_provided=T, delete_input_is_unusable_for_requested_path=T, delete_returns_original_i
mcdc_supplement_test.go:314
FunctionTestDeleteTruncatedArrayInput
Verifies: SYS-REQ-050 [malformed] Delete with array-element path on truncated array input shall return original input unchanged and shall not panic.
deep_spec_test.go:261
FunctionTestDeleteTruncatedAtValueBoundary
============================================================================= Delete truncation tests (SYS-REQ-048, SYS-REQ-049, SYS-REQ-050, SYS-REQ-
deep_spec_test.go:200
FunctionTestDeleteTruncatedMidStructure
Verifies: SYS-REQ-056 [malformed] Delete on mid-structure truncation shall return original input and not panic.
deep_spec_test.go:289
FunctionTestDoSPerformance
TestDoSPerformance is a non-fuzz regression gate that asserts the parser completes each major operation on a 1MB input within dosOpBudget. Catches O(n
json_fuzz_test.go:1644
FunctionTestEachKey
Verifies: SYS-REQ-008 [example] STK-REQ-004:AC-3:acceptance MCDC SYS-REQ-008: eachkey_callback_receives_found_values=F, eachkey_completes_requested_sc
parser_test.go:1997
FunctionTestEachKeyArray
check having a bunch of keys in a super deep array Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:149
← previousnext →301–400 of 1,014, ranked by callers