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

Method createNewTreeOutOfIDs

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

Source from the content-addressed store, hash-verified

375 }
376
377 @Test (expected = IllegalArgumentException.class)
378 public void createNewTreeOutOfIDs() throws Exception {
379 setupStorage(true, true);
380
381 final Tree max_tree = new Tree(65535);
382 max_tree.setName("max");
383 storage.addColumn(new byte[] { (byte) 0xFF, (byte) 0xFF },
384 "tree".getBytes(MockBase.ASCII()), JSON.serializeToBytes(max_tree));
385
386 final Tree tree = new Tree();
387 tree.createNewTree(storage.getTSDB()).joinUninterruptibly();
388 }
389
390 @Test
391 public void fetchTree() throws Exception {

Callers

nothing calls this directly

Calls 8

setupStorageMethod · 0.95
setNameMethod · 0.95
ASCIIMethod · 0.95
serializeToBytesMethod · 0.95
createNewTreeMethod · 0.95
addColumnMethod · 0.80
getTSDBMethod · 0.80
getBytesMethod · 0.45

Tested by

no test coverage detected