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

Method testCOUNT_STAR

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

Source from the content-addressed store, hash-verified

1374 }
1375
1376 @Test
1377 public void testCOUNT_STAR() throws Exception {
1378 Integer input[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, null };
1379 long expected = input.length;
1380
1381 EvalFunc<Long> count = new COUNT_STAR();
1382 Tuple tup = Util.loadNestTuple(TupleFactory.getInstance().newTuple(1), input);
1383 Long output = count.exec(tup);
1384
1385 assertTrue(output == expected);
1386 }
1387
1388 @Test
1389 public void testCOUNT_STARIntermed() throws Exception {

Callers

nothing calls this directly

Calls 4

loadNestTupleMethod · 0.95
getInstanceMethod · 0.95
execMethod · 0.95
newTupleMethod · 0.65

Tested by

no test coverage detected