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

Method verifyUnion

test/org/apache/pig/test/TestMapReduce2.java:116–129  ·  view source on GitHub ↗
(String id, int actualCount )

Source from the content-addressed store, hash-verified

114
115 //verifies results
116 public void verifyUnion(String id, int actualCount ) throws Exception {
117
118 Iterator<Tuple> it = pig.openIterator(id);
119 Tuple t = null ;
120 int count = 0 ;
121
122 while(it.hasNext()) {
123 t = it.next() ;
124 System.out.println(count + ":" + t) ;
125 count++ ;
126 }
127
128 assertEquals(count, actualCount);
129 }
130
131
132 /***

Callers 4

testUnion1Method · 0.95
testUnion1WithNullsMethod · 0.95
testUnion2Method · 0.95
testUnion2WithNullsMethod · 0.95

Calls 4

openIteratorMethod · 0.80
hasNextMethod · 0.45
nextMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected