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

Method testMapToBytes

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

Source from the content-addressed store, hash-verified

274 }
275
276 @Test
277 public void testMapToBytes() throws IOException {
278 Map<String, Object> m = GenRandomData.genRandMap(r,5);
279 assertTrue(DataType.equalByteArrays(DataType.mapToString(m).getBytes(), ((Utf8StorageConverter)ps.getLoadCaster()).toBytes(m)));
280 }
281
282 @Test
283 public void testBytesToBagWithConversion() throws IOException {

Callers

nothing calls this directly

Calls 6

genRandMapMethod · 0.95
equalByteArraysMethod · 0.95
mapToStringMethod · 0.95
getBytesMethod · 0.65
toBytesMethod · 0.65
getLoadCasterMethod · 0.65

Tested by

no test coverage detected