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

Method verifyUnion

test/org/apache/pig/test/TestLocal2.java:245–258  ·  view source on GitHub ↗
(String id, int actualCount )

Source from the content-addressed store, hash-verified

243
244 //verifies results
245 public void verifyUnion(String id, int actualCount ) throws Exception {
246
247 Iterator<Tuple> it = pig.openIterator(id);
248 Tuple t = null ;
249 int count = 0 ;
250
251 while(it.hasNext()) {
252 t = it.next() ;
253 System.out.println(count + ":" + t) ;
254 count++ ;
255 }
256
257 Assert.assertEquals(count, actualCount);
258 }
259
260 /***
261 * For generating a sample dataset

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