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

Method shouldAllBeNull

test/org/apache/pig/data/TestSchemaTuple.java:387–396  ·  view source on GitHub ↗

This ensures that a fresh Tuple out of a TupleFactory will be full of null fields. @param tf a TupleFactory @throws ExecException

(SchemaTupleFactory tf)

Source from the content-addressed store, hash-verified

385 * @throws ExecException
386 */
387 private void shouldAllBeNull(SchemaTupleFactory tf) throws ExecException {
388 Tuple t = tf.newTuple();
389 for (Object o : t) {
390 assertNull(o);
391 }
392 for (int i = 0; i < t.size(); i++) {
393 assertNull(t.get(i));
394 assertTrue(t.isNull(i));
395 }
396 }
397
398 private void fillWithData(SchemaTuple<?> st) throws ExecException {
399 Schema udfSchema = st.getSchema();

Callers 1

testNotAppendableMethod · 0.95

Calls 4

sizeMethod · 0.95
getMethod · 0.95
isNullMethod · 0.95
newTupleMethod · 0.65

Tested by

no test coverage detected