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
TestOracleGetRoundTrip
--------------------------------------------------------------------------- Property 1: Get round-trip — jsonparser.Get matches encoding/json. -------
reference_oracle_test.go:454
Function
TestOracleParseBoolean
reqproof:proptest ParseBoolean Verifies: SYS-REQ-012 [property]
reference_oracle_test.go:883
Function
TestOracleParseFloat
reqproof:proptest ParseFloat Verifies: SYS-REQ-013 [property]
reference_oracle_test.go:821
Function
TestOracleParseInt
--------------------------------------------------------------------------- Property 4: ParseInt / ParseFloat / ParseBoolean agree with strconv. -----
reference_oracle_test.go:763
Function
TestOracleSetPr286Regression
TestOracleSetPr286Regression is the explicit regression case for PR #286. The bug: Set([1,2], 9, "[5]") silently produced [9] (data loss). Correct beh
reference_oracle_test.go:621
Function
TestOracleSetRoundTrip
reqproof:proptest parser.Set Verifies: SYS-REQ-009 [property]
reference_oracle_test.go:510
Function
TestPanickingErrors
Verifies: SYS-REQ-001 [malformed] MCDC SYS-REQ-001: N/A Verifies: SYS-REQ-008 [malformed] MCDC SYS-REQ-008: eachkey_callback_receives_found_values=F,
parser_error_test.go:30
Function
TestParseBoolean
Verifies: SYS-REQ-036 [example] MCDC SYS-REQ-036: raw_boolean_literal_is_valid=F, returns_parseboolean_error=T => TRUE Verifies: SYS-REQ-012 [example]
parser_test.go:2223
Function
TestParseBooleanEmpty
============================================================================= ParseBoolean empty (SYS-REQ-066) =======================================
deep_spec_test.go:573
Function
TestParseBooleanPartialLiterals
============================================================================= ParseBoolean partial literals (SYS-REQ-057) ============================
deep_spec_test.go:491
Function
TestParseFloat
Verifies: SYS-REQ-037 [example] MCDC SYS-REQ-037: raw_float_token_is_well_formed=F, returns_parsefloat_error=T => TRUE Verifies: SYS-REQ-013 [example]
parser_test.go:2242
Function
TestParseFloatEmpty
============================================================================= ParseFloat empty (SYS-REQ-065) =========================================
deep_spec_test.go:560
Function
TestParseHelperDeterminism
Verifies: SYS-REQ-106 MCDC SYS-REQ-106: parse_helper_called_twice_with_same_input=T, parse_helper_returns_identical_results=T => TRUE
obligation_property_test.go:197
Function
TestParseHelperNilSafety
Verifies: SYS-REQ-107 MCDC SYS-REQ-107: parse_helper_input_is_nil=T, parse_helper_returns_safe_result_for_nil=T => TRUE
obligation_property_test.go:441
Function
TestParseInt
Verifies: SYS-REQ-040 [example] MCDC SYS-REQ-040: raw_int_token_is_well_formed=F, raw_int_token_overflows_int64=F, returns_parseint_malformed_error=T
parser_test.go:2369
Function
TestParseIntBoundaryValues
============================================================================= ParseInt boundary values (SYS-REQ-058, SYS-REQ-059, SYS-REQ-064) =======
deep_spec_test.go:509
Function
TestParseIntEdgeCaseNumbers
Verifies: SYS-REQ-109 MCDC SYS-REQ-109: parseint_input_has_edge_case_number=T, parseint_handles_edge_numbers_safely=T => TRUE
obligation_property_test.go:833
Function
TestParseIntEmpty
Verifies: SYS-REQ-064 [boundary] ParseInt on empty input shall return MalformedValueError.
deep_spec_test.go:547
Function
TestParseIntOverflowBoundary
Verifies: SYS-REQ-059 [boundary] ParseInt one beyond int64 range shall return OverflowIntegerError.
deep_spec_test.go:531
Function
TestParseIntSignOnly_KI2
Verifies: SYS-REQ-015
parser_test.go:2448
Function
TestParsePath
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:13
Function
TestParsePathErrors
Verifies: SYS-REQ-114 (JSONPath compiled paths) reqproof:proptest:skip targeted witness/regression test; not a property-test subject SYS-REQ-114:bound
path_compiler_test.go:88
Function
TestParseString
Verifies: SYS-REQ-038 [example] MCDC SYS-REQ-038: raw_string_literal_is_well_formed=F, returns_parsestring_error=T => TRUE Verifies: SYS-REQ-014 [exam
parser_test.go:2348
Function
TestParseStringAndEscapeSupplementalCoverage
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
mcdc_supplement_test.go:368
Function
TestParseStringEmpty
============================================================================= ParseString empty and escape edge cases (SYS-REQ-067, SYS-REQ-060, SYS-R
deep_spec_test.go:586
Function
TestParseStringEncodingSafetyRoundtrip
Verifies: SYS-REQ-108 MCDC SYS-REQ-108: parsestring_input_has_standard_escapes=T, parsestring_roundtrip_preserves_semantics=T => TRUE
obligation_property_test.go:509
Function
TestParseStringLoneSurrogateMatchesEncodingJSON
Verifies: SYS-REQ-014 [differential] — for a corpus of lone-surrogate inputs, ParseString must byte-match encoding/json.Unmarshal (the oracle exercise
escape_test.go:294
Function
TestPropertyArrayEachCompleteness
--------------------------------------------------------------------------- Property: ArrayEach visits every element exactly once --------------------
property_test.go:347
Function
TestPropertyBlockStringEndBalanced
--------------------------------------------------------------------------- Property: blockEnd / stringEnd never panic on arbitrary bytes ------------
property_test.go:765
Function
TestPropertyBufferOpsPure
--------------------------------------------------------------------------- Property: WriteToBuffer / calcAllocateSpace / createInsertComponent are pu
property_test.go:847
Function
TestPropertyConcurrentReadsSafe
--------------------------------------------------------------------------- Property: thread-safety — concurrent reads are panic-free and deterministi
property_test.go:1062
Function
TestPropertyDeleteIdempotent
--------------------------------------------------------------------------- Property: Delete is idempotent (Delete twice == Delete once) -------------
property_test.go:561
Function
TestPropertyEachKeyDispatch
--------------------------------------------------------------------------- Property: EachKey dispatches to matching paths without panic -------------
property_test.go:407
Function
TestPropertyFindKeyStartDeterminism
--------------------------------------------------------------------------- Property: findKeyStart is deterministic on arbitrary bytes ---------------
property_test.go:618
Function
TestPropertyFuzzHarnessesNoCrash
--------------------------------------------------------------------------- Property: all fuzz harnesses from fuzz.go never panic on arbitrary bytes -
property_test.go:938
Function
TestPropertyGetRoundTrip
--------------------------------------------------------------------------- Property: Get round-trips on encoding/json-marshaled scalars -------------
property_test.go:171
Function
TestPropertyGetTypeClassification
--------------------------------------------------------------------------- Property: getType classifies JSON values consistently with encoding/json -
property_test.go:707
Function
TestPropertyInternalGetConsistentWithGet
--------------------------------------------------------------------------- Property: internalGet agrees with Get (Get is a thin projection) ---------
property_test.go:822
Function
TestPropertyNoPanicOnArbitraryBytes
--------------------------------------------------------------------------- Property: every public surface is panic-free on random bytes (universal) -
property_test.go:1014
Function
TestPropertyObjectEachCompleteness
--------------------------------------------------------------------------- Property: ObjectEach visits every key-value pair exactly once ------------
property_test.go:380
Function
TestPropertyParseReferenceOracle
--------------------------------------------------------------------------- Property: ParseInt/ParseFloat/ParseBoolean agree with strconv reference --
property_test.go:261
Function
TestPropertySameTreeEquivalence
--------------------------------------------------------------------------- Property: sameTree is reflexive and symmetric ----------------------------
property_test.go:803
Function
TestPropertySearchKeysDeterminism
--------------------------------------------------------------------------- Property: searchKeys is deterministic and bounded on arbitrary bytes -----
property_test.go:594
Function
TestPropertySetRoundTrip
--------------------------------------------------------------------------- Property: Set then Get returns the set value (round-trip) ----------------
property_test.go:529
Function
TestPropertyTokenHelpersNoCrash
--------------------------------------------------------------------------- Property: token-boundary helpers are deterministic and never panic -------
property_test.go:638
Function
TestPropertyTypedAccessorsRoundTrip
--------------------------------------------------------------------------- Property: typed accessors agree with encoding/json on typed leaves -------
property_test.go:211
Function
TestPropertyValueTypeStringer
--------------------------------------------------------------------------- Property: ValueType.String round-trips for all enumerated tags -----------
property_test.go:903
Function
TestReaderParserArrayEach
Verifies: SYS-REQ-116 (incremental array iteration) SYS-REQ-116:nominal:nominal reqproof:proptest:skip targeted streaming witness; not a property-test
reader_parser_test.go:96
Function
TestReaderParserChunkBoundary
Verifies: SYS-REQ-116 (tokens crossing read boundaries) SYS-REQ-116:boundary:nominal reqproof:proptest:skip targeted chunk-boundary witness
reader_parser_test.go:182
Function
TestReaderParserConfig
Verifies: SYS-REQ-116 (config-aware streaming) SYS-REQ-116:nominal:nominal reqproof:proptest:skip targeted config witness
reader_parser_test.go:200
Function
TestReaderParserEmpty
Verifies: SYS-REQ-116 (empty input) SYS-REQ-116:empty_input:nominal reqproof:proptest:skip targeted empty-stream witness
reader_parser_test.go:222
Function
TestReaderParserGet
Verifies: SYS-REQ-116 (incremental path lookup) SYS-REQ-116:nominal:nominal reqproof:proptest:skip targeted streaming witness; not a property-test sub
reader_parser_test.go:15
Function
TestReaderParserGetString
Verifies: SYS-REQ-116 (streaming string decoding) SYS-REQ-116:nominal:nominal reqproof:proptest:skip targeted streaming witness; not a property-test s
reader_parser_test.go:77
Function
TestReaderParserLargeFile
Verifies: SYS-REQ-116 (bounded window over a large stream) SYS-REQ-116:boundary:nominal reqproof:proptest:skip deterministic 100 MiB streaming boundar
reader_parser_test.go:138
Function
TestReaderParserMalformed
Verifies: SYS-REQ-116 (malformed and truncated streams) SYS-REQ-116:malformed_input:nominal reqproof:proptest:skip targeted malformed-stream witness
reader_parser_test.go:167
Function
TestRemoval1_ArrayEach_LoopExitsOnEmptyArray
============================================================================= REMOVAL 1: `for true` → `for {}` in ArrayEach, Unescape, ObjectEach Thes
dead_code_audit_test.go:15
Function
TestRemoval1_ArrayEach_LoopExitsOnSingleElement
Verifies: SYS-REQ-006 [boundary]
dead_code_audit_test.go:25
Function
TestRemoval1_ObjectEach_LoopExitsOnEmptyObject
Verifies: SYS-REQ-007 [boundary]
dead_code_audit_test.go:61
Function
TestRemoval1_ObjectEach_LoopExitsOnSingleEntry
Verifies: SYS-REQ-007 [boundary]
dead_code_audit_test.go:72
Function
TestRemoval1_Unescape_ConsecutiveEscapes
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:778
Function
TestRemoval1_Unescape_EscapedQuote
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:789
Function
TestRemoval1_Unescape_InvalidEscape
============================================================================= ADDITIONAL: Test that the Unescape loop change doesn't affect error hand
dead_code_audit_test.go:770
Function
TestRemoval1_Unescape_LoopExitsOnSingleEscape
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:39
Function
TestRemoval1_Unescape_LoopExitsOnTrailingEscape
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:50
Function
TestRemoval2_GetType_BooleanAtEndOfInput
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:153
Function
TestRemoval2_GetType_NullAtEndOfInput
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:167
Function
TestRemoval2_GetType_NumberAtEndOfInput
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:131
Function
TestRemoval2_Inconsistency_TruncatedNumber
Critical: tokenEnd returns len(data) vs stringEnd/blockEnd returning -1. The inconsistency means getType silently accepts truncated tokens. Verifies:
dead_code_audit_test.go:183
Function
TestRemoval2_TokenEnd_EmptyInput
============================================================================= REMOVAL 2: `end == -1` guard removed in getType tokenEnd returns len(dat
dead_code_audit_test.go:92
Function
TestRemoval2_TokenEnd_NeverReturnsNegative
Verifies: SYS-REQ-044 [boundary]
dead_code_audit_test.go:109
Function
TestRemoval2_TokenEnd_NoDelimiter
Verifies: SYS-REQ-044 [boundary]
dead_code_audit_test.go:100
Function
TestRemoval3_DecodeSingleUnicodeEscape_MaxValue
============================================================================= REMOVAL 3: `r <= basicMultilingualPlaneOffset` removed in decodeUnicodeE
dead_code_audit_test.go:203
Function
TestRemoval3_DecodeSingleUnicodeEscape_MinValue
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:219
Function
TestRemoval3_DecodeUnicodeEscape_BMP_NonSurrogate
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:230
Function
TestRemoval3_DecodeUnicodeEscape_HighSurrogateAlone
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:242
Function
TestRemoval3_DecodeUnicodeEscape_ValidSurrogatePair
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:256
Function
TestRemoval3_MathematicalProof
Verifies: SYS-REQ-014 [formal]
dead_code_audit_test.go:268
Function
TestRemoval4_EachKey_NestedObjectWithString
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:373
Function
TestRemoval4_EachKey_SkipDeeplyNestedObject
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:313
Function
TestRemoval4_EachKey_SkipMultipleNestedObjects
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:353
Function
TestRemoval4_EachKey_SkipNestedArray
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:333
Function
TestRemoval4_EachKey_SkipNestedObject
============================================================================= REMOVAL 4: `data[i] == '{'` block removed in EachKey Test: unmatched key
dead_code_audit_test.go:288
Function
TestRemoval4_EachKey_SkipVariousValueTypes
Test with value types that aren't objects — numbers, arrays, strings, bools Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:725
Function
TestRemoval4_EachKey_TracePath
============================================================================= CRITICAL PATH: Verify EachKey correctly handles the removed block-skip b
dead_code_audit_test.go:676
Function
TestRemoval5_SearchKeys_ArrayIndex_MalformedNoClose
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:411
Function
TestRemoval5_SearchKeys_ArrayIndex_NestedObject
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:431
Function
TestRemoval5_SearchKeys_ArrayIndex_TooShort
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:421
Function
TestRemoval5_SearchKeys_ArrayIndex_Valid
============================================================================= REMOVAL 5: `keys[level][0] != '['` removed in searchKeys The original co
dead_code_audit_test.go:401
Function
TestRemoval6_ArrayEach_EmptyStringElement
Verifies: SYS-REQ-006 [boundary]
dead_code_audit_test.go:492
Function
TestRemoval6_ArrayEach_GetReturnsZeroOffset
============================================================================= REMOVAL 6: `if e != nil` inside `if o == 0` removed in ArrayEach Critica
dead_code_audit_test.go:445
Function
TestRemoval6_ArrayEach_WhitespaceOnlyInput
Verifies: SYS-REQ-006 [boundary]
dead_code_audit_test.go:516
Function
TestRemoval7_FindKeyStart_NextTokenGuaranteesNonEmpty
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:553
Function
TestRemoval7_NextToken_EmptyInput
============================================================================= REMOVAL 7: `ln > 0` guard removed in findKeyStart Verify nextToken retur
dead_code_audit_test.go:537
Function
TestRemoval7_NextToken_WhitespaceOnly
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:545
Function
TestRemoval_ObjectEach_MalformedNoClosingBrace
Verifies: SYS-REQ-007 [boundary]
dead_code_audit_test.go:592
Function
TestRemoval_ObjectEach_MalformedTrailingComma
============================================================================= EXTRA: ObjectEach `for offset < len(data)` → `for {}` Verify the loop ca
dead_code_audit_test.go:578
Function
TestSet
Verifies: SYS-REQ-009 [example] STK-REQ-005:AC-1:acceptance SYS-REQ-009:malformed_input:nominal Nominal witness for SYS-REQ-009's malformed_input obli
set_spec_test.go:23
Function
TestSetArrayIndexUnderObjectMalformedJSON_KI3
TestSetArrayIndexUnderObjectMalformedJSON_KI3 is the class witness for the failure mode tracked as KnownIssue KI-3 / DEFECT-260726-MFPA. Historically,
set_spec_test.go:81
Function
TestSetAutoCoerce_KI3
TestSetAutoCoerce_KI3 locks the auto-coerce semantics that fix KI-3. When a path component expects one container type but the existing structure is th
set_spec_test.go:118
Function
TestSetBeyondLengthScalarArrayPreservesElements_SYS110
Verifies: SYS-REQ-110 [boundary] SYS-REQ-110:boundary:negative SYS-REQ-110:element_type_partition:nominal Positive/nominal witness for the element_typ
parser_test.go:2493
← previous
next →
1,001–1,100 of 1,179, ranked by callers