MCPcopy Create free account
hub / github.com/apache/thrift / testSkip

Method testSkip

lib/java/src/test/java/org/apache/thrift/TestTUnion.java:224–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222 }
223
224 @Test
225 public void testSkip() throws Exception {
226 TestUnion tu = TestUnion.string_field("string");
227 byte[] tuSerialized = new TSerializer().serialize(tu);
228 TestUnionMinusStringField tums = new TestUnionMinusStringField();
229 new TDeserializer().deserialize(tums, tuSerialized);
230 assertNull(tums.getSetField());
231 assertNull(tums.getFieldValue());
232 }
233
234 @Test
235 public void testDeepCopy() throws Exception {

Callers

nothing calls this directly

Calls 4

getSetFieldMethod · 0.80
getFieldValueMethod · 0.65
serializeMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected