MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,014 in github.com/buger/jsonparser

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:16
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,001–1,014 of 1,014, ranked by callers