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

Method testCOUNT

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

Source from the content-addressed store, hash-verified

1127 }
1128
1129 @Test
1130 public void testCOUNT() throws Exception {
1131 Integer input[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, null };
1132 long expected = input.length - 1;
1133
1134 EvalFunc<Long> count = new COUNT();
1135 Tuple tup = Util.loadNestTuple(TupleFactory.getInstance().newTuple(1), input);
1136 Long output = count.exec(tup);
1137
1138 assertTrue(output == expected);
1139 }
1140
1141 @Test
1142 public void testCOUNTIntermed() 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