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

Method testCOUNTFinal

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

Source from the content-addressed store, hash-verified

1162 }
1163
1164 @Test
1165 public void testCOUNTFinal() throws Exception {
1166 long input[] = { 23, 38, 39 };
1167 Tuple tup = Util.loadNestTuple(TupleFactory.getInstance().newTuple(1), input);
1168
1169 EvalFunc<Long> count = new COUNT.Final();
1170 Long output = count.exec(tup);
1171
1172 assertEquals("Expected count to be 100", 100, output.longValue());
1173 }
1174
1175 @Test
1176 public void testCOUNTBagNullCheck() 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