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

Method standardizeNewline

test/org/apache/pig/test/Util.java:314–317  ·  view source on GitHub ↗

Helper to convert \r\n to \n for cross-platform string matching with checked-in baselines. @param origPath original string @return String newline-standardized string @throws IOException

(String origPath)

Source from the content-addressed store, hash-verified

312 * @throws IOException
313 */
314 static public String standardizeNewline(String origPath)
315 {
316 return origPath.replaceAll("\r\n", "\n");
317 }
318
319 /**
320 * Helper to create a temporary file with given input data for use in test cases.

Callers 9

runMethod · 0.95
testExplainInDotGraphMethod · 0.95
runMethod · 0.95
compilePlanMethod · 0.95
readGoldenMethod · 0.95
testSplitMethod · 0.95
testIsNullMethod · 0.95
compareWithGoldenFileMethod · 0.95
runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected