Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,014 in github.com/buger/jsonparser
⨍
Functions
1,014
◇
Types & classes
26
Function
TestEachKeyEmptyKeyPathComponent
============================================================================= EachKey — empty key component emits no callback (SYS-REQ-008) ==========
empty_key_path_test.go:138
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:786
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
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
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
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:284
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
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
Function
TestGetNotFoundResult
============================================================================= Additional Get path tests for SYS-REQ-016 through SYS-REQ-027 ==========
deep_spec_test.go:956
Function
TestGetObjectKeyScope
Verifies: SYS-REQ-020 [boundary] Object key resolved at correct scope.
deep_spec_test.go:1023
Function
TestGetRequirementSlices
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:1415
Function
TestGetSlice
Verifies: SYS-REQ-001 [example] MCDC SYS-REQ-001: N/A
parser_test.go:1617
Function
TestGetString
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:1527
Function
TestGetStringDeterminism
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
Function
TestGetStringEmptyInput
Verifies: SYS-REQ-074 [boundary] GetString on empty input shall return error.
deep_spec_test.go:715
Function
TestGetStringEncodingSafety
============================================================================= Encoding safety tests ==================================================
obligation_property_test.go:478
Function
TestGetStringMalformedInput
============================================================================= GetString edge cases (SYS-REQ-071, SYS-REQ-072, SYS-REQ-073, SYS-REQ-074
deep_spec_test.go:672
Function
TestGetStringNilSafety
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
Function
TestGetStringTruncatedEscape
Verifies: SYS-REQ-072 [malformed] GetString with truncated escape in value shall return error.
deep_spec_test.go:681
Function
TestGetStringTypeMismatch
Verifies: SYS-REQ-073 [boundary] GetString on non-string value shall return a type-mismatch error.
deep_spec_test.go:691
Function
TestGetStringUnicodeEdgeCases
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
Function
TestGetStringValueRaw
Verifies: SYS-REQ-025 [boundary] String value returned without surrounding quotes and without unescaping.
deep_spec_test.go:1082
Function
TestGetTruncatedReturnsError
Verifies: SYS-REQ-017 [malformed] Incomplete/truncated input returns parse error.
deep_spec_test.go:975
Function
TestGetTypeMalformedCompositeTokens
Verifies: STK-REQ-001 [malformed] MCDC STK-REQ-001: N/A
mcdc_supplement_test.go:404
Function
TestGetUnknownValueType
Verifies: SYS-REQ-027 [malformed] Unclassifiable token returns value-type error.
deep_spec_test.go:1112
Function
TestGetUnsafeString
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:1545
Function
TestGetUnsafeStringDeterminism
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
Function
TestGetUnsafeStringEmptyInput
Verifies: SYS-REQ-081 [boundary] GetUnsafeString on empty input shall return error.
deep_spec_test.go:812
Function
TestGetUnsafeStringMalformedInput
============================================================================= GetUnsafeString edge cases (SYS-REQ-080, SYS-REQ-081, SYS-REQ-082) =====
deep_spec_test.go:803
Function
TestGetUnsafeStringNilSafety
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
Function
TestGetUnsafeStringTruncatedValue
Verifies: SYS-REQ-082 [malformed] GetUnsafeString on truncated-at-value-boundary input shall return error.
deep_spec_test.go:821
Function
TestGetUnsafeStringUnicodeEdgeCases
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
Function
TestH2I
Verifies: SYS-REQ-014 [boundary] MCDC SYS-REQ-014: N/A
escape_test.go:12
Function
TestInternalSearchHelperEdges
Verifies: STK-REQ-001 [malformed] MCDC STK-REQ-001: N/A Verifies: STK-REQ-005 [malformed] MCDC STK-REQ-005: N/A
mcdc_supplement_test.go:14
Function
TestInvalidSurrogateLow
Verifies: SYS-REQ-062 [malformed] A high surrogate followed by an out-of-range second escape is a lone high surrogate → U+FFFD + the second escape rep
deep_spec_test.go:646
Function
TestJSONFuzzCorpusSanity
============================================================================= Corpus-seeding helper (non-fuzz regression gate) =======================
json_fuzz_test.go:1581
Function
TestKeyCount
check having a bunch of keys in a call to EachKey Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:83
Function
TestKeyCountArray
check having a bunch of keys Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:126
Function
TestKeyDepth
check having a very deep key depth Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:63
Function
TestKeyDepthArray
try pulling lots of keys out of a big array Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:106
Function
TestLargeArray
Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:173
Function
TestMCDC_SYS_REQ_001_Row2_TriggerFalse
============================================================================= Spec-level MC/DC witness tests. ========================================
mcdc_spec_witnesses_test.go:32
Function
TestMCDC_SYS_REQ_001_Row4_InvariantViolation
Verifies: SYS-REQ-001 MCDC SYS-REQ-001: addressed_path_exists=T, json_input_is_well_formed=T, key_path_is_provided=T, returns_existing_path_lookup_res
mcdc_spec_witnesses_test.go:47
Function
TestMCDC_SYS_REQ_002_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-002 (GetString) ------------------------------------------------
mcdc_spec_witnesses_test.go:68
Function
TestMCDC_SYS_REQ_003_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-003 (GetInt) ---------------------------------------------------
mcdc_spec_witnesses_test.go:86
Function
TestMCDC_SYS_REQ_004_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-004 (GetFloat) -------------------------------------------------
mcdc_spec_witnesses_test.go:105
Function
TestMCDC_SYS_REQ_005_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-005 (GetBoolean) -----------------------------------------------
mcdc_spec_witnesses_test.go:121
Function
TestMCDC_SYS_REQ_006_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-006 (ArrayEach) ------------------------------------------------
mcdc_spec_witnesses_test.go:137
Function
TestMCDC_SYS_REQ_006_Row4_EmptyArray
Verifies: SYS-REQ-006 MCDC SYS-REQ-006: addressed_array_is_empty=T, addressed_array_is_well_formed=T, array_callback_receives_elements_in_order=F => T
mcdc_spec_witnesses_test.go:154
Function
TestMCDC_SYS_REQ_007_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-007 (ObjectEach) -----------------------------------------------
mcdc_spec_witnesses_test.go:175
Function
TestMCDC_SYS_REQ_007_Row4_EmptyObject
Verifies: SYS-REQ-007 MCDC SYS-REQ-007: addressed_object_is_empty=T, addressed_object_is_well_formed=T, object_callback_receives_entries=F => TRUE
mcdc_spec_witnesses_test.go:191
Function
TestMCDC_SYS_REQ_008_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-008 (EachKey multipath scan) -----------------------------------
mcdc_spec_witnesses_test.go:211
Function
TestMCDC_SYS_REQ_009_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-009 (Set) ------------------------------------------------------
mcdc_spec_witnesses_test.go:229
Function
TestMCDC_SYS_REQ_010_Row1_NoPathNoEmpty
============================================================================= MC/DC witness row closure for SYS-REQ-010 ==============================
coverage_closure_test.go:105
Function
TestMCDC_SYS_REQ_010_Row3_PathProvided
Verifies: SYS-REQ-010 [boundary] MCDC SYS-REQ-010: delete_path_is_provided=T, delete_returns_empty_document_without_path=F => TRUE
coverage_closure_test.go:123
Function
TestMCDC_SYS_REQ_011_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-011 (GetUnsafeString) ------------------------------------------
mcdc_spec_witnesses_test.go:251
Function
TestMCDC_SYS_REQ_012_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-012 (ParseBoolean) ---------------------------------------------
mcdc_spec_witnesses_test.go:269
Function
TestMCDC_SYS_REQ_013_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-013 (ParseFloat) -----------------------------------------------
mcdc_spec_witnesses_test.go:285
Function
TestMCDC_SYS_REQ_014_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-014 (ParseString) ----------------------------------------------
mcdc_spec_witnesses_test.go:301
Function
TestMCDC_SYS_REQ_015_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-015 (ParseInt) -------------------------------------------------
mcdc_spec_witnesses_test.go:319
Function
TestMCDC_SYS_REQ_016_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-016 (missing-path lookup on well-formed JSON via Get) ----------
mcdc_spec_witnesses_test.go:335
Function
TestMCDC_SYS_REQ_016_Row2_NoKeyPath
Verifies: SYS-REQ-016 MCDC SYS-REQ-016: addressed_path_exists=F, json_input_is_well_formed=T, key_path_is_provided=F, returns_missing_path_result_for_
mcdc_spec_witnesses_test.go:347
Function
TestMCDC_SYS_REQ_016_Row3_InvariantViolation
Verifies: SYS-REQ-016 MCDC SYS-REQ-016: addressed_path_exists=F, json_input_is_well_formed=T, key_path_is_provided=T, returns_missing_path_result_for_
mcdc_spec_witnesses_test.go:362
Function
TestMCDC_SYS_REQ_016_Row4_MissingPathResult
Verifies: SYS-REQ-016 MCDC SYS-REQ-016: addressed_path_exists=F, json_input_is_well_formed=T, key_path_is_provided=T, returns_missing_path_result_for_
mcdc_spec_witnesses_test.go:377
Function
TestMCDC_SYS_REQ_016_Row5_AddressedPathExists
Verifies: SYS-REQ-016 MCDC SYS-REQ-016: addressed_path_exists=T, json_input_is_well_formed=T, key_path_is_provided=T, returns_missing_path_result_for_
mcdc_spec_witnesses_test.go:389
Function
TestMCDC_SYS_REQ_017_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-017 (parse error on incomplete input via Get) ------------------
mcdc_spec_witnesses_test.go:405
Function
TestMCDC_SYS_REQ_017_Row2_InvariantViolation
Verifies: SYS-REQ-017 MCDC SYS-REQ-017: input_is_incomplete_during_lookup=T, returns_parse_error_for_incomplete_lookup=F => FALSE
mcdc_spec_witnesses_test.go:417
Function
TestMCDC_SYS_REQ_017_Row3_ParseErrorReturned
Verifies: SYS-REQ-017 MCDC SYS-REQ-017: input_is_incomplete_during_lookup=T, returns_parse_error_for_incomplete_lookup=T => TRUE
mcdc_spec_witnesses_test.go:428
Function
TestMCDC_SYS_REQ_018_Row1_TriggerFalse
----------------------------------------------------------------------------- SYS-REQ-018 (root value lookup without key path) FRETish: !json_input_is
mcdc_spec_witnesses_test.go:441
Function
TestMCDC_SYS_REQ_018_Row2_InvariantViolation
Verifies: SYS-REQ-018 MCDC SYS-REQ-018: json_input_is_well_formed=T, key_path_is_provided=F, returns_root_value_without_key_path=F => FALSE
mcdc_spec_witnesses_test.go:453
Function
TestMCDC_SYS_REQ_018_Row3_RootValueReturned
Verifies: SYS-REQ-018 MCDC SYS-REQ-018: json_input_is_well_formed=T, key_path_is_provided=F, returns_root_value_without_key_path=T => TRUE
mcdc_spec_witnesses_test.go:467
Function
TestMCDC_SYS_REQ_018_Row4_KeyPathProvided
Verifies: SYS-REQ-018 MCDC SYS-REQ-018: json_input_is_well_formed=T, key_path_is_provided=T, returns_root_value_without_key_path=F => TRUE
mcdc_spec_witnesses_test.go:479
← previous
next →
401–500 of 1,014, ranked by callers