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

Method testGetNextString

test/org/apache/pig/test/TestConstExpr.java:98–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 @Test
99 public void testGetNextString() throws ExecException {
100 String inp = GenRandomData.genRandString(r);
101 ce.setValue(inp);
102 Result ress = ce.getNextString();
103 String ret = (String)ress.result;
104 assertEquals(inp, ret);
105
106 // test with null input
107 ce.setValue(null);
108 ress = ce.getNextString();
109 ret = (String)ress.result;
110 assertNull(ret);
111 }
112
113 @Test
114 public void testGetNextDataByteArray() throws ExecException {

Callers

nothing calls this directly

Calls 4

genRandStringMethod · 0.95
getNextStringMethod · 0.65
setValueMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected