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

Method testLongEvalSpec

test/org/apache/pig/test/TestPigSplit.java:146–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 @Test
147 public void testLongEvalSpec() throws Exception {
148 inputFileName = "testLongEvalSpec-input.txt";
149 String[] input = new String[500];
150 for (int i = 0; i < 500; i++) {
151 input[i] = ("0\ta");
152 }
153 for (ExecType execType : execTypes) {
154 try {
155 setUp(execType);
156 createInput(input, execType);
157 pigServer.registerQuery("a = load '" + inputFileName + "';");
158 pigServer.registerQuery("a = filter a by $0 == '1';");
159
160 Iterator<Tuple> iter = pigServer.openIterator("a");
161 assertFalse(iter.hasNext());
162 } finally {
163 tearDown(execType);
164 }
165 }
166 }
167}

Callers

nothing calls this directly

Calls 6

setUpMethod · 0.95
createInputMethod · 0.95
tearDownMethod · 0.95
openIteratorMethod · 0.80
registerQueryMethod · 0.45
hasNextMethod · 0.45

Tested by

no test coverage detected