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

Method testMINFinal

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

Source from the content-addressed store, hash-verified

1536 }
1537
1538 @Test
1539 public void testMINFinal() throws Exception {
1540 String[] minTypes = {"MINFinal", "LongMinFinal", "IntMinFinal", "FloatMinFinal", "BigDecimalMinFinal", "BigIntegerMinFinal", "StringMinFinal", "DateTimeMinFinal"};
1541 for (int k = 0; k < minTypes.length; k++) {
1542 EvalFunc<?> min = evalFuncMap.get(minTypes[k]);
1543 String inputType = getInputType(minTypes[k]);
1544 Tuple tup = inputMap.get(inputType);
1545 Object output = min.exec(tup);
1546
1547 String msg = "[Testing " + minTypes[k] + " on input type: " + getInputType(minTypes[k]) + " ( (output) " +
1548 output + " == " + getExpected(minTypes[k]) + " (expected) )]";
1549 assertForInputType(inputType, msg, getExpected(minTypes[k]), output);
1550 }
1551 }
1552
1553 @Test
1554 public void testMINAccumulate() 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