Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-json-experiment/json
/ functions
Functions
1,017 in github.com/go-json-experiment/json
⨍
Functions
1,017
◇
Types & classes
442
Function
TestConsumeLiteral
(t *testing.T)
internal/jsonwire/decode_test.go:41
Function
TestConsumeNumber
(t *testing.T)
internal/jsonwire/decode_test.go:224
Function
TestConsumeString
(t *testing.T)
internal/jsonwire/decode_test.go:105
Function
TestConsumeWhitespace
(t *testing.T)
internal/jsonwire/decode_test.go:18
Function
TestDecodeInStream
(t *testing.T)
v1/stream_test.go:369
Function
TestDecoder
(t *testing.T)
v1/stream_test.go:221
Function
TestDecoder
TestDecoder tests whether we can parse JSON with either tokens or raw values.
jsontext/decode_test.go:41
Function
TestDecoderBuffered
(t *testing.T)
v1/stream_test.go:253
Function
TestDecoderErrors
TestDecoderErrors test that Decoder errors occur when we expect and leaves the Decoder in a consistent state.
jsontext/decode_test.go:993
Function
TestDecoderInputOffset
(t *testing.T)
v1/stream_test.go:555
Function
TestDecoderMaxBytesError
(t *testing.T)
v1/stream_test.go:651
Function
TestDecoderReset
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
Function
TestDuplicateNames
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
Function
TestDuplicatedFieldDisappears
(t *testing.T)
v1/encode_test.go:875
Function
TestEmbeddedBug
Issue 5245.
v1/encode_test.go:812
Function
TestEmptyString
Test that the empty string doesn't panic decoding when ,string is specified Issue 3450
v1/decode_test.go:2023
Function
TestEmptyStructs
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
Function
TestEncodeBytekind
Issue 13783
v1/encode_test.go:1054
Function
TestEncodePointerString
golang.org/issue/8582
v1/encode_test.go:952
Function
TestEncodeRenamedByteSlice
(t *testing.T)
v1/encode_test.go:334
Function
TestEncodeString
(t *testing.T)
v1/encode_test.go:1013
Function
TestEncoder
(t *testing.T)
v1/stream_test.go:53
Function
TestEncoder
TestEncoder tests whether we can produce JSON with either tokens or raw values.
jsontext/encode_test.go:23
Function
TestEncoderErrorAndReuseEncodeState
(t *testing.T)
v1/stream_test.go:73
Function
TestEncoderErrors
TestEncoderErrors test that Encoder errors occur when we expect and leaves the Encoder in a consistent state.
jsontext/encode_test.go:700
Function
TestEncoderIndent
(t *testing.T)
v1/stream_test.go:127
Function
TestEncoderReset
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
Function
TestEncoderSetEscapeHTML
(t *testing.T)
v1/stream_test.go:152
Function
TestEqualFold
(t *testing.T)
fold_test.go:60
Function
TestErrorMessageFromMisusedString
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
Function
TestEscape
(t *testing.T)
v1/decode_test.go:1629
Function
TestEscapeHTML
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
Function
TestExperimentalFormatSupport
(t *testing.T)
options_format_test.go:17
Function
TestFaultyDecoder
TestFaultyDecoder tests that temporary I/O errors are not fatal.
jsontext/decode_test.go:118
Function
TestFaultyEncoder
TestFaultyEncoder tests that temporary I/O errors are not fatal.
jsontext/encode_test.go:96
Function
TestFlags
(t *testing.T)
internal/jsonflags/flags_test.go:11
Function
TestFoldRune
(t *testing.T)
fold_test.go:73
Function
TestFormatDuration
(t *testing.T)
arshal_time_test.go:96
Function
TestFormatTime
(t *testing.T)
arshal_time_test.go:299
Function
TestGet
(t *testing.T)
internal/jsonopts/options_test.go:131
Function
TestHTMLEscape
(t *testing.T)
v1/encode_test.go:941
Function
TestHTTPDecoding
Test from golang.org/issue/11893
v1/stream_test.go:486
Function
TestIndentBig
(t *testing.T)
v1/scanner_test.go:151
Function
TestIndentErrors
(t *testing.T)
v1/scanner_test.go:190
Function
TestInline
(t *testing.T)
inline_test.go:23
Function
TestInterfaceSet
(t *testing.T)
v1/decode_test.go:2066
Function
TestIntern
(t *testing.T)
intern_test.go:19
Function
TestInvalidStringOption
Test that string option is ignored for invalid types. Issue 9812.
v1/decode_test.go:2589
Function
TestInvalidUTF8
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
Function
TestInvalidUnmarshal
(t *testing.T)
v1/decode_test.go:2560
Function
TestIssue10281
(t *testing.T)
v1/encode_test.go:895
Function
TestIssue63379
(t *testing.T)
v1/encode_test.go:1394
Function
TestJoin
(t *testing.T)
internal/jsonopts/options_test.go:26
Function
TestLargeByteSlice
(t *testing.T)
v1/decode_test.go:1584
Function
TestMakeStructFields
(t *testing.T)
fields_test.go:21
Function
TestMapDeterminism
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
Function
TestMarshal
(t *testing.T)
arshal_test.go:756
Function
TestMarshal
(t *testing.T)
v1/decode_test.go:1321
Function
TestMarshalEmbeds
(t *testing.T)
v1/decode_test.go:1378
Function
TestMarshalErrorAndReuseEncodeState
(t *testing.T)
v1/encode_test.go:906
Function
TestMarshalFloat
(t *testing.T)
v1/encode_test.go:1143
Function
TestMarshalInvalidUTF8
(t *testing.T)
v1/decode_test.go:1343
Function
TestMarshalNumberZeroVal
(t *testing.T)
v1/decode_test.go:1366
Function
TestMarshalPanic
(t *testing.T)
v1/encode_test.go:1334
Function
TestMarshalRawMessageValue
(t *testing.T)
v1/encode_test.go:1226
Function
TestMarshalTextFloatMap
Issue 43207
v1/encode_test.go:438
Function
TestMarshalUncommonFieldNames
(t *testing.T)
v1/encode_test.go:1344
Function
TestMarshalerError
(t *testing.T)
v1/encode_test.go:1359
Function
TestMarshalerEscaping
(t *testing.T)
v1/encode_test.go:535
Function
TestMergeComposite
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
Function
TestMergeNull
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
Function
TestNilMarshal
See golang.org/issue/16042 and golang.org/issue/34235.
v1/encode_test.go:779
Function
TestNilMarshalerTextMapKey
https://golang.org/issue/33675
v1/encode_test.go:1105
Function
TestNilSlicesAndMaps
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
Function
TestNullRawMessage
(t *testing.T)
v1/stream_test.go:313
Function
TestNullString
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
Function
TestNumberAccessors
Independent of Decode, basic coverage of the accessors in Number
v1/decode_test.go:1551
Function
TestObjectNamespace
(t *testing.T)
jsontext/state_test.go:270
Function
TestOmitEmpty
(t *testing.T)
v1/encode_test.go:52
Function
TestOmitEmptyOption
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
Function
TestOmitEmptyZero
(t *testing.T)
v1/encode_test.go:237
Function
TestOmitZero
(t *testing.T)
v1/encode_test.go:139
Function
TestOmitZeroMap
(t *testing.T)
v1/encode_test.go:181
Function
TestParseDuration
(t *testing.T)
arshal_time_test.go:228
Function
TestParseHexUint16
(t *testing.T)
internal/jsonwire/decode_test.go:317
Function
TestParseTagOptions
(t *testing.T)
fields_test.go:460
Function
TestParseTime
(t *testing.T)
arshal_time_test.go:348
Function
TestParseUint
(t *testing.T)
internal/jsonwire/decode_test.go:345
Function
TestPeekableDecoder
(t *testing.T)
jsontext/decode_test.go:1177
Function
TestPointer
(t *testing.T)
jsontext/state_test.go:17
Function
TestPointerReceiver
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
Function
TestPrefilled
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
Function
TestQuoteRune
(t *testing.T)
internal/jsonwire/wire_test.go:17
Function
TestRawMessage
(t *testing.T)
v1/stream_test.go:289
Function
TestRefUnmarshal
(t *testing.T)
v1/decode_test.go:1995
Function
TestRefValMarshal
(t *testing.T)
v1/encode_test.go:491
Function
TestResumableDecoder
TestResumableDecoder tests that resume logic for parsing a JSON string and number properly works across every possible split point.
jsontext/decode_test.go:1096
Function
TestRoundtripStringTag
(t *testing.T)
v1/encode_test.go:271
Function
TestSamePointerNoCycle
(t *testing.T)
v1/encode_test.go:398
Function
TestSemanticError
(t *testing.T)
errors_test.go:21
← previous
next →
801–900 of 1,017, ranked by callers