Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,095 in github.com/buger/jsonparser
⨍
Functions
1,095
◇
Types & classes
38
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
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:1358
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
Function
TestDeleteMalformedJSONRegression_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
Function
TestDeleteNoPath
============================================================================= Delete no-path edge case ===============================================
deep_spec_test.go:1126
Function
TestDeleteSupplementalEdgeCases
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
Function
TestDeleteTruncatedArrayInput
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
Function
TestDeleteTruncatedAtValueBoundary
============================================================================= Delete truncation tests (SYS-REQ-048, SYS-REQ-049, SYS-REQ-050, SYS-REQ-
deep_spec_test.go:200
Function
TestDeleteTruncatedMidStructure
Verifies: SYS-REQ-056 [malformed] Delete on mid-structure truncation shall return original input and not panic.
deep_spec_test.go:289
Function
TestDoSPerformance
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
Function
TestEachKey
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
Function
TestEachKeyArray
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
Function
TestEachKeyDescendsIntoArrayIndexAtEndOfPath
Verifies: SYS-REQ-008 [regression, issue #232]
v131_regression_test.go:103
Function
TestEachKeyEmptyKeyPathComponent
============================================================================= EachKey — empty key component emits no callback (SYS-REQ-008) ==========
empty_key_path_test.go:138
Function
TestEachKeyErr
Verifies: SYS-REQ-008 (EachKey) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
array_each_err_test.go:134
Function
TestEachKeyMultiPathInvariants
TestEachKeyMultiPathInvariants closes the EachKey multi-path blind spot deterministically. EachKey's purpose is to resolve MULTIPLE key paths in one t
path_fuzz_test.go:780
Function
TestEachKeyNoRequests
Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: eachkey_callback_receives_found_values=F, eachkey_completes_requested_scan=F, eachkey_malformed_inp
parser_error_test.go:50
Function
TestEachKeyPathBeyondStackCapacity
Verifies: SYS-REQ-008 (EachKey) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:97
Function
TestEachKeyPathWith100Components
Verifies: SYS-REQ-008 (EachKey) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:91
Function
TestEachKeySentinelHandling
============================================================================= EachKey sentinel handling (SYS-REQ-085) ================================
deep_spec_test.go:907
Function
TestEachKeySupplementalCoverage
Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
mcdc_supplement_test.go:112
Function
TestEachKeyWildcard
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:15
Function
TestEncodingJSONBenchmarkPayloadTypesUseReflection
Verifies: STK-REQ-001 [regression, issue #126]
benchmark/encoding_json_regression_test.go:9
Function
TestEncodingJSONCorpusSanity
============================================================================= Non-fuzz regression test (runs under plain `go test`) ==================
encoding_json_fuzz_test.go:714
Function
TestEqual
Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:34
Function
TestEscape
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:341
Function
TestEscapeControlChars
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:379
Function
TestEscapeEmptyString
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:434
Function
TestEscapeUnicode
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:416
Function
TestFuzzDeleteHarnessCoverage
Verifies: SYS-REQ-010 [fuzz] MCDC SYS-REQ-010: delete_path_is_provided=T, delete_returns_empty_document_without_path=F => TRUE
coverage_closure_test.go:51
Function
TestFuzzEachKeyHarnessCoverage
============================================================================= Coverage closure tests for fuzz harness functions ======================
coverage_closure_test.go:18
Function
TestFuzzObjectEachHarnessCoverage
Verifies: SYS-REQ-007 [fuzz] MCDC SYS-REQ-007: N/A
coverage_closure_test.go:74
Function
TestFuzzParseFloatHarnessCoverage
Verifies: SYS-REQ-013 [fuzz] MCDC SYS-REQ-013: N/A
parser_test.go:2257
Function
TestFuzzParseStringHarnessCoverage
Verifies: SYS-REQ-014 [fuzz] MCDC SYS-REQ-014: N/A
mcdc_supplement_test.go:387
Function
TestFuzzPathMutationSeedsClean
TestFuzzPathMutationSeedsClean is a regression gate that runs every seed corpus entry through FuzzPathMutation's body once. It catches seed-shape regr
path_fuzz_test.go:278
Function
TestFuzzSetHarnessCoverage
Verifies: SYS-REQ-009 [fuzz] MCDC SYS-REQ-009: N/A
set_spec_test.go:56
Function
TestGet
Verifies: SYS-REQ-001 [example] STK-REQ-001:AC-1:acceptance MCDC SYS-REQ-001: addressed_path_exists=F, json_input_is_well_formed=T, key_path_is_provid
parser_test.go:1378
Function
TestGetArrayIndexInBounds
Verifies: SYS-REQ-021 [boundary] Valid in-bounds array index returns correct element.
deep_spec_test.go:1036
Function
TestGetArrayIndexOutOfBounds
Verifies: SYS-REQ-023 [boundary] Out-of-bounds array index returns not-found.
deep_spec_test.go:1059
Function
TestGetArrayLen
Verifies: SYS-REQ-112 (container length accessor). reqproof:proptest:skip targeted witness/regression test; not a property-test subject SYS-REQ-112:no
len_uint_test.go:14
Function
TestGetArrayLenRoundTrip
Verifies: SYS-REQ-112 (container length accessor). reqproof:proptest:skip targeted witness/regression test; not a property-test subject
len_uint_test.go:253
Function
TestGetBestEffortMalformed
Verifies: SYS-REQ-026 [malformed] Malformed input outside addressed path allows best-effort result.
deep_spec_test.go:1098
Function
TestGetBoolean
Verifies: SYS-REQ-005 [example] STK-REQ-003:AC-3:acceptance MCDC SYS-REQ-005: addressed_value_is_boolean=F, raw_boolean_token_is_well_formed=T, return
parser_test.go:1602
Function
TestGetBooleanPartialLiteral
============================================================================= GetBoolean partial literal (SYS-REQ-079) ===============================
deep_spec_test.go:783
Function
TestGetDeepNesting
============================================================================= Edge case tests ========================================================
obligation_property_test.go:558
Function
TestGetDeterminism
============================================================================= Determinism tests ======================================================
obligation_property_test.go:19
Function
TestGetEmptyInputWithPath
Verifies: SYS-REQ-019 [boundary] Empty input with key path returns KeyPathNotFoundError.
deep_spec_test.go:1012
Function
TestGetEmptyKeyPathComponent
============================================================================= Get family — empty key component resolves to KeyPathNotFoundError (SYS-R
empty_key_path_test.go:40
Function
TestGetEscapedKey
Verifies: SYS-REQ-024 [boundary] Escaped key in payload matches decoded path segment.
deep_spec_test.go:1069
Function
TestGetFloat
Verifies: SYS-REQ-004 [example] STK-REQ-003:AC-2:acceptance MCDC SYS-REQ-004: addressed_value_is_number=F, raw_number_token_is_float_parseable=T, retu
parser_test.go:1583
Function
TestGetIdempotencyInputNotMutated
============================================================================= Idempotency tests ======================================================
obligation_property_test.go:233
Function
TestGetInt
Verifies: SYS-REQ-003 [example] STK-REQ-003:AC-1:acceptance MCDC SYS-REQ-003: addressed_value_is_number=F, raw_number_token_is_integer_parseable=T, re
parser_test.go:1564
Function
TestGetIntEmptyInput
Verifies: SYS-REQ-078 [boundary] GetInt on empty input shall return error.
deep_spec_test.go:770
Function
TestGetIntLargeNumberEdgeCases
Verifies: SYS-REQ-096 MCDC SYS-REQ-096: getint_input_has_large_number_edge_case=T, getint_handles_large_numbers_safely=T => TRUE
obligation_property_test.go:650
Function
TestGetIntMalformedInput
============================================================================= GetInt edge cases (SYS-REQ-075, SYS-REQ-076, SYS-REQ-077, SYS-REQ-078) =
deep_spec_test.go:728
Function
TestGetIntOverflow
Verifies: SYS-REQ-076 [boundary] GetInt on overflow value shall return overflow error.
deep_spec_test.go:737
Function
TestGetIntTypeMismatch
Verifies: SYS-REQ-077 [boundary] GetInt on non-number value shall return type-mismatch error.
deep_spec_test.go:746
Function
TestGetMalformedArrayIndex
Verifies: SYS-REQ-022 [boundary] Malformed array index returns not-found.
deep_spec_test.go:1049
Function
TestGetNilSafety
============================================================================= Nil safety tests =======================================================
obligation_property_test.go:280
Function
TestGetNoKeyPathReturnsRoot
Verifies: SYS-REQ-018 [boundary] No key path returns root value.
deep_spec_test.go:996
← previous
next →
401–500 of 1,095, ranked by callers