Home
last modified time | relevance | path

Searched refs:NullableMap (Results 1 – 2 of 2) sorted by relevance

/external/kotlinx.serialization/formats/json-tests/commonTest/src/kotlinx/serialization/json/
DAbstractJsonImplicitNullsTest.kt50 data class NullableMap(val m: Map<Int, Int>?) dataClass
149 val encoded = format.encode(NullableMap(null), NullableMap.serializer()) in testNullableMap()
152 val decoded = format.decode(json, NullableMap.serializer()) in testNullableMap()
153 assertEquals(NullableMap(null), decoded) in testNullableMap()
/external/kotlinx.serialization/formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/
DProtobufAbsenceTest.kt35 data class NullableMap(val m: Map<Int, Int>?) dataClass
133 … assertFailsWith(SerializationException::class) { ProtoBuf.encodeToByteArray(NullableMap(null)) } in testNullableMap()
135 val bytes = ProtoBuf.encodeToByteArray(NullableMap(emptyMap())) in testNullableMap()
138 val decoded = ProtoBuf.decodeFromByteArray<NullableMap>(bytes) in testNullableMap()