MCPcopy Create free account

hub / github.com/go-json-experiment/json / functions

Functions1,017 in github.com/go-json-experiment/json

FunctionTestConsumeLiteral
(t *testing.T)
internal/jsonwire/decode_test.go:41
FunctionTestConsumeNumber
(t *testing.T)
internal/jsonwire/decode_test.go:224
FunctionTestConsumeString
(t *testing.T)
internal/jsonwire/decode_test.go:105
FunctionTestConsumeWhitespace
(t *testing.T)
internal/jsonwire/decode_test.go:18
FunctionTestDecodeInStream
(t *testing.T)
v1/stream_test.go:369
FunctionTestDecoder
(t *testing.T)
v1/stream_test.go:221
FunctionTestDecoder
TestDecoder tests whether we can parse JSON with either tokens or raw values.
jsontext/decode_test.go:41
FunctionTestDecoderBuffered
(t *testing.T)
v1/stream_test.go:253
FunctionTestDecoderErrors
TestDecoderErrors test that Decoder errors occur when we expect and leaves the Decoder in a consistent state.
jsontext/decode_test.go:993
FunctionTestDecoderInputOffset
(t *testing.T)
v1/stream_test.go:555
FunctionTestDecoderMaxBytesError
(t *testing.T)
v1/stream_test.go:651
FunctionTestDecoderReset
TestDecoderReset tests that the decoder preserves its internal buffer between Reset calls to avoid frequent allocations when reusing the decoder. It e
jsontext/decode_test.go:1273
FunctionTestDuplicateNames
In v1, duplicate JSON object names are permitted by default where they follow the inconsistent and difficult-to-explain merge semantics of v1. In v2,
v1/diff_test.go:812
FunctionTestDuplicatedFieldDisappears
(t *testing.T)
v1/encode_test.go:875
FunctionTestEmbeddedBug
Issue 5245.
v1/encode_test.go:812
FunctionTestEmptyString
Test that the empty string doesn't panic decoding when ,string is specified Issue 3450
v1/decode_test.go:2023
FunctionTestEmptyStructs
In v1, non-empty structs without any JSON serializable fields are permitted. In v2, non-empty structs without any JSON serializable fields are rejecte
v1/diff_test.go:1049
FunctionTestEncodeBytekind
Issue 13783
v1/encode_test.go:1054
FunctionTestEncodePointerString
golang.org/issue/8582
v1/encode_test.go:952
FunctionTestEncodeRenamedByteSlice
(t *testing.T)
v1/encode_test.go:334
FunctionTestEncodeString
(t *testing.T)
v1/encode_test.go:1013
FunctionTestEncoder
(t *testing.T)
v1/stream_test.go:53
FunctionTestEncoder
TestEncoder tests whether we can produce JSON with either tokens or raw values.
jsontext/encode_test.go:23
FunctionTestEncoderErrorAndReuseEncodeState
(t *testing.T)
v1/stream_test.go:73
FunctionTestEncoderErrors
TestEncoderErrors test that Encoder errors occur when we expect and leaves the Encoder in a consistent state.
jsontext/encode_test.go:700
FunctionTestEncoderIndent
(t *testing.T)
v1/stream_test.go:127
FunctionTestEncoderReset
TestEncoderReset tests that the encoder preserves its internal buffer between Reset calls to avoid frequent allocations when reusing the encoder. It e
jsontext/encode_test.go:743
FunctionTestEncoderSetEscapeHTML
(t *testing.T)
v1/stream_test.go:152
FunctionTestEqualFold
(t *testing.T)
fold_test.go:60
FunctionTestErrorMessageFromMisusedString
If people misuse the ,string modifier, the error message should be helpful, telling the user that they're doing it wrong.
v1/decode_test.go:1643
FunctionTestEscape
(t *testing.T)
v1/decode_test.go:1629
FunctionTestEscapeHTML
In v1, JSON string encoding escapes special characters related to HTML. In v2, JSON string encoding uses a normalized representation (per RFC 8785).
v1/diff_test.go:717
FunctionTestExperimentalFormatSupport
(t *testing.T)
options_format_test.go:17
FunctionTestFaultyDecoder
TestFaultyDecoder tests that temporary I/O errors are not fatal.
jsontext/decode_test.go:118
FunctionTestFaultyEncoder
TestFaultyEncoder tests that temporary I/O errors are not fatal.
jsontext/encode_test.go:96
FunctionTestFlags
(t *testing.T)
internal/jsonflags/flags_test.go:11
FunctionTestFoldRune
(t *testing.T)
fold_test.go:73
FunctionTestFormatDuration
(t *testing.T)
arshal_time_test.go:96
FunctionTestFormatTime
(t *testing.T)
arshal_time_test.go:299
FunctionTestGet
(t *testing.T)
internal/jsonopts/options_test.go:131
FunctionTestHTMLEscape
(t *testing.T)
v1/encode_test.go:941
FunctionTestHTTPDecoding
Test from golang.org/issue/11893
v1/stream_test.go:486
FunctionTestIndentBig
(t *testing.T)
v1/scanner_test.go:151
FunctionTestIndentErrors
(t *testing.T)
v1/scanner_test.go:190
FunctionTestInline
(t *testing.T)
inline_test.go:23
FunctionTestInterfaceSet
(t *testing.T)
v1/decode_test.go:2066
FunctionTestIntern
(t *testing.T)
intern_test.go:19
FunctionTestInvalidStringOption
Test that string option is ignored for invalid types. Issue 9812.
v1/decode_test.go:2589
FunctionTestInvalidUTF8
In v1, JSON serialization silently ignored invalid UTF-8 by replacing such bytes with the Unicode replacement character. In v2, JSON serialization rep
v1/diff_test.go:752
FunctionTestInvalidUnmarshal
(t *testing.T)
v1/decode_test.go:2560
FunctionTestIssue10281
(t *testing.T)
v1/encode_test.go:895
FunctionTestIssue63379
(t *testing.T)
v1/encode_test.go:1394
FunctionTestJoin
(t *testing.T)
internal/jsonopts/options_test.go:26
FunctionTestLargeByteSlice
(t *testing.T)
v1/decode_test.go:1584
FunctionTestMakeStructFields
(t *testing.T)
fields_test.go:21
FunctionTestMapDeterminism
In v1, maps are marshaled in a deterministic order. In v2, maps are marshaled in a non-deterministic order. The reason for the change is that v2 prio
v1/diff_test.go:682
FunctionTestMarshal
(t *testing.T)
arshal_test.go:756
FunctionTestMarshal
(t *testing.T)
v1/decode_test.go:1321
FunctionTestMarshalEmbeds
(t *testing.T)
v1/decode_test.go:1378
FunctionTestMarshalErrorAndReuseEncodeState
(t *testing.T)
v1/encode_test.go:906
FunctionTestMarshalFloat
(t *testing.T)
v1/encode_test.go:1143
FunctionTestMarshalInvalidUTF8
(t *testing.T)
v1/decode_test.go:1343
FunctionTestMarshalNumberZeroVal
(t *testing.T)
v1/decode_test.go:1366
FunctionTestMarshalPanic
(t *testing.T)
v1/encode_test.go:1334
FunctionTestMarshalRawMessageValue
(t *testing.T)
v1/encode_test.go:1226
FunctionTestMarshalTextFloatMap
Issue 43207
v1/encode_test.go:438
FunctionTestMarshalUncommonFieldNames
(t *testing.T)
v1/encode_test.go:1344
FunctionTestMarshalerError
(t *testing.T)
v1/encode_test.go:1359
FunctionTestMarshalerEscaping
(t *testing.T)
v1/encode_test.go:535
FunctionTestMergeComposite
In v1, merge semantics are inconsistent and difficult to explain. In v2, merge semantics replaces the destination value for anything other than a JSON
v1/diff_test.go:923
FunctionTestMergeNull
In v1, unmarshaling a JSON null into a non-empty value was inconsistent in that sometimes it would be ignored and other times clear the value. In v2,
v1/diff_test.go:843
FunctionTestNilMarshal
See golang.org/issue/16042 and golang.org/issue/34235.
v1/encode_test.go:779
FunctionTestNilMarshalerTextMapKey
https://golang.org/issue/33675
v1/encode_test.go:1105
FunctionTestNilSlicesAndMaps
In v1, nil slices and maps are marshaled as a JSON null. In v2, nil slices and maps are marshaled as an empty JSON object or array. Users of v2 can o
v1/diff_test.go:458
FunctionTestNullRawMessage
(t *testing.T)
v1/stream_test.go:313
FunctionTestNullString
Test that a null for ,string is not replaced with the previous quoted string (issue 7046). It should also not be an error (issue 2540, issue 8587).
v1/decode_test.go:2041
FunctionTestNumberAccessors
Independent of Decode, basic coverage of the accessors in Number
v1/decode_test.go:1551
FunctionTestObjectNamespace
(t *testing.T)
jsontext/state_test.go:270
FunctionTestOmitEmpty
(t *testing.T)
v1/encode_test.go:52
FunctionTestOmitEmptyOption
In v1, the "omitempty" option specifies that a struct field is omitted when marshaling if it is an empty Go value, which is defined as false, 0, a nil
v1/diff_test.go:141
FunctionTestOmitEmptyZero
(t *testing.T)
v1/encode_test.go:237
FunctionTestOmitZero
(t *testing.T)
v1/encode_test.go:139
FunctionTestOmitZeroMap
(t *testing.T)
v1/encode_test.go:181
FunctionTestParseDuration
(t *testing.T)
arshal_time_test.go:228
FunctionTestParseHexUint16
(t *testing.T)
internal/jsonwire/decode_test.go:317
FunctionTestParseTagOptions
(t *testing.T)
fields_test.go:460
FunctionTestParseTime
(t *testing.T)
arshal_time_test.go:348
FunctionTestParseUint
(t *testing.T)
internal/jsonwire/decode_test.go:345
FunctionTestPeekableDecoder
(t *testing.T)
jsontext/decode_test.go:1177
FunctionTestPointer
(t *testing.T)
jsontext/state_test.go:17
FunctionTestPointerReceiver
In v1, the implementation is inconsistent about whether it calls MarshalJSON and UnmarshalJSON methods declared on pointer receivers when it has an un
v1/diff_test.go:598
FunctionTestPrefilled
Test semantics of pre-filled data, such as struct fields, map elements, slices, and arrays. Issues 4900 and 8837, among others.
v1/decode_test.go:2508
FunctionTestQuoteRune
(t *testing.T)
internal/jsonwire/wire_test.go:17
FunctionTestRawMessage
(t *testing.T)
v1/stream_test.go:289
FunctionTestRefUnmarshal
(t *testing.T)
v1/decode_test.go:1995
FunctionTestRefValMarshal
(t *testing.T)
v1/encode_test.go:491
FunctionTestResumableDecoder
TestResumableDecoder tests that resume logic for parsing a JSON string and number properly works across every possible split point.
jsontext/decode_test.go:1096
FunctionTestRoundtripStringTag
(t *testing.T)
v1/encode_test.go:271
FunctionTestSamePointerNoCycle
(t *testing.T)
v1/encode_test.go:398
FunctionTestSemanticError
(t *testing.T)
errors_test.go:21
← previousnext →801–900 of 1,017, ranked by callers