MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,179 in github.com/buger/jsonparser

FunctionTestOracleGetRoundTrip
--------------------------------------------------------------------------- Property 1: Get round-trip — jsonparser.Get matches encoding/json. -------
reference_oracle_test.go:454
FunctionTestOracleParseBoolean
reqproof:proptest ParseBoolean Verifies: SYS-REQ-012 [property]
reference_oracle_test.go:883
FunctionTestOracleParseFloat
reqproof:proptest ParseFloat Verifies: SYS-REQ-013 [property]
reference_oracle_test.go:821
FunctionTestOracleParseInt
--------------------------------------------------------------------------- Property 4: ParseInt / ParseFloat / ParseBoolean agree with strconv. -----
reference_oracle_test.go:763
FunctionTestOracleSetPr286Regression
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
FunctionTestOracleSetRoundTrip
reqproof:proptest parser.Set Verifies: SYS-REQ-009 [property]
reference_oracle_test.go:510
FunctionTestPanickingErrors
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
FunctionTestParseBoolean
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
FunctionTestParseBooleanEmpty
============================================================================= ParseBoolean empty (SYS-REQ-066) =======================================
deep_spec_test.go:573
FunctionTestParseBooleanPartialLiterals
============================================================================= ParseBoolean partial literals (SYS-REQ-057) ============================
deep_spec_test.go:491
FunctionTestParseFloat
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
FunctionTestParseFloatEmpty
============================================================================= ParseFloat empty (SYS-REQ-065) =========================================
deep_spec_test.go:560
FunctionTestParseHelperDeterminism
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
FunctionTestParseHelperNilSafety
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
FunctionTestParseInt
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
FunctionTestParseIntBoundaryValues
============================================================================= ParseInt boundary values (SYS-REQ-058, SYS-REQ-059, SYS-REQ-064) =======
deep_spec_test.go:509
FunctionTestParseIntEdgeCaseNumbers
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
FunctionTestParseIntEmpty
Verifies: SYS-REQ-064 [boundary] ParseInt on empty input shall return MalformedValueError.
deep_spec_test.go:547
FunctionTestParseIntOverflowBoundary
Verifies: SYS-REQ-059 [boundary] ParseInt one beyond int64 range shall return OverflowIntegerError.
deep_spec_test.go:531
FunctionTestParseIntSignOnly_KI2
Verifies: SYS-REQ-015
parser_test.go:2448
FunctionTestParsePath
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
FunctionTestParsePathErrors
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
FunctionTestParseString
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
FunctionTestParseStringAndEscapeSupplementalCoverage
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
mcdc_supplement_test.go:368
FunctionTestParseStringEmpty
============================================================================= ParseString empty and escape edge cases (SYS-REQ-067, SYS-REQ-060, SYS-R
deep_spec_test.go:586
FunctionTestParseStringEncodingSafetyRoundtrip
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
FunctionTestParseStringLoneSurrogateMatchesEncodingJSON
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
FunctionTestPropertyArrayEachCompleteness
--------------------------------------------------------------------------- Property: ArrayEach visits every element exactly once --------------------
property_test.go:347
FunctionTestPropertyBlockStringEndBalanced
--------------------------------------------------------------------------- Property: blockEnd / stringEnd never panic on arbitrary bytes ------------
property_test.go:765
FunctionTestPropertyBufferOpsPure
--------------------------------------------------------------------------- Property: WriteToBuffer / calcAllocateSpace / createInsertComponent are pu
property_test.go:847
FunctionTestPropertyConcurrentReadsSafe
--------------------------------------------------------------------------- Property: thread-safety — concurrent reads are panic-free and deterministi
property_test.go:1062
FunctionTestPropertyDeleteIdempotent
--------------------------------------------------------------------------- Property: Delete is idempotent (Delete twice == Delete once) -------------
property_test.go:561
FunctionTestPropertyEachKeyDispatch
--------------------------------------------------------------------------- Property: EachKey dispatches to matching paths without panic -------------
property_test.go:407
FunctionTestPropertyFindKeyStartDeterminism
--------------------------------------------------------------------------- Property: findKeyStart is deterministic on arbitrary bytes ---------------
property_test.go:618
FunctionTestPropertyFuzzHarnessesNoCrash
--------------------------------------------------------------------------- Property: all fuzz harnesses from fuzz.go never panic on arbitrary bytes -
property_test.go:938
FunctionTestPropertyGetRoundTrip
--------------------------------------------------------------------------- Property: Get round-trips on encoding/json-marshaled scalars -------------
property_test.go:171
FunctionTestPropertyGetTypeClassification
--------------------------------------------------------------------------- Property: getType classifies JSON values consistently with encoding/json -
property_test.go:707
FunctionTestPropertyInternalGetConsistentWithGet
--------------------------------------------------------------------------- Property: internalGet agrees with Get (Get is a thin projection) ---------
property_test.go:822
FunctionTestPropertyNoPanicOnArbitraryBytes
--------------------------------------------------------------------------- Property: every public surface is panic-free on random bytes (universal) -
property_test.go:1014
FunctionTestPropertyObjectEachCompleteness
--------------------------------------------------------------------------- Property: ObjectEach visits every key-value pair exactly once ------------
property_test.go:380
FunctionTestPropertyParseReferenceOracle
--------------------------------------------------------------------------- Property: ParseInt/ParseFloat/ParseBoolean agree with strconv reference --
property_test.go:261
FunctionTestPropertySameTreeEquivalence
--------------------------------------------------------------------------- Property: sameTree is reflexive and symmetric ----------------------------
property_test.go:803
FunctionTestPropertySearchKeysDeterminism
--------------------------------------------------------------------------- Property: searchKeys is deterministic and bounded on arbitrary bytes -----
property_test.go:594
FunctionTestPropertySetRoundTrip
--------------------------------------------------------------------------- Property: Set then Get returns the set value (round-trip) ----------------
property_test.go:529
FunctionTestPropertyTokenHelpersNoCrash
--------------------------------------------------------------------------- Property: token-boundary helpers are deterministic and never panic -------
property_test.go:638
FunctionTestPropertyTypedAccessorsRoundTrip
--------------------------------------------------------------------------- Property: typed accessors agree with encoding/json on typed leaves -------
property_test.go:211
FunctionTestPropertyValueTypeStringer
--------------------------------------------------------------------------- Property: ValueType.String round-trips for all enumerated tags -----------
property_test.go:903
FunctionTestReaderParserArrayEach
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
FunctionTestReaderParserChunkBoundary
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
FunctionTestReaderParserConfig
Verifies: SYS-REQ-116 (config-aware streaming) SYS-REQ-116:nominal:nominal reqproof:proptest:skip targeted config witness
reader_parser_test.go:200
FunctionTestReaderParserEmpty
Verifies: SYS-REQ-116 (empty input) SYS-REQ-116:empty_input:nominal reqproof:proptest:skip targeted empty-stream witness
reader_parser_test.go:222
FunctionTestReaderParserGet
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
FunctionTestReaderParserGetString
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
FunctionTestReaderParserLargeFile
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
FunctionTestReaderParserMalformed
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
FunctionTestRemoval1_ArrayEach_LoopExitsOnEmptyArray
============================================================================= REMOVAL 1: `for true` → `for {}` in ArrayEach, Unescape, ObjectEach Thes
dead_code_audit_test.go:15
FunctionTestRemoval1_ArrayEach_LoopExitsOnSingleElement
Verifies: SYS-REQ-006 [boundary]
dead_code_audit_test.go:25
FunctionTestRemoval1_ObjectEach_LoopExitsOnEmptyObject
Verifies: SYS-REQ-007 [boundary]
dead_code_audit_test.go:61
FunctionTestRemoval1_ObjectEach_LoopExitsOnSingleEntry
Verifies: SYS-REQ-007 [boundary]
dead_code_audit_test.go:72
FunctionTestRemoval1_Unescape_ConsecutiveEscapes
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:778
FunctionTestRemoval1_Unescape_EscapedQuote
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:789
FunctionTestRemoval1_Unescape_InvalidEscape
============================================================================= ADDITIONAL: Test that the Unescape loop change doesn't affect error hand
dead_code_audit_test.go:770
FunctionTestRemoval1_Unescape_LoopExitsOnSingleEscape
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:39
FunctionTestRemoval1_Unescape_LoopExitsOnTrailingEscape
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:50
FunctionTestRemoval2_GetType_BooleanAtEndOfInput
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:153
FunctionTestRemoval2_GetType_NullAtEndOfInput
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:167
FunctionTestRemoval2_GetType_NumberAtEndOfInput
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:131
FunctionTestRemoval2_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
FunctionTestRemoval2_TokenEnd_EmptyInput
============================================================================= REMOVAL 2: `end == -1` guard removed in getType tokenEnd returns len(dat
dead_code_audit_test.go:92
FunctionTestRemoval2_TokenEnd_NeverReturnsNegative
Verifies: SYS-REQ-044 [boundary]
dead_code_audit_test.go:109
FunctionTestRemoval2_TokenEnd_NoDelimiter
Verifies: SYS-REQ-044 [boundary]
dead_code_audit_test.go:100
FunctionTestRemoval3_DecodeSingleUnicodeEscape_MaxValue
============================================================================= REMOVAL 3: `r <= basicMultilingualPlaneOffset` removed in decodeUnicodeE
dead_code_audit_test.go:203
FunctionTestRemoval3_DecodeSingleUnicodeEscape_MinValue
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:219
FunctionTestRemoval3_DecodeUnicodeEscape_BMP_NonSurrogate
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:230
FunctionTestRemoval3_DecodeUnicodeEscape_HighSurrogateAlone
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:242
FunctionTestRemoval3_DecodeUnicodeEscape_ValidSurrogatePair
Verifies: SYS-REQ-014 [boundary]
dead_code_audit_test.go:256
FunctionTestRemoval3_MathematicalProof
Verifies: SYS-REQ-014 [formal]
dead_code_audit_test.go:268
FunctionTestRemoval4_EachKey_NestedObjectWithString
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:373
FunctionTestRemoval4_EachKey_SkipDeeplyNestedObject
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:313
FunctionTestRemoval4_EachKey_SkipMultipleNestedObjects
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:353
FunctionTestRemoval4_EachKey_SkipNestedArray
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:333
FunctionTestRemoval4_EachKey_SkipNestedObject
============================================================================= REMOVAL 4: `data[i] == '{'` block removed in EachKey Test: unmatched key
dead_code_audit_test.go:288
FunctionTestRemoval4_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
FunctionTestRemoval4_EachKey_TracePath
============================================================================= CRITICAL PATH: Verify EachKey correctly handles the removed block-skip b
dead_code_audit_test.go:676
FunctionTestRemoval5_SearchKeys_ArrayIndex_MalformedNoClose
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:411
FunctionTestRemoval5_SearchKeys_ArrayIndex_NestedObject
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:431
FunctionTestRemoval5_SearchKeys_ArrayIndex_TooShort
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:421
FunctionTestRemoval5_SearchKeys_ArrayIndex_Valid
============================================================================= REMOVAL 5: `keys[level][0] != '['` removed in searchKeys The original co
dead_code_audit_test.go:401
FunctionTestRemoval6_ArrayEach_EmptyStringElement
Verifies: SYS-REQ-006 [boundary]
dead_code_audit_test.go:492
FunctionTestRemoval6_ArrayEach_GetReturnsZeroOffset
============================================================================= REMOVAL 6: `if e != nil` inside `if o == 0` removed in ArrayEach Critica
dead_code_audit_test.go:445
FunctionTestRemoval6_ArrayEach_WhitespaceOnlyInput
Verifies: SYS-REQ-006 [boundary]
dead_code_audit_test.go:516
FunctionTestRemoval7_FindKeyStart_NextTokenGuaranteesNonEmpty
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:553
FunctionTestRemoval7_NextToken_EmptyInput
============================================================================= REMOVAL 7: `ln > 0` guard removed in findKeyStart Verify nextToken retur
dead_code_audit_test.go:537
FunctionTestRemoval7_NextToken_WhitespaceOnly
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:545
FunctionTestRemoval_ObjectEach_MalformedNoClosingBrace
Verifies: SYS-REQ-007 [boundary]
dead_code_audit_test.go:592
FunctionTestRemoval_ObjectEach_MalformedTrailingComma
============================================================================= EXTRA: ObjectEach `for offset < len(data)` → `for {}` Verify the loop ca
dead_code_audit_test.go:578
FunctionTestSet
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
FunctionTestSetArrayIndexUnderObjectMalformedJSON_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
FunctionTestSetAutoCoerce_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
FunctionTestSetBeyondLengthScalarArrayPreservesElements_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
← previousnext →1,001–1,100 of 1,179, ranked by callers