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

Method testFloatToBytes

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

Source from the content-addressed store, hash-verified

238 }
239
240 @Test
241 public void testFloatToBytes() throws IOException {
242 Float f = r.nextFloat();
243 assertTrue(DataType.equalByteArrays(f.toString().getBytes(), ((Utf8StorageConverter)ps.getLoadCaster()).toBytes(f)));
244 }
245
246 @Test
247 public void testDoubleToBytes() throws IOException {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected