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

Method testCommaSeparatedString5

test/org/apache/pig/test/TestLoad.java:223–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 }
222
223 @Test
224 public void testCommaSeparatedString5() throws Exception {
225 for (PigServer pig : servers) {
226 pc = pig.getPigContext();
227 checkLoadPath("/usr/pig/{a,c},b", "/usr/pig/{a,c}," + WORKING_DIR + "/b");
228 }
229
230 // check if a location '<abs path>,<relative path>' can actually be
231 // read using PigStorage
232 String loadLocationString = WORKING_DIR + "/TestLoad-testCommaSeparatedStringMixed-input{1,2}.txt," +
233 "TestLoad-testCommaSeparatedStringMixed-input3.txt"; // current working dir is set to WORKING_DIR in checkLoadPath()
234
235 String[] inputFileNames = new String[] {
236 WORKING_DIR + "/TestLoad-testCommaSeparatedStringMixed-input1.txt",
237 WORKING_DIR + "/TestLoad-testCommaSeparatedStringMixed-input2.txt",
238 WORKING_DIR + "/TestLoad-testCommaSeparatedStringMixed-input3.txt",};
239 pc = servers[0].getPigContext(); // test in map reduce mode
240 testLoadingMultipleFiles(inputFileNames, loadLocationString);
241 }
242
243 @Test
244 public void testCommaSeparatedString6() throws Exception {

Callers

nothing calls this directly

Calls 3

checkLoadPathMethod · 0.95
getPigContextMethod · 0.45

Tested by

no test coverage detected