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

Method getId

test/simpledb/BTreeFileReadTest.java:44–54  ·  view source on GitHub ↗

Unit test for BTreeFile.getId()

()

Source from the content-addressed store, hash-verified

42 * Unit test for BTreeFile.getId()
43 */
44 @Test
45 public void getId() throws Exception {
46 int id = f.getId();
47
48 // NOTE(ghuo): the value could be anything. test determinism, at least.
49 assertEquals(id, f.getId());
50 assertEquals(id, f.getId());
51
52 BTreeFile other = BTreeUtility.createRandomBTreeFile(1, 1, null, null, 0);
53 assertTrue(id != other.getId());
54 }
55
56 /**
57 * Unit test for BTreeFile.getTupleDesc()

Callers

nothing calls this directly

Calls 3

createRandomBTreeFileMethod · 0.95
getIdMethod · 0.95
getIdMethod · 0.65

Tested by

no test coverage detected