MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / numFields

Method numFields

test/simpledb/TupleDescTest.java:142–149  ·  view source on GitHub ↗

Unit test for TupleDesc.numFields()

()

Source from the content-addressed store, hash-verified

140 * Unit test for TupleDesc.numFields()
141 */
142 @Test public void numFields() {
143 int[] lengths = new int[] { 1, 2, 1000 };
144
145 for (int len : lengths) {
146 TupleDesc td = Utility.getTupleDesc(len);
147 assertEquals(len, td.numFields());
148 }
149 }
150
151 @Test public void testEquals() {
152 TupleDesc singleInt = new TupleDesc(new Type[]{Type.INT_TYPE});

Callers 3

combinedStringArraysMethod · 0.45
compareTuplesMethod · 0.45
tupleToListMethod · 0.45

Calls 2

getTupleDescMethod · 0.95
numFieldsMethod · 0.95

Tested by

no test coverage detected