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

Method createNewFirstTree

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

Source from the content-addressed store, hash-verified

355 }
356
357 @Test
358 public void createNewFirstTree() throws Exception {
359 setupStorage(true, true);
360 storage.flushStorage();
361 final Tree tree = new Tree();
362 tree.setName("New Tree");
363 final int tree_id = tree.createNewTree(storage.getTSDB())
364 .joinUninterruptibly();
365 assertEquals(1, tree_id);
366 assertEquals(1, storage.numRows(TREE_TABLE));
367 assertEquals(1, storage.numColumns(TREE_TABLE, new byte[] { 0, 1 }));
368 }
369
370 @Test (expected = IllegalArgumentException.class)
371 public void createNewTreeNoChanges() throws Exception {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected