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

Method testCOUNT_STARFinal

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

Source from the content-addressed store, hash-verified

1409 }
1410
1411 @Test
1412 public void testCOUNT_STARFinal() throws Exception {
1413 long input[] = { 23, 38, 39 };
1414 Tuple tup = Util.loadNestTuple(TupleFactory.getInstance().newTuple(1), input);
1415
1416 EvalFunc<Long> count = new COUNT_STAR.Final();
1417 Long output = count.exec(tup);
1418
1419 assertEquals("Expected count to be 100", 100, output.longValue());
1420 }
1421
1422 @Test
1423 public void testSUM() throws Exception {

Callers

nothing calls this directly

Calls 5

loadNestTupleMethod · 0.95
getInstanceMethod · 0.95
execMethod · 0.95
newTupleMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected