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

Method getLocalTestMode

test/org/apache/pig/test/Util.java:1496–1507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1494 }
1495
1496 public static ExecType getLocalTestMode() throws Exception {
1497 String execType = System.getProperty("test.exec.type");
1498 if (execType != null) {
1499 if (execType.equals("tez")) {
1500 return ExecTypeProvider.fromString("tez_local");
1501 } else if (execType.equals("spark")) {
1502 return ExecTypeProvider.fromString("spark_local");
1503 }
1504 }
1505
1506 return ExecTypeProvider.fromString("local");
1507 }
1508
1509 public static void createLogAppender(String appenderName, Writer writer, Class...clazzes) {
1510 WriterAppender writerAppender = new WriterAppender(new PatternLayout("%d [%t] %-5p %c %x - %m%n"), writer);

Callers 15

TestMultiStorageMethod · 0.95
setUpMethod · 0.95
testLoadStoreFuncMethod · 0.95
setupMethod · 0.95
testMethod · 0.95
beforeTestMethod · 0.95
testNonFSLoadFuncMethod · 0.95
setUpMethod · 0.95
testProjectStarMultiMethod · 0.95

Calls 3

fromStringMethod · 0.95
getPropertyMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected