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

Method testOperator

test/org/apache/pig/test/TestPackage.java:197–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195
196
197 @Test
198 public void testOperator() throws ExecException, IOException {
199 byte[] types = DataType.genAllTypes();
200 for (byte b : types) {
201 if (b == DataType.GENERIC_WRITABLECOMPARABLE) {
202 // genericwritablecomparable is only used in
203 // merge join which we will not test here
204 continue;
205 }
206 System.out.println("Type " + DataType.findTypeName(b));
207 int NUM_TRIALS = 10;
208 boolean[] inner1 = { false, false };
209 for (int i = 0; i < NUM_TRIALS; i++)
210 pickTest(b, inner1);
211
212 boolean[] inner2 = { true, false };
213 for (int i = 0; i < NUM_TRIALS; i++)
214 pickTest(b, inner2);
215 /*
216 * if (succ)
217 * System.out.println("Success!!");
218 * else
219 * System.out.println("Failure");
220 */
221 }
222 }
223}

Callers

nothing calls this directly

Calls 3

genAllTypesMethod · 0.95
findTypeNameMethod · 0.95
pickTestMethod · 0.95

Tested by

no test coverage detected