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

Method getNext

test/simpledb/InsertTest.java:53–62  ·  view source on GitHub ↗

Unit test for Insert.getNext(), inserting elements into an empty file

()

Source from the content-addressed store, hash-verified

51 * Unit test for Insert.getNext(), inserting elements into an empty file
52 */
53 @Test public void getNext() throws Exception {
54 Insert op = new Insert(tid,scan1, empty.getId());
55 op.open();
56 assertTrue(TestUtil.compareTuples(
57 Utility.getHeapTuple(7, 1), // the length of scan1
58 op.next()));
59
60 // we should fit on one page
61 assertEquals(1, empty.numPages());
62 }
63
64 /**
65 * JUnit suite target

Callers

nothing calls this directly

Calls 6

openMethod · 0.95
compareTuplesMethod · 0.95
getHeapTupleMethod · 0.95
getIdMethod · 0.65
nextMethod · 0.65
numPagesMethod · 0.45

Tested by

no test coverage detected