MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / createNewTree

Method createNewTree

test/tree/TestTree.java:345–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343 }
344
345 @Test
346 public void createNewTree() throws Exception {
347 setupStorage(true, true);
348 final Tree tree = new Tree();
349 tree.setName("New Tree");
350 final int tree_id = tree.createNewTree(storage.getTSDB())
351 .joinUninterruptibly();
352 assertEquals(3, tree_id);
353 assertEquals(5, storage.numRows(TREE_TABLE));
354 assertEquals(1, storage.numColumns(TREE_TABLE, new byte[] { 0, 3 }));
355 }
356
357 @Test
358 public void createNewFirstTree() throws Exception {

Callers

nothing calls this directly

Calls 6

setupStorageMethod · 0.95
setNameMethod · 0.95
createNewTreeMethod · 0.95
getTSDBMethod · 0.80
numRowsMethod · 0.80
numColumnsMethod · 0.80

Tested by

no test coverage detected