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

Method getType

test/simpledb/TupleDescTest.java:76–84  ·  view source on GitHub ↗

Unit test for TupleDesc.getType()

()

Source from the content-addressed store, hash-verified

74 * Unit test for TupleDesc.getType()
75 */
76 @Test public void getType() {
77 int[] lengths = new int[] { 1, 2, 1000 };
78
79 for (int len: lengths) {
80 TupleDesc td = Utility.getTupleDesc(len);
81 for (int i = 0; i < len; ++i)
82 assertEquals(Type.INT_TYPE, td.getFieldType(i));
83 }
84 }
85
86 /**
87 * Unit test for TupleDesc.nameToId()

Callers

nothing calls this directly

Calls 2

getTupleDescMethod · 0.95
getFieldTypeMethod · 0.95

Tested by

no test coverage detected