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

Method genRandString

test/org/apache/pig/test/utils/GenRandomData.java:63–70  ·  view source on GitHub ↗
(Random r)

Source from the content-addressed store, hash-verified

61 }
62
63 public static String genRandString(Random r){
64 if(r==null) return "RANDOM";
65 char[] chars = new char[10];
66 for(int i=0;i<10;i++){
67 chars[i] = (char)(r.nextInt(26)+65);
68 }
69 return new String(chars);
70 }
71
72 public static String genRandLargeString(Random r, int size){
73 if(r==null) return "RANDOM";

Callers 15

testGetNextStringMethod · 0.95
testOperatorMethod · 0.95
testStringToOtherMethod · 0.95
testByteArrayToOtherMethod · 0.95
testTupleToOtherMethod · 0.95
testMethod · 0.95
testOperatorMethod · 0.95
testOperatorMethod · 0.95
testOperatorMethod · 0.95
setUpMethod · 0.95
pickTestMethod · 0.95

Calls 1

nextIntMethod · 0.45

Tested by

no test coverage detected