MCPcopy Create free account
hub / github.com/apache/pig / testTupleToBytes

Method testTupleToBytes

test/org/apache/pig/test/TestConversions.java:264–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 }
263
264 @Test
265 public void testTupleToBytes() throws IOException {
266 Tuple t = GenRandomData.genRandSmallBagTextTuple(r, 1, 100);
267 assertTrue(DataType.equalByteArrays(t.toString().getBytes(), ((Utf8StorageConverter)ps.getLoadCaster()).toBytes(t)));
268 }
269
270 @Test
271 public void testBagToBytes() throws IOException {

Callers

nothing calls this directly

Calls 6

equalByteArraysMethod · 0.95
getBytesMethod · 0.65
toBytesMethod · 0.65
getLoadCasterMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected