MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,179 in github.com/buger/jsonparser

FunctionTestSetCreatesMissingEntryInExistingArray
Verifies: SYS-REQ-009 [boundary] MCDC SYS-REQ-009: set_creates_missing_path=T, set_path_is_provided=T, set_returns_not_found_error=F, set_returns_upda
set_spec_test.go:38
FunctionTestSetDoesNotMutateInputBackingArrayWhenGrowing
Verifies: SYS-REQ-009 [regression, issues #209 and #141]
v131_regression_test.go:30
FunctionTestSetEmptyKeyPathComponent
============================================================================= Set — empty key component produces a defined document, no panic (SYS-REQ
empty_key_path_test.go:179
FunctionTestSetIdempotency
Verifies: SYS-REQ-100 MCDC SYS-REQ-100: set_applied_twice_with_same_args=T, set_second_call_produces_same_result=T => TRUE
obligation_property_test.go:252
FunctionTestSetNestedMutation
Verifies: SYS-REQ-069 [boundary] Set with multi-level path where intermediate levels exist but leaf does not.
deep_spec_test.go:363
FunctionTestSetNoPath
Verifies: SYS-REQ-070 [boundary] Set without any path shall return KeyPathNotFoundError.
deep_spec_test.go:381
FunctionTestSetPathBeyondEOF
Verifies: SYS-REQ-068 [boundary] Set with path pointing beyond EOF shall return error, not panic.
deep_spec_test.go:348
FunctionTestSetString
Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:443
FunctionTestSetStringRoundTrip
Verifies: SYS-REQ-002 (GetString) Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not
escape_test.go:460
FunctionTestSetStringSpecialChars
Verifies: SYS-REQ-002 (GetString) Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not
escape_test.go:480
FunctionTestSetSupplementalArrayInsertionCoverage
Verifies: SYS-REQ-009 [boundary] MCDC SYS-REQ-009: N/A
mcdc_supplement_test.go:339
FunctionTestSetTopLevelArrayAppend_KI4
Verifies: SYS-REQ-110
parser_test.go:2455
FunctionTestSetTruncatedInput
============================================================================= Set truncation and edge cases (SYS-REQ-051, SYS-REQ-068, SYS-REQ-069, SY
deep_spec_test.go:319
FunctionTestSetWildcard
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:153
FunctionTestStress_ArrayEach_NestedEmpty
============================================================================= STRESS: Ensure no infinite loops or panics on pathological inputs ======
dead_code_audit_test.go:610
FunctionTestStress_Delete_TokenEndBoundary
Verifies: SYS-REQ-010 [boundary]
dead_code_audit_test.go:642
FunctionTestStress_EachKey_LargeNestedSkip
Verifies: SYS-REQ-008 [boundary]
dead_code_audit_test.go:620
FunctionTestStress_Get_BareTruncatedValue
Verifies: SYS-REQ-001 [boundary]
dead_code_audit_test.go:656
FunctionTestStringEndSentinel
Verifies: SYS-REQ-045 [boundary] stringEnd returns -1 when no closing quote found. Callers must handle.
deep_spec_test.go:137
FunctionTestStringEnd_FastPathEquivalence_Cases
Verifies: SYS-REQ-045
optimization_equiv_test.go:53
FunctionTestStringEnd_FastPathEquivalence_Random
Verifies: SYS-REQ-045
optimization_equiv_test.go:82
FunctionTestStringEnd_FastPath_LongInputs
Directly exercise the fast-path branches with long inputs that would be expensive under per-byte scanning. Verifies: SYS-REQ-045
optimization_equiv_test.go:111
FunctionTestTokenEndSentinel
============================================================================= Sentinel-value tests (SYS-REQ-044, SYS-REQ-045, SYS-REQ-046) ===========
deep_spec_test.go:112
FunctionTestTokenStart
Verifies: STK-REQ-001 [boundary] MCDC STK-REQ-001: N/A
parser_test.go:2292
FunctionTestTraversalDeepNesting
Verifies: SYS-REQ-099 MCDC SYS-REQ-099: traversal_input_is_deeply_nested=T, traversal_handles_deep_nesting_safely=T => TRUE
obligation_property_test.go:716
FunctionTestTraversalDeterminism
Verifies: SYS-REQ-097 MCDC SYS-REQ-097: traversal_called_twice_with_same_input=T, traversal_returns_identical_results=T => TRUE
obligation_property_test.go:113
FunctionTestTraversalNilSafety
Verifies: SYS-REQ-098 MCDC SYS-REQ-098: traversal_input_is_nil=T, traversal_returns_safe_result_for_nil=T => TRUE
obligation_property_test.go:339
FunctionTestTruncatedAtValueBoundary
============================================================================= Truncated-input tests (SYS-REQ-041, SYS-REQ-042, SYS-REQ-043) ==========
deep_spec_test.go:16
FunctionTestTruncatedEscapeSequences
Verifies: SYS-REQ-060 [malformed] Truncated escape sequences in ParseString shall return MalformedValueError.
deep_spec_test.go:598
FunctionTestTruncatedMidKey
Verifies: SYS-REQ-043 [malformed] When JSON input is truncated mid-key (e.g. '{"a'), Get shall return a parse-related error and shall not panic.
deep_spec_test.go:78
FunctionTestTruncatedMidStructure
Verifies: SYS-REQ-042 [malformed] When JSON input is truncated mid-structure (e.g. '{"a":[1,2'), Get shall return a parse-related error and shall not
deep_spec_test.go:47
FunctionTestTypedGetEmptyKeyPathComponent
Verifies: SYS-REQ-016 [boundary] Typed Get accessors must propagate KeyPathNotFoundError for an empty key component instead of panicking on the underl
empty_key_path_test.go:82
FunctionTestTypedGetterDeterminism
Verifies: SYS-REQ-094 MCDC SYS-REQ-094: typed_getter_called_twice_with_same_input=T, typed_getter_returns_identical_results=T => TRUE
obligation_property_test.go:86
FunctionTestTypedGetterEdgeErrors
Verifies: SYS-REQ-003 [boundary] MCDC SYS-REQ-003: N/A Verifies: SYS-REQ-004 [boundary] MCDC SYS-REQ-004: N/A Verifies: SYS-REQ-005 [boundary] MCDC SY
mcdc_supplement_test.go:98
FunctionTestTypedGetterNilSafety
Verifies: SYS-REQ-095 MCDC SYS-REQ-095: typed_getter_input_is_nil=T, typed_getter_returns_safe_result_for_nil=T => TRUE
obligation_property_test.go:314
FunctionTestUnescape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:172
FunctionTestUnescapeHighSurrogateThenNonSurrogate
Verifies: SYS-REQ-014 [boundary] — high surrogate followed by a "\u" escape that is NOT a low surrogate (here a BMP codepoint U+0041 'A') → U+FFFD + '
escape_test.go:269
FunctionTestUnescapeLoneHighSurrogate
Verifies: SYS-REQ-014 [boundary] — lone high surrogate → U+FFFD, no following bytes consumed.
escape_test.go:234
FunctionTestUnescapeLoneHighSurrogateFollowedByNonEscape
Verifies: SYS-REQ-014 [boundary] — the bug: high surrogate followed by non-escape bytes was synthesizing U+DC271; must be U+FFFD + literal "A7FA".
escape_test.go:246
FunctionTestUnescapeLoneLowSurrogate
Verifies: SYS-REQ-014 [boundary] — lone low surrogate → U+FFFD.
escape_test.go:257
FunctionTestUnescapeValidSurrogatePairStillWorks
Verifies: SYS-REQ-014 [happy-path] — a valid UTF-16 surrogate pair must still combine into the supplementary-plane code point (regression guard).
escape_test.go:281
FunctionTestValueTypeString
Verifies: STK-REQ-001 [boundary] MCDC STK-REQ-001: N/A
parser_test.go:2267
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:100
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:183
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:237
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:371
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:463
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:509
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:555
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:630
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:676
MethodUnmarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:786
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:55
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:248
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:469
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:710
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:951
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1236
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1506
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1790
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2025
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2332
MethodUnmarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2690
FunctionbyteflipAtStructuralByte
byteflipAtStructuralByte flips a byte at a structural position ({, }, [, ], :, ,, "). This corrupts the document skeleton, exercising the parser's mal
json_fuzz_test.go:764
FunctionbytesToString
A hack until issue golang/go#2632 is fixed. See: https://github.com/golang/go/issues/2632
bytes_unsafe.go:32
FunctionduplicateKey
duplicateKey injects a duplicate object key, turning {"k":1} into {"k":1,"k":1}. This exercises duplicate-key handling: the parser should return the f
json_fuzz_test.go:701
FunctionequalStr
The reason for using *[]byte rather than []byte in parameters is an optimization. As of Go 1.6, the compiler cannot perfectly inline the function whe
bytes_unsafe.go:22
Functioninit
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:36
FunctioninjectInvalidUTF8
injectInvalidUTF8 inserts a raw invalid-UTF-8 byte sequence inside a JSON string value. Targets the parser's UTF-8 validation path: the parser must re
json_fuzz_test.go:804
FunctioninjectLoneSurrogate
injectLoneSurrogate corrupts a string by replacing a `\uXXXX` escape with a lone surrogate escape (\uD800 / \uDC00 alone, or a high-high pair). Target
json_fuzz_test.go:835
FunctioninjectMismatchedCloser
injectMismatchedCloser swaps a closing '}' for ']' (or vice versa). The grammar generator always pairs '{' with '}' and '[' with ']'; this operator pr
json_fuzz_test.go:911
FunctioninjectUnbalancedOpen
injectUnbalancedOpen inserts unmatched '{' or '[' opens at a random position. This produces structures the grammar generator CANNOT emit: every genera
json_fuzz_test.go:886
FunctionparseFloat
(b *[]byte)
bytes_unsafe.go:26
FunctiontoArray
Test helper for SYS-REQ-006.
parser_test.go:15
FunctiontruncateAtValueBoundary
truncateAtValueBoundary cuts the document right after a ':' (before the value starts). This is the OSS-Fuzz 4649128545288192 / sentinel_value_boundary
json_fuzz_test.go:571
FunctiontruncateMidElement
truncateMidElement cuts inside an array element, after a '[' or ','. The truncated_mid_element class: the parser must not read past the cut when scann
json_fuzz_test.go:681
FunctiontruncateMidEscape
truncateMidEscape cuts inside a \uXXXX escape sequence. This is the truncated_escape_sequence class: the parser's Unescape routine must detect the tru
json_fuzz_test.go:649
FunctiontruncateMidKey
truncateMidKey cuts inside a string key. The cut is placed between the opening '"' of a key and its closing '"'. This is the truncated_mid_key class:
json_fuzz_test.go:588
FunctiontruncateMidStructure
truncateMidStructure cuts after an unclosed '{' or '['. This is the truncated_mid_structure class: the parser must detect the missing closing token an
json_fuzz_test.go:631
← previous1,101–1,179 of 1,179, ranked by callers