MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,179 in github.com/buger/jsonparser

FunctionTestConfigSet
Verifies: SYS-REQ-115 (mutation of lenient input) SYS-REQ-115:nominal:nominal reqproof:proptest:skip targeted witness/regression test; not a property-
config_test.go:53
FunctionTestConfigStrictStillWorks
Verifies: SYS-REQ-115 (zero-value Config remains strict) SYS-REQ-115:malformed_input:nominal reqproof:proptest:skip targeted witness/regression test;
config_test.go:92
FunctionTestConfigTraversalAndDelete
Verifies: SYS-REQ-115 (lenient traversal and deletion) SYS-REQ-115:nominal:nominal reqproof:proptest:skip targeted witness/regression test; not a prop
config_test.go:144
FunctionTestCreateInsertComponentUsesCalculatedCapacity
Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:143
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:1357
FunctionTestDeleteDoesNotAliasInputBackingArray
Verifies: SYS-REQ-010 [regression, issues #209 and #141]
v131_regression_test.go:74
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
FunctionTestDeleteFound
Verifies: SYS-REQ-010 (Delete) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:12
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
FunctionTestEachArrayAlias
Verifies: SYS-REQ-006 (array iteration alias) reqproof:proptest:skip parity test for a thin compatibility wrapper
aliases_test.go:40
FunctionTestEachArrayErrAlias
Verifies: SYS-REQ-004 (error-returning array iteration alias) reqproof:proptest:skip parity test for a thin compatibility wrapper
aliases_test.go:113
FunctionTestEachArrayWildcardAlias
Verifies: SYS-REQ-113 (wildcard array iteration alias) reqproof:proptest:skip parity test for a thin compatibility wrapper
aliases_test.go:157
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:1996
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
FunctionTestEachKeyDescendsIntoArrayIndexAtEndOfPath
Verifies: SYS-REQ-008 [regression, issue #232]
v131_regression_test.go:103
FunctionTestEachKeyEmptyKeyPathComponent
============================================================================= EachKey — empty key component emits no callback (SYS-REQ-008) ==========
empty_key_path_test.go:138
FunctionTestEachKeyErr
Verifies: SYS-REQ-008 (EachKey) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
array_each_err_test.go:134
FunctionTestEachKeyMultiPathInvariants
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
FunctionTestEachKeyNoRequests
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
FunctionTestEachKeyPathBeyondStackCapacity
Verifies: SYS-REQ-008 (EachKey) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:97
FunctionTestEachKeyPathWith100Components
Verifies: SYS-REQ-008 (EachKey) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
issues_56_107_229_test.go:91
FunctionTestEachKeySentinelHandling
============================================================================= EachKey sentinel handling (SYS-REQ-085) ================================
deep_spec_test.go:907
FunctionTestEachKeySupplementalCoverage
Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
mcdc_supplement_test.go:112
FunctionTestEachKeyWildcard
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
FunctionTestEachObjectAlias
Verifies: SYS-REQ-007 (object iteration alias) reqproof:proptest:skip parity test for a thin compatibility wrapper
aliases_test.go:72
FunctionTestEncodingJSONBenchmarkPayloadTypesUseReflection
Verifies: STK-REQ-001 [regression, issue #126]
benchmark/encoding_json_regression_test.go:9
FunctionTestEncodingJSONCorpusSanity
============================================================================= Non-fuzz regression test (runs under plain `go test`) ==================
encoding_json_fuzz_test.go:714
FunctionTestEqual
Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:34
FunctionTestEscape
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:341
FunctionTestEscapeControlChars
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:379
FunctionTestEscapeEmptyString
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:434
FunctionTestEscapeUnicode
Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
escape_test.go:416
FunctionTestFuzzDeleteHarnessCoverage
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
FunctionTestFuzzEachKeyHarnessCoverage
============================================================================= Coverage closure tests for fuzz harness functions ======================
coverage_closure_test.go:18
FunctionTestFuzzObjectEachHarnessCoverage
Verifies: SYS-REQ-007 [fuzz] MCDC SYS-REQ-007: N/A
coverage_closure_test.go:74
FunctionTestFuzzParseFloatHarnessCoverage
Verifies: SYS-REQ-013 [fuzz] MCDC SYS-REQ-013: N/A
parser_test.go:2256
FunctionTestFuzzParseStringHarnessCoverage
Verifies: SYS-REQ-014 [fuzz] MCDC SYS-REQ-014: N/A
mcdc_supplement_test.go:387
FunctionTestFuzzPathMutationSeedsClean
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
FunctionTestFuzzSetHarnessCoverage
Verifies: SYS-REQ-009 [fuzz] MCDC SYS-REQ-009: N/A
set_spec_test.go:56
FunctionTestGet
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:1377
FunctionTestGetArrayIndexInBounds
Verifies: SYS-REQ-021 [boundary] Valid in-bounds array index returns correct element.
deep_spec_test.go:1036
FunctionTestGetArrayIndexOutOfBounds
Verifies: SYS-REQ-023 [boundary] Out-of-bounds array index returns not-found.
deep_spec_test.go:1059
FunctionTestGetArrayLen
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
FunctionTestGetArrayLenRoundTrip
Verifies: SYS-REQ-112 (container length accessor). reqproof:proptest:skip targeted witness/regression test; not a property-test subject
len_uint_test.go:253
FunctionTestGetBestEffortMalformed
Verifies: SYS-REQ-026 [malformed] Malformed input outside addressed path allows best-effort result.
deep_spec_test.go:1098
FunctionTestGetBoolean
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:1601
FunctionTestGetBooleanPartialLiteral
============================================================================= GetBoolean partial literal (SYS-REQ-079) ===============================
deep_spec_test.go:783
FunctionTestGetDeepNesting
============================================================================= Edge case tests ========================================================
obligation_property_test.go:558
FunctionTestGetDeterminism
============================================================================= Determinism tests ======================================================
obligation_property_test.go:19
FunctionTestGetEmptyInputWithPath
Verifies: SYS-REQ-019 [boundary] Empty input with key path returns KeyPathNotFoundError.
deep_spec_test.go:1012
FunctionTestGetEmptyKeyPathComponent
============================================================================= Get family — empty key component resolves to KeyPathNotFoundError (SYS-R
empty_key_path_test.go:40
FunctionTestGetEscapedKey
Verifies: SYS-REQ-024 [boundary] Escaped key in payload matches decoded path segment.
deep_spec_test.go:1069
FunctionTestGetFloat
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:1582
FunctionTestGetIdempotencyInputNotMutated
============================================================================= Idempotency tests ======================================================
obligation_property_test.go:233
FunctionTestGetInt
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:1563
FunctionTestGetIntEmptyInput
Verifies: SYS-REQ-078 [boundary] GetInt on empty input shall return error.
deep_spec_test.go:770
FunctionTestGetIntLargeNumberEdgeCases
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
FunctionTestGetIntMalformedInput
============================================================================= GetInt edge cases (SYS-REQ-075, SYS-REQ-076, SYS-REQ-077, SYS-REQ-078) =
deep_spec_test.go:728
FunctionTestGetIntOverflow
Verifies: SYS-REQ-076 [boundary] GetInt on overflow value shall return overflow error.
deep_spec_test.go:737
FunctionTestGetIntTypeMismatch
Verifies: SYS-REQ-077 [boundary] GetInt on non-number value shall return type-mismatch error.
deep_spec_test.go:746
FunctionTestGetMalformedArrayIndex
Verifies: SYS-REQ-022 [boundary] Malformed array index returns not-found.
deep_spec_test.go:1049
FunctionTestGetNilSafety
============================================================================= Nil safety tests =======================================================
obligation_property_test.go:280
FunctionTestGetNoKeyPathReturnsRoot
Verifies: SYS-REQ-018 [boundary] No key path returns root value.
deep_spec_test.go:996
FunctionTestGetNotFoundResult
============================================================================= Additional Get path tests for SYS-REQ-016 through SYS-REQ-027 ==========
deep_spec_test.go:956
FunctionTestGetObjectKeyScope
Verifies: SYS-REQ-020 [boundary] Object key resolved at correct scope.
deep_spec_test.go:1023
FunctionTestGetObjectLen
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:98
FunctionTestGetObjectLenRoundTrip
Verifies: SYS-REQ-112 (container length accessor). reqproof:proptest:skip targeted witness/regression test; not a property-test subject
len_uint_test.go:279
FunctionTestGetRequirementSlices
Verifies: SYS-REQ-016 [boundary] MCDC SYS-REQ-016: N/A Verifies: SYS-REQ-017 [boundary] MCDC SYS-REQ-017: N/A Verifies: SYS-REQ-018 [boundary] MCDC SY
parser_test.go:1414
FunctionTestGetSlice
Verifies: SYS-REQ-001 [example] MCDC SYS-REQ-001: N/A
parser_test.go:1616
FunctionTestGetString
Verifies: SYS-REQ-002 [example] STK-REQ-002:AC-1:acceptance MCDC SYS-REQ-002: addressed_value_is_string=F, raw_string_token_is_well_formed=T, returns_
parser_test.go:1526
FunctionTestGetStringDeterminism
Verifies: SYS-REQ-090 MCDC SYS-REQ-090: getstring_called_twice_with_same_input=T, getstring_returns_identical_results=T => TRUE
obligation_property_test.go:58
FunctionTestGetStringEmptyInput
Verifies: SYS-REQ-074 [boundary] GetString on empty input shall return error.
deep_spec_test.go:715
FunctionTestGetStringEncodingSafety
============================================================================= Encoding safety tests ==================================================
obligation_property_test.go:478
FunctionTestGetStringMalformedInput
============================================================================= GetString edge cases (SYS-REQ-071, SYS-REQ-072, SYS-REQ-073, SYS-REQ-074
deep_spec_test.go:672
FunctionTestGetStringNilSafety
Verifies: SYS-REQ-091 MCDC SYS-REQ-091: getstring_input_is_nil=T, getstring_returns_safe_result_for_nil=T => TRUE
obligation_property_test.go:299
FunctionTestGetStringTruncatedEscape
Verifies: SYS-REQ-072 [malformed] GetString with truncated escape in value shall return error.
deep_spec_test.go:681
FunctionTestGetStringTypeMismatch
Verifies: SYS-REQ-073 [boundary] GetString on non-string value shall return a type-mismatch error.
deep_spec_test.go:691
FunctionTestGetStringUnicodeEdgeCases
Verifies: SYS-REQ-093 MCDC SYS-REQ-093: getstring_input_has_unicode_edge_cases=T, getstring_handles_unicode_edges_safely=T => TRUE
obligation_property_test.go:590
FunctionTestGetStringValueRaw
Verifies: SYS-REQ-025 [boundary] String value returned without surrounding quotes and without unescaping.
deep_spec_test.go:1082
FunctionTestGetTruncatedReturnsError
Verifies: SYS-REQ-017 [malformed] Incomplete/truncated input returns parse error.
deep_spec_test.go:975
FunctionTestGetTypeMalformedCompositeTokens
Verifies: STK-REQ-001 [malformed] MCDC STK-REQ-001: N/A
mcdc_supplement_test.go:404
FunctionTestGetUint64
Verifies: SYS-REQ-003 (GetInt/typed accessors). reqproof:proptest:skip targeted witness/regression test; not a property-test subject
len_uint_test.go:167
FunctionTestGetUnknownValueType
Verifies: SYS-REQ-027 [malformed] Unclassifiable token returns value-type error.
deep_spec_test.go:1112
FunctionTestGetUnsafeString
Verifies: SYS-REQ-011 [example] STK-REQ-006:AC-1:acceptance MCDC SYS-REQ-011: addressed_value_is_string=F, returns_unsafe_string_view=F => TRUE MCDC S
parser_test.go:1544
FunctionTestGetUnsafeStringDeterminism
Verifies: SYS-REQ-103 MCDC SYS-REQ-103: getunsafestring_called_twice_with_same_input=T, getunsafestring_returns_identical_results=T => TRUE
obligation_property_test.go:183
FunctionTestGetUnsafeStringEmptyInput
Verifies: SYS-REQ-081 [boundary] GetUnsafeString on empty input shall return error.
deep_spec_test.go:812
FunctionTestGetUnsafeStringMalformedInput
============================================================================= GetUnsafeString edge cases (SYS-REQ-080, SYS-REQ-081, SYS-REQ-082) =====
deep_spec_test.go:803
FunctionTestGetUnsafeStringNilSafety
Verifies: SYS-REQ-104 MCDC SYS-REQ-104: getunsafestring_input_is_nil=T, getunsafestring_returns_safe_result_for_nil=T => TRUE
obligation_property_test.go:426
FunctionTestGetUnsafeStringTruncatedValue
Verifies: SYS-REQ-082 [malformed] GetUnsafeString on truncated-at-value-boundary input shall return error.
deep_spec_test.go:821
FunctionTestGetUnsafeStringUnicodeEdgeCases
Verifies: SYS-REQ-105 MCDC SYS-REQ-105: getunsafestring_input_has_unicode_edge_cases=T, getunsafestring_handles_unicode_edges_safely=T => TRUE
obligation_property_test.go:804
FunctionTestH2I
Verifies: SYS-REQ-014 [boundary] MCDC SYS-REQ-014: N/A
escape_test.go:12
← previousnext →501–600 of 1,179, ranked by callers