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

Method testMAXFinal

test/org/apache/pig/test/TestBuiltin.java:1606–1621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1604 }
1605
1606 @Test
1607 public void testMAXFinal() throws Exception {
1608
1609 String[] maxTypes = {"MAXFinal", "LongMaxFinal", "IntMaxFinal", "FloatMaxFinal", "BigDecimalMaxFinal", "BigIntegerMaxFinal", "StringMaxFinal", "DateTimeMaxFinal"};
1610 for (int k = 0; k < maxTypes.length; k++) {
1611 EvalFunc<?> max = evalFuncMap.get(maxTypes[k]);
1612 String inputType = getInputType(maxTypes[k]);
1613 Tuple tup = inputMap.get(inputType);
1614 Object output = max.exec(tup);
1615
1616 String msg = "[Testing " + maxTypes[k] + " on input type: " + getInputType(maxTypes[k]) + " ( (output) " +
1617 output + " == " + getExpected(maxTypes[k]) + " (expected) )]";
1618 assertForInputType(inputType, msg, getExpected(maxTypes[k]), output);
1619 }
1620
1621 }
1622
1623 @Test
1624 public void testMAXAccumulate() throws Exception {

Callers

nothing calls this directly

Calls 5

getInputTypeMethod · 0.95
getExpectedMethod · 0.95
assertForInputTypeMethod · 0.95
getMethod · 0.65
execMethod · 0.45

Tested by

no test coverage detected