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

Method testGetNextMap

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

Source from the content-addressed store, hash-verified

126 }
127
128 @Test
129 public void testGetNextMap() throws ExecException {
130 Map<String, Object> inp = GenRandomData.genRandMap(r, 10);
131 ce.setValue(inp);
132 Result resm = ce.getNextMap();
133 Map<Integer, String> ret = (Map)resm.result;
134 assertEquals(inp, ret);
135
136 // test with null input
137 ce.setValue(null);
138 resm = ce.getNextMap();
139 ret = (Map)resm.result;
140 assertNull(ret);
141 }
142
143 @Test
144 public void testGetNextBoolean() throws ExecException {

Callers

nothing calls this directly

Calls 4

genRandMapMethod · 0.95
getNextMapMethod · 0.65
setValueMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected