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

Method testLongToBytes

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

Source from the content-addressed store, hash-verified

232 }
233
234 @Test
235 public void testLongToBytes() throws IOException {
236 Long l = r.nextLong();
237 assertTrue(DataType.equalByteArrays(l.toString().getBytes(), ((Utf8StorageConverter)ps.getLoadCaster()).toBytes(l)));
238 }
239
240 @Test
241 public void testFloatToBytes() throws IOException {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected