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

Method testFloatInvoker

test/org/apache/pig/test/TestInvoker.java:118–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117
118 @Test
119 public void testFloatInvoker() throws SecurityException, ClassNotFoundException, NoSuchMethodException, NumberFormatException, IOException {
120 InvokeForFloat il = new InvokeForFloat("java.lang.Float.valueOf", "String");
121 Tuple t = tf_.newTuple(1);
122 String arg = "245.3";
123 t.set(0, arg);
124 assertEquals(Float.valueOf(arg), il.exec(t));
125 }
126
127 public static String concatStrings(String str1, String str2) {
128 return str1.concat(str2);

Callers

nothing calls this directly

Calls 4

setMethod · 0.95
newTupleMethod · 0.65
assertEqualsMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected